# CVE-2026-99449: usb: gadget: fix refcount underflow in gadgetfs\_bind() error path

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:41:39.468Z
- **Modified:** 2026-11-23T08:17:48.757Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 09e4c7127b4663317c54f37b29722843dc0d93aa; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 260b0c0ab0b75b358b0b22988ea9a93b5c40c593; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 48373c3c210e7d797993953ae6d619dfc9e7df54; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5370f6139485ee3801a83ab32b4b881b97cead46; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a28791bdb256abd0f338a9b32a95392907d1c987; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e7e89759445e97ccb445758c6c8d5caed4eb42f9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< adb693d0369cd7f08f9424588fdd1f613c22d43b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cb3b441f2698455a48e9a023d5f7f4e3fcb94c73
- Anyone running Linux 2.6.12

## Description

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

usb: gadget: fix refcount underflow in gadgetfs\_bind() error path

gadgetfs\_bind() calls get\_dev() only on the success path, but
gadgetfs\_unbind() called from the enomem error label unconditionally
calls put\_dev().  When bind fails (e.g. ENOMEM), put\_dev() fires
without a matching get\_dev(), leaving the refcount unbalanced.

A subsequent close of the ep0 file descriptor calls dev\_release() -\>
put\_dev() which hits zero and frees the object; then gadgetfs\_kill\_sb()
calls put\_dev(the\_device) again on the already-freed pointer, triggering
a refcount underflow and use-after-free.

Fix by calling get\_dev() at the start of gadgetfs\_bind(), before any
error path that invokes gadgetfs\_unbind(), so the reference is always
balanced regardless of whether bind succeeds or fails.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 09e4c7127b4663317c54f37b29722843dc0d93aa; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 260b0c0ab0b75b358b0b22988ea9a93b5c40c593; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 48373c3c210e7d797993953ae6d619dfc9e7df54; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5370f6139485ee3801a83ab32b4b881b97cead46; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a28791bdb256abd0f338a9b32a95392907d1c987; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e7e89759445e97ccb445758c6c8d5caed4eb42f9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< adb693d0369cd7f08f9424588fdd1f613c22d43b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cb3b441f2698455a48e9a023d5f7f4e3fcb94c73 (cvelist)
- Linux: 2.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-99449. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99449.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 09e4c7127b4663317c54f37b29722843dc0d93aa; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 260b0c0ab0b75b358b0b22988ea9a93b5c40c593; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 48373c3c210e7d797993953ae6d619dfc9e7df54; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 09e4c7127b4663317c54f37b29722843dc0d93aa, Linux 260b0c0ab0b75b358b0b22988ea9a93b5c40c593, Linux 48373c3c210e7d797993953ae6d619dfc9e7df54, Linux 5370f6139485ee3801a83ab32b4b881b97cead46

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 09e4c7127b4663317c54f37b29722843dc0d93aa; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 260b0c0ab0b75b358b0b22988ea9a93b5c40c593; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 48373c3c210e7d797993953ae6d619dfc9e7df54; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5370f6139485ee3801a83ab32b4b881b97cead46; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a28791bdb256abd0f338a9b32a95392907d1c987; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e7e89759445e97ccb445758c6c8d5caed4eb42f9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< adb693d0369cd7f08f9424588fdd1f613c22d43b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cb3b441f2698455a48e9a023d5f7f4e3fcb94c73; Linux 2.6.12.

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

Yes. Fixed in Linux 09e4c7127b4663317c54f37b29722843dc0d93aa, Linux 260b0c0ab0b75b358b0b22988ea9a93b5c40c593, Linux 48373c3c210e7d797993953ae6d619dfc9e7df54, Linux 5370f6139485ee3801a83ab32b4b881b97cead46. No fix listed yet: follow the vendor advisory.

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

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/09e4c7127b4663317c54f37b29722843dc0d93aa>
- other: <https://git.kernel.org/stable/c/260b0c0ab0b75b358b0b22988ea9a93b5c40c593>
- other: <https://git.kernel.org/stable/c/48373c3c210e7d797993953ae6d619dfc9e7df54>
- other: <https://git.kernel.org/stable/c/5370f6139485ee3801a83ab32b4b881b97cead46>
- other: <https://git.kernel.org/stable/c/a28791bdb256abd0f338a9b32a95392907d1c987>
- other: <https://git.kernel.org/stable/c/e7e89759445e97ccb445758c6c8d5caed4eb42f9>
- other: <https://git.kernel.org/stable/c/adb693d0369cd7f08f9424588fdd1f613c22d43b>
- other: <https://git.kernel.org/stable/c/cb3b441f2698455a48e9a023d5f7f4e3fcb94c73>

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

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