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().
Published: 2026-10-18
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption that may lead to denial of service
Action: Immediate patch
AI Analysis

Impact

A race condition exists in the Linux kernel tty subsystem where the function tty_port_tty_vhangup() can complete before the port has fully shut down. This race allows concurrent hangup operations to result in use‑after‑free and NULL‑pointer dereference vulnerabilities, resulting in kernel memory corruption that can cause crashes, data corruption, or denial of service.

Affected Systems

All versions of the Linux kernel that contain the tty port management code and have not applied the commits referenced in the advisory are affected. This includes the default kernels shipped by distributions and any derivative kernels that have not incorporated the patch.

Risk and Exploitability

The CVSS score of 4.7 indicates moderate severity, and an EPSS score of less than 1% implies a very low likelihood of exploitation under typical circumstances. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the race can be triggered by concurrent ioctl calls to a tty device. A successful exploitation could result in a kernel crash or denial of service.

Generated by OpenCVE AI on October 23, 2026 at 23:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the commits fixing tty_port_tty_vhangup() and tty_port_hangup() (referenced in the advisory).
  • If a kernel upgrade is not possible, unload or disable tty and serial modules that are not required or restrict their use by setting udev rules or module options to minimize exposure.
  • Enforce strict access controls on tty devices, such as SELinux, AppArmor, or systemd‑udev rules, to allow only trusted users or processes to issue ioctl commands on serial or tty devices.

Generated by OpenCVE AI on October 23, 2026 at 23:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
History

Fri, 30 Oct 2026 12:45:00 +0000


Fri, 23 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
CWE-476

Fri, 23 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Wed, 21 Oct 2026 13:15:00 +0000


Sun, 18 Oct 2026 22:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
CWE-476

Sun, 18 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
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().
Title tty: port: fix tty_port_tty_vhangup() race
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-30T12:39:22.635Z

Reserved: 2026-09-25T10:25:14.368Z

Link: CVE-2026-98752

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:28.993

Modified: 2026-10-30T13:21:24.107

Link: CVE-2026-98752

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T00:00:00Z

Links: CVE-2026-98752 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T23:30:17Z

Weaknesses
  • CWE-366

    Race Condition within a Thread