Skip to content
statance
MenuClose
unknown

CVE-2026-99449

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

Published 19 Nov 2026 · Source updated 19 Nov 2026 · Retrieved 2026-11-19 15:23 UTC

Monitor this CVE ↗Full CVE monitoring on Pro and Business

What happened?

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.

Description supplied by CVE Program. Formatting is simplified; follow the original advisory for full details.

Affected software and versions

Source-provided software and version information
SoftwareVersion informationFixed version
LinuxLinuxaffected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a28791bdb256abd0f338a9b32a95392907d1c987; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e7e89759445e97ccb445758c6c8d5caed4eb42f9; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < adb693d0369cd7f08f9424588fdd1f613c22d43b; affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < cb3b441f2698455a48e9a023d5f7f4e3fcb94c73; affected: 0 to < 6.12.117; affected: 0 to < 6.18.61; affected: 0 to < 7.3.2See vendor advisory
LinuxLinuxunaffected: 6.12.117 to ≤ 6.12.*; unaffected: 6.18.61 to ≤ 6.18.*; unaffected: 7.3.2 to ≤ 7.3.*; unaffected: 7.4-rc1 to ≤ *See vendor advisory

Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.

Is it being exploited?

This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.

CISA data retrieved 2026-11-19 21:16 UTC. Check CISA ↗

How to respond

  1. Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
  2. Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
  3. Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.

Sources and remediation references

This public advisory does not determine whether a particular server is affected. Records are refreshed as sources change; verify urgent decisions against the original advisory.

← Browse the public CVE feed