CVE-2026-142984

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.

Package Linux Kernel
Published 2026-12-03
Last modified 2026-12-06
Patch available
Yes

Affected versions

Linux kernel versions 3.9 and later are affected. Fixed in 6.12.120, 6.18.66, 7.3.7, 7.4-rc4 and their respective stable series.

Affected from
≥ 3.9
Fixed in
✓ 6.12.120 6.12.x ✓ 6.18.66 6.18.x ✓ 7.3.7 7.3.x ✓ 7.4-rc4

Frequently asked questions

  • What is CVE-2026-142984?

    CVE-2026-142984 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 3.9 onward and has been patched in 6.12.120, 6.18.66, 7.3.7 and others. CVE-2026-142984 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • Is there a patch available for CVE-2026-142984?

    Yes. CVE-2026-142984 has been patched. Fixed versions include 6.12.120, 6.18.66, 7.3.7 and others. If you are running Linux kernel 3.9 or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2026-142984 actively exploited?

    No. CVE-2026-142984 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.