# CVE-2022-49765: net/9p: use a dedicated spinlock for trans_fd

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-02)
- Published: 2025-05-01T14:09:04.896Z
- Modified: 2026-06-17T05:19:05.637Z
- Weaknesses: CWE-667
- Assigned by: Linux

## 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)

(As written by CVE List.)

## Affected

- Linux Linux: from 673d62cdaac6ffbce980a349d3174b3929ceb9e5 before 43bbadb7e4636dc02f6a283c2a39e6438e6173cd; from 673d62cdaac6ffbce980a349d3174b3929ceb9e5 before 717b9b4f38703d7f5293059e3a242d16f76fa045; from 673d62cdaac6ffbce980a349d3174b3929ceb9e5 before 296ab4a813841ba1d5f40b03190fd1bd8f25aab0; 2.6.28 (not affected: before 2.6.28; from 5.15.80 up to 5.15.*; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: before 5.15.80; from 5.16 before 6.0.10

## References

- <https://git.kernel.org/stable/c/43bbadb7e4636dc02f6a283c2a39e6438e6173cd> (patch)
- <https://git.kernel.org/stable/c/717b9b4f38703d7f5293059e3a242d16f76fa045> (patch)
- <https://git.kernel.org/stable/c/296ab4a813841ba1d5f40b03190fd1bd8f25aab0> (patch)

## Sources

- CVE List: [CVE-2022-49765](https://www.cve.org/CVERecord?id=CVE-2022-49765), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49765](https://nvd.nist.gov/vuln/detail/CVE-2022-49765), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49765 · Whole record: https://cve.day/CVE-2022-49765.json · Rebuilt by cve.day 2026-11-25T22:58:20.858Z
