CVE-2022-49020

published 21 Oct 2024 · updated 11 May 2026

net/9p: Fix a potential socket leak in p9_socket_open

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0396227f4daf4792a6a8aaa3b7771dc25c4cd443, Kernel 2d24d91b9f44620824fc37b766f7cae00ca32748, Kernel 8782b32ef867de7981bbe9e86ecb90e92e8780bd and 5 more.

In the Linux kernel, the following vulnerability has been resolved: net/9p: Fix a potential socket leak in p9_socket_open Both p9_fd_create_tcp() and p9_fd_create_unix() will call p9_socket_open(). If the creation of p9_trans_fd fails, p9_fd_create_tcp() and p9_fd_create_unix() will return an error directly instead of releasing the cscoket, which will result in a socket leak. This patch adds sock_release() to fix the leak issue.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=2.6.33, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <0396227f4daf4792a6a8aaa3b7771dc25c4cd443, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <2d24d91b9f44620824fc37b766f7cae00ca32748, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <8782b32ef867de7981bbe9e86ecb90e92e8780bd, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <8b14bd0b500aec1458b51cb621c8e5fab3304260, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <dcc14cfd7debe11b825cb077e75d91d2575b4cb8, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <ded893965b895b2dccd3d1436d8d3daffa23ea64, >=6b18662e239a032f908b7f6e164bdf7e2e0a32c9 <e01c1542379fb395e7da53706df598f38905dfbf0396227f4daf4792a6a8aaa3b7771dc25c4cd443, 2d24d91b9f44620824fc37b766f7cae00ca32748, 8782b32ef867de7981bbe9e86ecb90e92e8780bd, 8b14bd0b500aec1458b51cb621c8e5fab3304260, aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd, dcc14cfd7debe11b825cb077e75d91d2575b4cb8, ded893965b895b2dccd3d1436d8d3daffa23ea64, e01c1542379fb395e7da53706df598f38905dfbf

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-49020 severity on Zeptric[![CVE-2022-49020](https://zeptric.io/badge/cve/CVE-2022-49020.svg)](https://zeptric.io/cve/CVE-2022-49020)