{"schema_version":"1.9.0","id":"CVE-2022-49020","published":"2024-10-21T20:06:27.976Z","modified":"2026-08-12T03:51:35.595322477Z","related":["SUSE-SU-2024:3983-1","SUSE-SU-2024:3985-1","SUSE-SU-2024:4100-1","SUSE-SU-2024:4364-1","SUSE-SU-2025:0034-1"],"summary":"net/9p: Fix a potential socket leak in p9_socket_open","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p: Fix a potential socket leak in p9_socket_open\n\nBoth p9_fd_create_tcp() and p9_fd_create_unix() will call\np9_socket_open(). If the creation of p9_trans_fd fails,\np9_fd_create_tcp() and p9_fd_create_unix() will return an\nerror directly instead of releasing the cscoket, which will\nresult in a socket leak.\n\nThis patch adds sock_release() to fix the leak issue.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9"},{"fixed":"0396227f4daf4792a6a8aaa3b7771dc25c4cd443"},{"fixed":"ded893965b895b2dccd3d1436d8d3daffa23ea64"},{"fixed":"8b14bd0b500aec1458b51cb621c8e5fab3304260"},{"fixed":"2d24d91b9f44620824fc37b766f7cae00ca32748"},{"fixed":"e01c1542379fb395e7da53706df598f38905dfbf"},{"fixed":"8782b32ef867de7981bbe9e86ecb90e92e8780bd"},{"fixed":"aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd"},{"fixed":"dcc14cfd7debe11b825cb077e75d91d2575b4cb8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49020.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.33"},{"fixed":"4.9.335"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.301"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.268"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.82"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.12"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49020.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0396227f4daf4792a6a8aaa3b7771dc25c4cd443"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2d24d91b9f44620824fc37b766f7cae00ca32748"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8782b32ef867de7981bbe9e86ecb90e92e8780bd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8b14bd0b500aec1458b51cb621c8e5fab3304260"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dcc14cfd7debe11b825cb077e75d91d2575b4cb8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ded893965b895b2dccd3d1436d8d3daffa23ea64"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e01c1542379fb395e7da53706df598f38905dfbf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49020.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49020"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49020.json"}}