Skip to content
This page tracks the Debian fix status. The vulnerability itself is described on the main CVE page. View CVE-2026-99449 →
Unrated

In the Linux kernel, the following vulnerability has been resolved: usb: gadget: fix refcount underflow in gadgetfs_bind() error path gadgetfs_bind(...

DEBIAN-CVE-2026-99449 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Debian:12linux
All versions→ Not listed
Debian:13linux
< 6.12.117-1→ 6.12.117-1
Debian:14linux
< 7.3.3-1→ 7.3.3-1
Debian:12linux-6.12
< 6.12.117-1~deb12u1→ 6.12.117-1~deb12u1
Original description The description as published by the source.

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.

Source: OSV.dev (Open Source Vulnerabilities) OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details