PT-2026-161468
تاريخ النشر
2026-11-19
·
تاريخ التحديث
2026-11-19
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾