{"id":"CVE-2022-49765","summary":"net/9p: use a dedicated spinlock for trans_fd","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p: use a dedicated spinlock for trans_fd\n\nShamelessly copying the explanation from Tetsuo Handa's suggested\npatch[1] (slightly reworded):\nsyzbot is reporting inconsistent lock state in p9_req_put()[2],\nfor p9_tag_remove() from p9_req_put() from IRQ context is using\nspin_lock_irqsave() on \"struct p9_client\"-\u003elock but trans_fd\n(not from IRQ context) is using spin_lock().\n\nSince the locks actually protect different things in client.c and in\ntrans_fd.c, just replace trans_fd.c's lock by a new one specific to the\ntransport (client.c's protect the idr for fid/tag allocations,\nwhile trans_fd.c's protects its own req list and request status field\nthat acts as the transport's state machine)","modified":"2026-08-12T03:51:36.350877009Z","published":"2025-05-01T14:09:04.896Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49765.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/296ab4a813841ba1d5f40b03190fd1bd8f25aab0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/43bbadb7e4636dc02f6a283c2a39e6438e6173cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/717b9b4f38703d7f5293059e3a242d16f76fa045"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49765.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49765"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"673d62cdaac6ffbce980a349d3174b3929ceb9e5"},{"fixed":"43bbadb7e4636dc02f6a283c2a39e6438e6173cd"},{"fixed":"717b9b4f38703d7f5293059e3a242d16f76fa045"},{"fixed":"296ab4a813841ba1d5f40b03190fd1bd8f25aab0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49765.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.28"},{"fixed":"5.15.80"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49765.json"}}],"schema_version":"1.9.0"}