Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98750 Overview
CVE-2026-98750 is a race condition in the Linux kernel TTY subsystem. The flaw occurs when saving termios state during TTY close races with device re-registration using a reused minor number. The result is a use-after-free condition in kernel memory.
The TTY layer resets saved termios on device registration because minor numbers can be reused for entirely different devices. Old settings can prevent a port from being opened when flags such as CLOCAL are not set. Not all TTY drivers guarantee the minor number is free at registration time, exposing the race window.
Critical Impact
A race between TTY close (saving termios) and device re-registration under a reused minor number can trigger a use-after-free in the Linux kernel.
Affected Products
- Linux kernel TTY subsystem (upstream)
- Stable kernel branches referenced in the fix commits
- Distributions shipping affected stable kernels
Discovery Timeline
- 2026-10-18 - CVE-2026-98750 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98750
Vulnerability Analysis
The Linux TTY layer stores saved termios settings keyed by minor number. When a device registers, the kernel resets the saved state so a prior device that reused the same minor cannot impose stale line settings on the new one. Without the reset, a port may fail to open because flags such as CLOCAL carry over inappropriately.
The defect appears when a driver re-registers a device while another thread is closing a TTY that still references the previous instance. The close path writes saved termios after the registration path has freed or reused the backing state. This ordering produces a use-after-free in kernel context [CWE-416, CWE-362].
The fix introduces a new TTY_DRIVER_RESET_SAVED_TERMIOS flag. Only drivers that guarantee the minor number is no longer in use set this flag, allowing safe reset behavior without exposing the race in drivers that cannot provide that guarantee.
Root Cause
The root cause is unsynchronized access to saved termios state between the TTY close path and device registration. Reusing a minor number before the prior close completes allows the saved-termios write to touch freed memory.
Attack Vector
Triggering the race requires local control over TTY device registration and close timing. The vector depends on driver-specific minor-number reuse behavior, so exploitability varies by subsystem and workload. See the upstream commits for the resolved behavior: Kernel commit 08bf919f, commit 1572d86b, commit 6b4e15cc, commit 8df07fe9, and commit dcaf0251.
Detection Methods for CVE-2026-98750
Indicators of Compromise
- Kernel oops or panic messages referencing TTY close paths and termios save routines
- KASAN or SLUB_DEBUG reports flagging use-after-free in TTY driver code
- Unexpected serial or pseudo-terminal device registration failures correlated with close operations
Detection Strategies
- Enable KASAN on test kernels to surface the use-after-free during stress testing of TTY registration and close
- Compare running kernel versions against the fixed stable commits listed in the upstream references
- Review driver source for minor-number reuse patterns that register devices without confirming the prior instance is released
Monitoring Recommendations
- Collect dmesg and /var/log/kern.log for TTY-related oops signatures across fleet endpoints
- Alert on repeated kernel crashes on hosts that heavily use serial, USB-serial, or virtual TTY devices
- Track kernel package versions in asset inventory to confirm patched builds are deployed
How to Mitigate CVE-2026-98750
Immediate Actions Required
- Update to a Linux kernel build that includes the upstream TTY termios reset race fix
- Rebuild and redeploy custom kernels after merging the referenced stable commits
- Audit in-tree and out-of-tree TTY drivers to confirm minor-number reuse semantics before setting TTY_DRIVER_RESET_SAVED_TERMIOS
Patch Information
The fix adds a TTY_DRIVER_RESET_SAVED_TERMIOS flag so only drivers that guarantee minor-number release opt into the termios reset. Apply the stable commits 08bf919f, 1572d86b, 6b4e15cc, 8df07fe9, and dcaf0251, or install a distribution kernel that incorporates them.
Workarounds
- Restrict local access to systems where unpatched TTY drivers with minor-number reuse are in use
- Unload or disable optional TTY drivers that are not required for production workloads
- Avoid workloads that rapidly register, close, and re-register TTY devices on vulnerable kernels
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

