PT-2026-166839

CVE-2026-142984

·

تاريخ النشر

2026-12-03

·

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

2026-12-03

الوصف من

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

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

In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: u serial: pin ports while TTYs are installed
A slab-use-after-free can occur when gserial free line() frees struct gs port while it is still reachable through an installed TTY. The port->port.count value tracks successful opens, but it is zero before gs open() and again after gs close(), before TTY cleanup has finished. Teardown can therefore free gs port while tty init dev() or release tty() still accesses its tty port.
Manage gs port lifetime with tty port references. Take a reference in gs install(), drop it in gs cleanup(), and move the final free to gs port destruct(). Unregister the TTY device before dropping the owner reference.
Keep each minor reserved until the old port is destroyed so an installed TTY for one generation cannot overlap a replacement at the same minor. Publish the new port before device registration so the cdev and add uevent never expose a TTY before gs install() can pin it. Since commit 8df07fe93573 ("tty: fix saved termios reset race"), u serial registration no longer frees saved termios. On registration failure, unpublish the port before dropping its owner reference.
Check in gs open() that the installed port is still the published generation. Track failures after a successful install so close callbacks issued by the TTY core do not decrement port->port.count for opens that never incremented it.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾