Skip to main content
VulnerabilityPublished

CVE-2026-142984: Linux kernel · usb: gadget: u_serial: pin ports while TTYs are installed

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in f07b9d15d48ecec3a6d6a0b1d0af6f962e1cca0c : update Linux kernel when convenient.

Data as of 3 Dec 2026, 09:30 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in f07b9d15d48ecec3a6d6a0b1d0af6f962e1cca0c, e6a6b91739c1f81930457679d33d1f8be64aa81c, c36bf20e3928fdd013098f61186338efc9c96a4a +1

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade Linux kernel to f07b9d15d48ecec3a6d6a0b1d0af6f962e1cca0c, e6a6b91739c1f81930457679d33d1f8be64aa81c, c36bf20e3928fdd013098f61186338efc9c96a4a or 1981b53c2b52a00f0f4b9eb87183c9aedc8dac5d.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ 19b10a8828a6cdd5a4e7e37babd5084d35641f87, < f07b9d15d48ecec3a6d6a0b1d0af6f962e1cca0c
Fixed in
  • f07b9d15d48ecec3a6d6a0b1d0af6f962e1cca0c
LinuxLinuxAffected
  • ≥ 19b10a8828a6cdd5a4e7e37babd5084d35641f87, < e6a6b91739c1f81930457679d33d1f8be64aa81c
Fixed in
  • e6a6b91739c1f81930457679d33d1f8be64aa81c
LinuxLinuxAffected
  • ≥ 19b10a8828a6cdd5a4e7e37babd5084d35641f87, < c36bf20e3928fdd013098f61186338efc9c96a4a
Fixed in
  • c36bf20e3928fdd013098f61186338efc9c96a4a
LinuxLinuxAffected
  • ≥ 19b10a8828a6cdd5a4e7e37babd5084d35641f87, < 1981b53c2b52a00f0f4b9eb87183c9aedc8dac5d
Fixed in
  • 1981b53c2b52a00f0f4b9eb87183c9aedc8dac5d
LinuxLinuxAffected
  • =3.9
Fixed in–

Description

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.

References

Community reviews

Loading reviews…