# CVE-2026-142882: net/9p/usbg: clear stale request context after abort

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:23:37.540Z
- **Modified:** 2026-12-03T04:18:26.730Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## Who should check

- Anyone running Linux \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< d6bc7edbd56c062fe5aa43b0043d8f71e629de4f; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< b43db97bde49c73f05a33104ef879d87d9a2ec8c; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< c005fd8368ab48f5eec0d0984f4a60de0729f30a; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< b58943dd690eb9b76c652e735789937a03f3d30c
- Anyone running Linux 6.12

## 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

- Linux: \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< d6bc7edbd56c062fe5aa43b0043d8f71e629de4f; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< b43db97bde49c73f05a33104ef879d87d9a2ec8c; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< c005fd8368ab48f5eec0d0984f4a60de0729f30a; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< b58943dd690eb9b76c652e735789937a03f3d30c (cvelist)
- Linux: 6.12 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/d6bc7edbd56c062fe5aa43b0043d8f71e629de4f>
- other: <https://git.kernel.org/stable/c/b43db97bde49c73f05a33104ef879d87d9a2ec8c>
- other: <https://git.kernel.org/stable/c/c005fd8368ab48f5eec0d0984f4a60de0729f30a>
- other: <https://git.kernel.org/stable/c/b58943dd690eb9b76c652e735789937a03f3d30c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142882>

HTML: <https://flawdb.com/CVE-2026-142882> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142882>
