CVE-2022-49020
net/9p: Fix a potential socket leak in p9_socket_open
Check your servers for CVE-2022-49020
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49020 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before 0396227f4daf4792a6a8aaa3b7771dc25c4cd443 affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before ded893965b895b2dccd3d1436d8d3daffa23ea64 affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before 8b14bd0b500aec1458b51cb621c8e5fab3304260 affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before 2d24d91b9f44620824fc37b766f7cae00ca32748 affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before e01c1542379fb395e7da53706df598f38905dfbf affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before 8782b32ef867de7981bbe9e86ecb90e92e8780bd affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd affected from 6b18662e239a032f908b7f6e164bdf7e2e0a32c9, before dcc14cfd7debe11b825cb077e75d91d2575b4cb8
Other versions: unaffected
|
| Linux |
affected 2.6.33 unaffected before 2.6.33 unaffected from 4.9.335 up to and including 4.9.* unaffected from 4.14.301 up to and including 4.14.* unaffected from 4.19.268 up to and including 4.19.* unaffected from 5.4.226 up to and including 5.4.* unaffected from 5.10.158 up to and including 5.10.* unaffected from 5.15.82 up to and including 5.15.* unaffected from 6.0.12 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49020 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49020
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49020
trivy image --scanners vuln IMAGE | grep CVE-2022-49020
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/0396227f4daf4792a6a8aaa3b7771dc25c4cd443 git.kernel.org
- https://git.kernel.org/stable/c/ded893965b895b2dccd3d1436d8d3daffa23ea64 git.kernel.org
- https://git.kernel.org/stable/c/8b14bd0b500aec1458b51cb621c8e5fab3304260 git.kernel.org
- https://git.kernel.org/stable/c/2d24d91b9f44620824fc37b766f7cae00ca32748 git.kernel.org
- https://git.kernel.org/stable/c/e01c1542379fb395e7da53706df598f38905dfbf git.kernel.org
- https://git.kernel.org/stable/c/8782b32ef867de7981bbe9e86ecb90e92e8780bd git.kernel.org
- https://git.kernel.org/stable/c/aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd git.kernel.org
- https://git.kernel.org/stable/c/dcc14cfd7debe11b825cb077e75d91d2575b4cb8 git.kernel.org
Source: the record CVE-2022-49020 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse