# CVE-2026-99777: net/9p/usbg: remove bogus context initialization in alloc\_requests

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.16% (percentile 3, 2026-11-29)
- **Published:** 2026-11-20T05:51:40.898Z
- **Modified:** 2026-11-20T06:18:16.720Z

## Who should check

- Anyone running Linux \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< 3bd662cdf7d18d12be2c6010fe4049b02763d8ec; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< 591939db7cff9ca80a5a5deb2e3371b731817ac4; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< b3d262be54f5cfc5f75f7271e94d64a6315cd2f1; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< bbdb38b2e543ffa72dca5450f2535cf998ef1cdd
- Anyone running Linux 6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/9p/usbg: remove bogus context initialization in alloc\_requests

alloc\_requests() initializes usb9pfs-\>in\_req-\>context to point at the
struct f\_usb9pfs instance itself. usb9pfs\_queue\_tx() later overwrites
this with the real struct p9\_req\_t pointer before every transmit, and
usb9pfs\_tx\_complete() clears it back to NULL after each completion, so
in\_req-\>context only ever holds a valid p9\_req\_t once a request has
actually been queued.

usb9pfs\_clear\_tx(), however, can run at any time (mount close, gadget
disable) independent of whether a request was ever queued. If it runs
before the first usb9pfs\_transmit(), it reads the leftover sentinel
value, type-confuses the struct f\_usb9pfs pointer as a struct
p9\_req\_t, and both writes through it (req-\>t\_err = -ECONNRESET) and
hands it to p9\_client\_cb(), which manipulates req-\>wq and req-\>refcount
at bogus offsets inside f\_usb9pfs. This reliably corrupts memory or
panics whenever the transport is torn down before any 9p request has
been transmitted, e.g. mounting and immediately unmounting, or a cable
disconnect racing the very first request.

usb9pfs-\>out\_req-\>context is set the same way but is never read by
this transport (usb9pfs\_rx\_complete() identifies the instance via
ep-\>driver\_data instead), so it serves no purpose either.

Both endpoints' -\>driver\_data are already set to usb9pfs in
enable\_endpoint(), which is what the completion handlers actually use
to recover the f\_usb9pfs instance. Just drop the leftover
-\>context assignments; usb\_ep\_alloc\_request()/alloc\_ep\_req() already
return zeroed requests, so in\_req-\>context correctly starts out NULL.

## Affected and fixed versions

- Linux: \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< 3bd662cdf7d18d12be2c6010fe4049b02763d8ec; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< 591939db7cff9ca80a5a5deb2e3371b731817ac4; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< b3d262be54f5cfc5f75f7271e94d64a6315cd2f1; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< bbdb38b2e543ffa72dca5450f2535cf998ef1cdd (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-99777. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99777.md
Affected: Linux >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < 3bd662cdf7d18d12be2c6010fe4049b02763d8ec; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < 591939db7cff9ca80a5a5deb2e3371b731817ac4; >= a3be076dc174d9022a71a12554feb4c97b5c4d5c, < b3d262be54f5cfc5f75f7271e94d64a6315cd2f1; >= a3be076dc174d9022a71a12…
Fixed in: Linux 3bd662cdf7d18d12be2c6010fe4049b02763d8ec, Linux 591939db7cff9ca80a5a5deb2e3371b731817ac4

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-99777 being exploited?

There is no confirmed exploitation: CVE-2026-99777 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.16% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-99777?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99777?

Linux \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< 3bd662cdf7d18d12be2c6010fe4049b02763d8ec; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< 591939db7cff9ca80a5a5deb2e3371b731817ac4; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< b3d262be54f5cfc5f75f7271e94d64a6315cd2f1; \>= a3be076dc174d9022a71a12554feb4c97b5c4d5c, \< bbdb38b2e543ffa72dca5450f2535cf998ef1cdd; Linux 6.12.

### Is there a fix for CVE-2026-99777?

Yes. Fixed in Linux 3bd662cdf7d18d12be2c6010fe4049b02763d8ec, Linux 591939db7cff9ca80a5a5deb2e3371b731817ac4. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99777?

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/3bd662cdf7d18d12be2c6010fe4049b02763d8ec>
- other: <https://git.kernel.org/stable/c/591939db7cff9ca80a5a5deb2e3371b731817ac4>
- other: <https://git.kernel.org/stable/c/b3d262be54f5cfc5f75f7271e94d64a6315cd2f1>
- other: <https://git.kernel.org/stable/c/bbdb38b2e543ffa72dca5450f2535cf998ef1cdd>

## 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-99777>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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