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-98695 Overview
CVE-2026-98695 is a race condition in the Linux kernel's USB serial driver subsystem. The flaw occurs when teletypewriter (tty) ioctl calls race with device hangup events, resulting in the kernel calling into a tty driver for a device that is already gone or powered down. An attacker with local access to a system can trigger the race by disconnecting a USB serial device during lengthy break signalling, which may dereference a NULL pointer and crash the kernel. Upstream maintainers resolved the issue by serialising the affected callbacks under the tty port mutex and adding checks to verify the port has not been hung up before accessing port driver data or hardware.
Critical Impact
Local triggering of the race can cause a NULL-pointer dereference in kernel context, leading to a kernel panic and denial of service on affected Linux systems using USB serial devices.
Affected Products
- Linux kernel USB serial subsystem (drivers/usb/serial)
- Linux kernel tty layer ioctl handlers interacting with USB serial ports
- Downstream Linux distributions shipping affected stable kernel versions prior to the referenced fix commits
Discovery Timeline
- 2026-10-18 - CVE-2026-98695 published to the National Vulnerability Database
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98695
Vulnerability Analysis
The vulnerability is a race condition [CWE-362] in the USB serial driver path of the Linux kernel. The tty layer dispatches ioctl calls to the underlying USB serial driver without coordinating with device hangup processing. When a USB device is physically disconnected or powered down while an ioctl is in flight, the driver callback can execute against port state that is being torn down. The commit message specifically identifies lengthy break signalling as a reliable window for triggering the race.
TIOCGICOUNT and TIOCMIWAIT are not affected because they do not touch port driver data or hardware. All other tty ioctl paths that reach the USB serial driver are candidates for the race prior to patching.
Root Cause
The root cause is missing synchronisation between the tty ioctl dispatch path and the port hangup path. Without a shared mutex and a post-acquisition liveness check, the driver proceeds to dereference port driver data or hardware registers belonging to a port that has already been released. In the disconnect-during-break scenario, this leads to a NULL-pointer dereference in kernel mode.
The upstream fix introduces serialisation using the tty port mutex and adds explicit checks that the port has not been hung up before any access to driver data or hardware occurs.
Attack Vector
Exploitation requires local access to a system that exposes a USB serial device to an unprivileged user, or the physical ability to attach and remove a USB device while a tty ioctl is pending. An attacker scripts tty ioctl operations such as break control against the serial port, then forces a hangup, either through logical disconnection, power control, or physical removal. The resulting NULL-pointer dereference yields a kernel oops and typically a denial of service.
No verified public exploit code is available for this issue. Technical remediation details are published in the upstream kernel commits referenced in the Linux kernel stable tree.
Detection Methods for CVE-2026-98695
Indicators of Compromise
- Kernel oops or panic messages referencing usb-serial, tty_port, or NULL-pointer dereferences in USB serial ioctl call paths.
- dmesg entries that correlate USB disconnect events with tty driver faults within a short time window.
- Unexpected process hangs or sessions terminating on serial consoles following device removal.
Detection Strategies
- Compare running kernel versions against the fixed commits listed in the kernel.org stable advisories to identify unpatched hosts.
- Monitor crash telemetry and kdump artifacts for stack traces that intersect USB serial driver symbols and tty port teardown.
- Audit systems that expose /dev/ttyUSB* or /dev/ttyACM* to non-root users, since these increase the local attack surface.
Monitoring Recommendations
- Centralise kernel log collection and alert on repeated oops events referencing USB serial or tty subsystems.
- Track USB device plug and unplug events through udev or auditd and correlate with process activity on serial device nodes.
- Flag hosts running stable kernel branches that have not received the fix commits once distribution advisories are issued.
How to Mitigate CVE-2026-98695
Immediate Actions Required
- Apply vendor kernel updates that incorporate the upstream fix as soon as they are published by your Linux distribution.
- Restrict permissions on USB serial device nodes so only trusted users and services can issue ioctl calls.
- Limit physical and logical USB access on systems where kernel availability is critical.
Patch Information
The fix is distributed across multiple stable kernel commits. Reference commits include 24d6edb6bd7f, 4597ddd6168a, 7912a95d1345, ae0da9a5c1ca, and ae0e61d95677. Verify your running kernel includes one of these commits or an equivalent backport from your distribution vendor.
Workarounds
- Unload or blacklist the usbserial module and specific USB serial drivers on systems that do not require serial-over-USB functionality.
- Tighten udev rules to deny access to USB serial device nodes for unprivileged users until the kernel is patched.
- Avoid issuing long break signals on USB serial ports where device removal is possible during the operation.
# Blacklist USB serial drivers until the kernel is patched
echo 'blacklist usbserial' | sudo tee /etc/modprobe.d/blacklist-usbserial.conf
echo 'blacklist ftdi_sio' | sudo tee -a /etc/modprobe.d/blacklist-usbserial.conf
echo 'blacklist cp210x' | sudo tee -a /etc/modprobe.d/blacklist-usbserial.conf
sudo update-initramfs -u
# Verify running kernel version against distribution advisories
uname -r
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

