CVE-2022-49020

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

MEDIUM
5.5
CVSS Score
Published: October 21, 2024 at 08:06 PM UTC
Updated: June 17, 2026 at 05:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.33 ≤ v < 4.14.3012.6.33 ≤ v < 4.19.2682.6.33 ≤ v < 4.9.3352.6.33 ≤ v < 5.10.1582.6.33 ≤ v < 5.15.822.6.33 ≤ v < 5.4.2262.6.33 ≤ v < 6.0.122.6.33 ≤ v < 6.14.10 ≤ v < 4.14.3014.15 ≤ v < 4.19.2684.20 ≤ v < 5.4.2265.11 ≤ v < 5.15.825.16 ≤ v < 6.0.125.5 ≤ v < 5.10.1586.1 rc16.1 rc26.1 rc36.1 rc46.1 rc56.1 rc66.1 rc76b18662e239a032f908b7f6e164bdf7e2e0a32c9
Vendor states this is fixed in 0396227f4daf4792a6a8aaa3b7771dc25c4cd443 (fixed)
Vendor states this is fixed in 2d24d91b9f44620824fc37b766f7cae00ca32748 (fixed)
Vendor states this is fixed in 8782b32ef867de7981bbe9e86ecb90e92e8780bd (fixed)
Vendor states this is fixed in 8b14bd0b500aec1458b51cb621c8e5fab3304260 (fixed)
Vendor states this is fixed in aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd (fixed)
Vendor states this is fixed in dcc14cfd7debe11b825cb077e75d91d2575b4cb8 (fixed)
Vendor states this is fixed in ded893965b895b2dccd3d1436d8d3daffa23ea64 (fixed)
Vendor states this is fixed in e01c1542379fb395e7da53706df598f38905dfbf (fixed)
Vendor states this is fixed in 2.6.33 (unaffected)
Vendor states this is fixed in 4.14.301 (unaffected)
Vendor states this is fixed in 4.19.268 (unaffected)
Vendor states this is fixed in 4.9.335 (unaffected)
Vendor states this is fixed in 5.10.158 (unaffected)
Vendor states this is fixed in 5.15.82 (unaffected)
Vendor states this is fixed in 5.4.226 (unaffected)
Vendor states this is fixed in 6.0.12 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0396227f4daf4792a6a8aaa3b7771dc25c4cd443
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2d24d91b9f44620824fc37b766f7cae00ca32748
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8782b32ef867de7981bbe9e86ecb90e92e8780bd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8b14bd0b500aec1458b51cb621c8e5fab3304260
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dcc14cfd7debe11b825cb077e75d91d2575b4cb8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ded893965b895b2dccd3d1436d8d3daffa23ea64
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e01c1542379fb395e7da53706df598f38905dfbf

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card