CVE-2026-99449: Linux kernel · usb: gadget: fix refcount underflow in gadgetfs_bind() error path
Affects Linux kernelSource GCVE Database
Not known to be exploited.
Data as of 25 Nov 2026, 00:25 UTC
Rated by Threat Radar · CVSS not yet scored by NVD
Thin evidence
One scorer or noneExploitation evidence
Disclosed: evidence found.
CVE published 19 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10linuxpkg:deb/ubuntu/linux?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-gcppkg:deb/ubuntu/linux-gcp?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10linux-oraclepkg:deb/ubuntu/linux-oracle?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-99449 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-99449 (opens in a new tab)
- git.kernel.org/linus/cb3b441f2698455a48e9a023d5f7f4e3fcb94c73 (opens in a new tab)
- git.kernel.org/stable/c/a28791bdb256abd0f338a9b32a95392907d1c987 (opens in a new tab)
- git.kernel.org/stable/c/adb693d0369cd7f08f9424588fdd1f613c22d43b (opens in a new tab)
- git.kernel.org/stable/c/cb3b441f2698455a48e9a023d5f7f4e3fcb94c73 (opens in a new tab)
- git.kernel.org/stable/c/e7e89759445e97ccb445758c6c8d5caed4eb42f9 (opens in a new tab)
- git.kernel.org/stable/c/09e4c7127b4663317c54f37b29722843dc0d93aa (opens in a new tab)
- git.kernel.org/stable/c/260b0c0ab0b75b358b0b22988ea9a93b5c40c593 (opens in a new tab)
- git.kernel.org/stable/c/48373c3c210e7d797993953ae6d619dfc9e7df54 (opens in a new tab)
- git.kernel.org/stable/c/5370f6139485ee3801a83ab32b4b881b97cead46 (opens in a new tab)