CVE-2026-142882
net/9p/usbg: clear stale request context after abort
AI summary AI generated
A use-after-free in the Linux kernel 9P USB gadget transport lets a local attacker trigger reads of freed request memory during teardown because a stale request pointer is left published after release.
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < d6bc7edbd56c062fe5aa43b0043d8f71e629de4f; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b43db97bde49c73f05a33104ef879d87d9a2ec8c; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < c005fd8368ab48f5eec0d0984f4a60de0729f30a; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b58943dd690eb9b76c652e735789937a03f3d30c
- Anyone running Linux 6.12
Vulnerability facts
- Affected
- Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < d6bc7edbd56c062fe5aa43b0043d8f71e629de4f; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b43db97bde49c73f05a33104ef879d87d9a2ec8c; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < c005fd8368ab48f5eec0d0984f4a60de0729f30a; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b58943dd690eb9b76c652e735789937a03f3d30c; Linux 6.12
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: clear stale request context after abort usb9pfs_clear_tx() serializes access to the active TX request with usb9pfs->lock, but leaves in_req->context pointing at the request after p9_client_cb() drops the transport reference. A later teardown path can therefore retrieve the same request after it has been freed: CPU 0 (p9_usbg_close) CPU 1 (usb9pfs_disable) lock(usb9pfs->lock) req = in_req->context p9_client_cb(client, req) p9_req_put(client, req) unlock(usb9pfs->lock) request reaches zero refs kmem_cache_free(req) lock(usb9pfs->lock) req = in_req->context read req->t_err The lock orders the two callbacks, but cannot protect a pointer that remains published after its reference has been released. KASAN reported: BUG: KASAN: slab-use-after-free in usb9pfs_clear_tx+0x166/0x1b0 Read of size 4 at addr ffff88810e7420f4 by task poc/94 Call Trace: usb9pfs_clear_tx+0x166/0x1b0 usb9pfs_disable+0x1d/0x30 reset_config+0x9d/0x200 __composite_disconnect+0xa7/0x140 Allocated by task 93: kmem_cache_alloc_noprof+0x141/0x370 p9_tag_alloc+0x8f/0x5b0 p9_client_prepare_req+0xff/0x350 p9_client_rpc+0x1a5/0xac0 Freed by task 0: slab_free_after_rcu_debug+0xa6/0x1e0 rcu_core+0x50a/0x1850 Last potentially related work creation: kmem_cache_free+0x1db/0x3d0 p9_req_put+0x164/0x1f0 usb9pfs_clear_tx+0x120/0x1b0 p9_usbg_close+0x7e/0x150 Clear in_req->context after the callback while still holding the lock. This matches the consume-and-clear pattern in usb9pfs_tx_complete(), so subsequent teardown calls return without touching the released request. The existing callback and error ordering remain unchanged.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < d6bc7edbd56c062fe5aa43b0043d8f71e629de4f; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b43db97bde49c73f05a33104ef879d87d9a2ec8c; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < c005fd8368ab48f5eec0d0984f4a60de0729f30a; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b58943dd690eb9b76c652e735789937a03f3d30c | — | cvelist |
| Linux | 6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-142882. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-142882.md Affected: Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < d6bc7edbd56c062fe5aa43b0043d8f71e629de4f; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b43db97bde49c73f05a33104ef879d87d9a2ec8c; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < c005fd8368ab48f5eec0d0984f4a60de0729f30a; >= a3be076dc174d9022a71a12… Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-142882 being exploited?
There is no confirmed exploitation: CVE-2026-142882 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-142882?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-142882?
Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < d6bc7edbd56c062fe5aa43b0043d8f71e629de4f; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b43db97bde49c73f05a33104ef879d87d9a2ec8c; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < c005fd8368ab48f5eec0d0984f4a60de0729f30a; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b58943dd690eb9b76c652e735789937a03f3d30c; Linux 6.12.
Is there a fix for CVE-2026-142882?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-142882?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| UNSCORED | CVE-2026-142948 i2c: designware: queue only one read command for block reads | Linux kernel | ||
| UNSCORED | CVE-2026-142947 cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails | Linux kernel | ||
| UNSCORED | CVE-2026-142946 ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142945 ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device() | Linux kernel | ||
| UNSCORED | CVE-2026-142944 ASoC: amd: acp-es8336: Use an owned codec device reference | Linux kernel |