CVE-2026-98752

tty: port: fix tty_port_tty_vhangup() race

No CVSS score yet EPSS 0.22%

Published 18 Oct 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-98752

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98752 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

tty: port: fix tty_port_tty_vhangup() race

Drivers rely on tty_port_tty_vhangup() to synchronously hang up their ports before tearing down resources as part of deregistration (e.g. on physical disconnect).

If tty_port_tty_vhangup() races with another hangup it may however return before the port has been shut down. This is in turn can lead to use-after-free and NULL-pointer dereferences in racing ioctls (including a synchronous hangup) and in processing of racing asynchronous hangups (carrier loss).

Add the missing serialisation to tty_port_tty_vhangup() and tty_port_hangup() so that the former does not return until the port has been shut down also when there is a racing hangup.

Note that serial core does not use tty_port_hangup(), but it already holds the port mutex when clearing port->tty and shutting down the port in uart_hangup().

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.34% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before a78910f6d78cc1415cbc9b4fb621c3f4f6945be2
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before 2e16ae1464a4f435425c6f6ff1e293db850a624c
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before a776d603d1e1bba2837295817b0a39394707b10d
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before ce220b4cdf62f73db0c1940f968eb33b9899fdd0
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before 6d1a984afc3ca477dab3e51ec806671d443ad524
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before 6b7be3b9b857947e9c1338d4919d4ebd3b75e907
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before 017b18addbe8dcace1a569a00d40ed1ba1e03f4c
affected from 7ca0ff9ab3218ec443a7a9ad247e4650373ed41e, before b48820de8c1a596c5b99775524dfce73c6576c5d
affected 4260dc792fabfd20c8644fa9414b2ae48372365f
affected from 2.6.31.2, before 2.6.32
Other versions: unaffected
Linux
affected 2.6.32
unaffected before 2.6.32
unaffected from 5.10.273 up to and including 5.10.*
unaffected from 5.15.224 up to and including 5.15.*
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.113 up to and including 6.12.*
unaffected from 6.18.56 up to and including 6.18.*
unaffected from 7.2.10 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98752 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98752

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-98752
trivy image --scanners vuln IMAGE | grep CVE-2026-98752

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-98752 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.