PT-2026-161468

Published

2026-11-19

·

Updated

2026-11-19

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
AZL-114893
Found an issue in the description? Have something to add? Feel free to write us 👾