CVE-2026-99449

usb: gadget: fix refcount underflow in gadgetfs_bind() error path

No CVSS score yet EPSS 0.22%

Published 19 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99449

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99449 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.22% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 09e4c7127b4663317c54f37b29722843dc0d93aa
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 260b0c0ab0b75b358b0b22988ea9a93b5c40c593
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 48373c3c210e7d797993953ae6d619dfc9e7df54
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 5370f6139485ee3801a83ab32b4b881b97cead46
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a28791bdb256abd0f338a9b32a95392907d1c987
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e7e89759445e97ccb445758c6c8d5caed4eb42f9
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before adb693d0369cd7f08f9424588fdd1f613c22d43b
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before cb3b441f2698455a48e9a023d5f7f4e3fcb94c73
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.61 up to and including 6.18.*
unaffected from 7.3.2 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99449 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99449

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-99449
trivy image --scanners vuln IMAGE | grep CVE-2026-99449

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-99449 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.