PT-2026-150331

CVE-2026-99318

·

تاريخ النشر

2026-11-18

·

تاريخ التحديث

2026-11-18

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

In the Linux kernel, the following vulnerability has been resolved:
ALSA: bcd2000: Fix use-after-free of MIDI URBs on file close
bcd2000 disconnect() calls snd card disconnect(), which only prevents new opens, and then frees the MIDI URBs. A rawmidi file that was already open can still be closed afterwards, and its close callback, bcd2000 midi output close(), calls usb kill urb() on midi out urb.
The URB pointers are cleared on disconnect and their accesses are serialized with midi lock, but bcd2000 midi output close() reads midi out urb without that lock. The check can therefore pass just before the pointer is cleared, and usb kill urb() then runs on the URB that has already been freed:
BUG: KASAN: slab-use-after-free in usb kill urb+0x74/0x80 Read of size 8 at addr ffff8880078e7d40 usb kill urb bcd2000 midi output close close substream rawmidi release priv snd rawmidi release
Allocated by: usb alloc urb <- bcd2000 init midi <- bcd2000 probe Freed by: usb free urb <- bcd2000 midi free <- bcd2000 disconnect
Take the lock in bcd2000 midi output close() and reference the URB with usb get urb() before releasing it. The URB then stays valid until usb put urb() after usb kill urb() has returned, even if a disconnect frees it in the meantime. usb kill urb() itself cannot run under midi lock, as the completion handler takes the same lock.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾