CVE-2026-143395

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < e9c79d83affb05663925d81c83e334bf8d230191; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < 6c7901b8667af551f5efe90d67a6f3f6add0c27b; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < 840ae53432e569266879dddcaf06993ec2276ec8; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < 5c69297356bf6d04d8222f52717c6c4aa73e5d2c
LinuxLinux6.12

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143396In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: fix descriptor cleanup use-after-free usb9pfs_free_func()CVE-2026-143397In the Linux kernel, the following vulnerability has been resolved: 9p: use fc->net_ns for network namespace in RDMA and socket transports CVE-2026-143398In the Linux kernel, the following vulnerability has been resolved: Input: destroy force-feedback device on input unregistration When an iCVE-2026-143399In the Linux kernel, the following vulnerability has been resolved: udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat() CVE-2026-14346.1Omega-PSIR is vulnerable to Reflected XSS via the lang parameter. An attacker can craft a malicious URL that, when opened, causes arbitrary CVE-2026-143405.0An incorrect authorization vulnerability was identified in GitHub Enterprise Server that allowed a user-to-server token scoped to a GitHub ACVE-2026-143400In the Linux kernel, the following vulnerability has been resolved: virtio_net: check RX buffer length before DMA sync An RX queue that usCVE-2026-143401In the Linux kernel, the following vulnerability has been resolved: net: virtio: validate outer protocol of UDP tunnel GSO packets virtio_CVE-2026-143414.9GitLab has remediated an issue in GitLab CE/EE affecting all versions from 12.8 before 19.0.5, 19.1 before 19.1.3, and 19.2 before 19.2.1 thCVE-2026-143424.9The Mail Mint – Email Marketing, Newsletter, Email Automation & WooCommerce Emails plugin for WordPress is vulnerable to time-based SQL InjeCVE-2026-143436.4The Download Manager plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'note_before' and 'note_after' Shortcode AttributCVE-2026-143444.3Mattermost versions 11.9.x <= 11.9.0, 11.8.x <= 11.8.4, 11.7.x <= 11.7.7, 10.11.x <= 10.11.22 fail to enforce the board-creation permission
CVE-2026-143395: Unscored | Vulnix