CVE-2026-143395: Linux Use-After-Free

CVE-2026-143395

NVD

Vulnerability Summary

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.
Severity Level
UNKNOWN
Published Date
Dec 3, 2026
Last Modified
Dec 3, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.37%Probability
Root Weakness (CWE)
N/A

Affected & Patched Versions

Affected Versions
  • Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c and < e9c79d83affb05663925d81c83e334bf8d230191
  • Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c and < 6c7901b8667af551f5efe90d67a6f3f6add0c27b
  • Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c and < 840ae53432e569266879dddcaf06993ec2276ec8
  • Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c and < 5c69297356bf6d04d8222f52717c6c4aa73e5d2c
  • Linux 6.12
Patched Versions
  • Linux e9c79d83affb05663925d81c83e334bf8d230191
  • Linux 6c7901b8667af551f5efe90d67a6f3f6add0c27b
  • Linux 840ae53432e569266879dddcaf06993ec2276ec8
  • Linux 5c69297356bf6d04d8222f52717c6c4aa73e5d2c

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run Linux and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Dec 3, 2026Published
  • Dec 3, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Linux CVEsYou are reading CVE-2026-143395. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 3, 2026 23:13 UTC