CVE-2022-49765
net/9p: use a dedicated spinlock for trans_fd
Check your servers for CVE-2022-49765
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-49765 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: use a dedicated spinlock for trans_fd
Shamelessly copying the explanation from Tetsuo Handa's suggested patch[1] (slightly reworded): syzbot is reporting inconsistent lock state in p9_req_put()[2], for p9_tag_remove() from p9_req_put() from IRQ context is using spin_lock_irqsave() on "struct p9_client"->lock but trans_fd (not from IRQ context) is using spin_lock().
Since the locks actually protect different things in client.c and in trans_fd.c, just replace trans_fd.c's lock by a new one specific to the transport (client.c's protect the idr for fid/tag allocations, while trans_fd.c's protects its own req list and request status field that acts as the transport's state machine)
Exploitation
EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.75% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 673d62cdaac6ffbce980a349d3174b3929ceb9e5, before 43bbadb7e4636dc02f6a283c2a39e6438e6173cd affected from 673d62cdaac6ffbce980a349d3174b3929ceb9e5, before 717b9b4f38703d7f5293059e3a242d16f76fa045 affected from 673d62cdaac6ffbce980a349d3174b3929ceb9e5, before 296ab4a813841ba1d5f40b03190fd1bd8f25aab0
Other versions: unaffected
|
| Linux |
affected 2.6.28 unaffected before 2.6.28 unaffected from 5.15.80 up to and including 5.15.* unaffected from 6.0.10 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-49765 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49765
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-49765
trivy image --scanners vuln IMAGE | grep CVE-2022-49765
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/43bbadb7e4636dc02f6a283c2a39e6438e6173cd git.kernel.org
- https://git.kernel.org/stable/c/717b9b4f38703d7f5293059e3a242d16f76fa045 git.kernel.org
- https://git.kernel.org/stable/c/296ab4a813841ba1d5f40b03190fd1bd8f25aab0 git.kernel.org
Source: the record CVE-2022-49765 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse