What it is
A flaw in the Linux kernel's support for sharing files over a USB connection (9p over a USB gadget) means that after a file share is closed, disconnecting the USB host can make the kernel use memory it has already released or finish the same request twice, which can crash the system.
Written in plain English by AI from the official record. Show the official wording
In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx When p9_usbg_close() is called, it invokes usb9pfs_clear_tx() but does not clear usb9pfs->client nor usb9pfs->in_req->context afterwards. The 9p client core (p9_client_destroy) calls close() and then kfree(clnt), so after p9_usbg_close returns the client struct is freed. If the USB gadget is later disabled (e.g., host disconnect), usb9pfs_disable calls usb9pfs_clear_tx again, which passes the dangling usb9pfs->client pointer to p9_client_cb. Inside p9_client_cb, p9_req_put(c, req) dereferences the freed client to access its reqs IDR, causing a use-after-free. Additionally, usb9pfs_clear_tx does not clear usb9pfs->in_req->context after calling p9_client_cb, so a second invocation finds a stale request pointer and attempts double-completion, further compounding the UAF risk. Fix by: 1. Clearing usb9pfs->in_req->context to NULL in usb9pfs_clear_tx() before checking usb9pfs->client, so that even if the client is gone the stale request pointer is consumed and cannot cause double-completion. 2. Adding a NULL check on usb9pfs->client in usb9pfs_clear_tx() to skip p9_client_cb() when the client has already been destroyed. 3. Setting usb9pfs->client = NULL in p9_usbg_close() after calling usb9pfs_clear_tx(), to prevent any subsequent call from dereferencing the freed client pointer.
Chance of being attacked in the next 30 days: 0.4 % (EPSS).
What it affects, and the version that fixes it
- Linux Kernel Each release has its own fixed version: 6.12.120, 6.18.66, 7.3.7, 7.4-rc2.
The official vulnerability database has not reviewed this record yet, so this comes from the vendor's own listing and may be incomplete.
Others attackers have used in the same products
-
CVE-2026-46300 Oct 28, 2026
A flaw in how the Linux kernel merges incoming network data can make it decrypt data on top of a file's cached contents, changing them. Someone already signed in can use it, and CISA says it can be combined with two other problems to plant web shells and run commands with full control. Attackers are already using this problem.
-
CVE-2026-53266 Sep 18, 2026
A flaw in the Linux kernel's network bridge filtering lets an address rewrite write into a file's cached contents rather than the network packet. Someone already signed in can use this to change files they should not be able to change. Attackers are already using this problem.
-
CVE-2025-39964 Sep 18, 2026
A timing flaw in the Linux kernel's encryption interface for programs lets two writes at once leave it in an inconsistent state. Someone already signed in to the computer can trigger it. The kernel's record gives few details of what an attacker could do. Attackers are already using this problem.
-
CVE-2025-39682 Sep 18, 2026
A flaw in how the Linux kernel receives encrypted (TLS) network data mishandles an empty record, so later data can be processed the wrong way. The kernel's record gives few details of what an attacker could do. Attackers are already using this problem, and CISA notes some affected systems may be past their support life.
-
CVE-2026-53362 Aug 27, 2026
A flaw in how the Linux kernel builds IPv6 network packets lets a user with no special rights write past the memory set aside for them. CISA says this can be used to gain full control of the system, and attackers are already using it. It can affect many products built on Linux, including SUSE and Red Hat.