CVE-2026-98751 in Linuxinfo

Summary

by MITRE • 10/18/2026

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

tty: abort break signalling on hangup

The break ioctls can race with hangup and end up calling into a tty driver for a device that is already gone or powered down.

Drivers must handle this race, but TCSBRK and TCSBRKP should still be aborted to avoid calling back into the driver after a user-controlled timeout (possibly even after the tty has been reopened).

Note that drivers should disable any break state on shutdown so just return on hangup (calling break_ctl() again is racy and will most likely fail for drivers handling the race).

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 10/18/2026

The Linux kernel's terminal subsystem contains a concurrency flaw within the implementation of break signaling ioctls, specifically TCSBRK and TCSBRKP. These system calls are designed to send a break condition on a serial line, which is often used for out-of-band management or hardware reset sequences. The vulnerability arises from a race condition where these ioctl operations can execute concurrently with a hangup event on the terminal device. When such a race occurs, the kernel may attempt to invoke driver-specific functions, particularly the break_ctl callback, on a tty structure that has already been deallocated, powered down, or otherwise invalidated by the hangup process. This lack of synchronization allows user-space processes to trigger operations against resources that are no longer in a valid state for such interactions.

From a technical perspective, this issue stems from insufficient locking or atomic checks during the transition between active terminal usage and device detachment. The tty layer does not adequately verify whether the underlying driver is still accepting break signals before proceeding with the ioctl execution path. Consequently, if a user initiates a break signal while the device is being closed or reset, the kernel may dereference invalid pointers or call into driver code that expects an active hardware interface. This can lead to undefined behavior, including kernel panics, memory corruption, or system instability, depending on how the specific tty driver handles the erroneous callback invocation after the hangup sequence has begun but before it is fully completed.

The operational impact of this vulnerability includes potential denial of service through kernel crashes and possible privilege escalation if an attacker can leverage the resulting state confusion to execute arbitrary code within the kernel context. Since TCSBRK and TCSBRKP are user-controllable, a local unprivileged user could potentially trigger this race condition repeatedly or in conjunction with other system calls to increase the likelihood of exploitation. The risk is exacerbated by the fact that break signaling often involves timeouts controlled by the caller, meaning an attacker has some degree of timing control over when the invalid callback occurs relative to the hangup process.

To mitigate this vulnerability, it is critical for tty drivers to implement robust state checks before processing break signals. Drivers should disable any active break state during their shutdown routines and return immediately if a hangup flag is set on the tty structure. This ensures that even if a race condition exists in the core tty layer, the driver side will safely abort the operation rather than attempting to interact with non-existent hardware. Additionally, kernel developers have addressed this by ensuring that TCSBRK and TCSBRKP ioctls are aborted when a hangup is detected, preventing the callback into potentially invalid driver code after user-controlled timeouts or upon tty reopening scenarios where state consistency might otherwise be compromised.

This vulnerability aligns with CWE-362, which describes concurrent execution using shared resources with improper synchronization. The attack vector corresponds to ATT&CK technique T1059, specifically command and scripting interpreter abuse via system calls that interact directly with hardware interfaces. Proper implementation of atomic checks for tty state during ioctl processing is essential to maintain the integrity of the kernel's device management layer and prevent exploitation through race conditions in terminal subsystem operations.

Responsible

Linux

Reservation

09/25/2026

Disclosure

10/18/2026

Moderation

accepted

EPSS

0.00000

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!