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-98697 Overview
CVE-2026-98697 is a race condition vulnerability in the Linux kernel's USB serial driver subsystem. The flaw resides in the dynamic ID handling logic, where dynamic IDs were freed before the driver was fully deregistered and before the new_id sysfs attribute was removed. A concurrent write to the new_id attribute during driver deregistration can add an ID that is never released, resulting in a memory leak or inconsistent driver state.
The issue has been resolved upstream by reordering the cleanup sequence so dynamic IDs are only freed after driver deregistration and attribute removal.
Critical Impact
A racing write to the USB serial new_id sysfs attribute during driver deregistration can leak kernel memory and leave stale dynamic device IDs registered to an unloaded driver.
Affected Products
- Linux kernel (USB serial subsystem, drivers/usb/serial)
- Multiple stable kernel branches patched via the referenced commits
- Distributions shipping affected upstream kernel versions
Discovery Timeline
- 2026-10-18 - CVE-2026-98697 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98697
Vulnerability Analysis
The Linux USB serial driver core allows userspace to attach additional USB vendor and product IDs to a driver at runtime by writing to the new_id sysfs attribute. These dynamic IDs are stored on a per-driver list and must be released when the driver is unloaded.
In the vulnerable code path, the kernel freed the dynamic ID list before deregistering the driver and removing the new_id attribute. A userspace process writing to new_id during that window could insert a fresh ID after the free had already occurred. The added ID would never be cleaned up, resulting in a leak and leaving a reference associated with a driver that is being torn down.
Root Cause
The root cause is incorrect cleanup ordering in the USB serial driver deregistration routine, classified as a race condition (TOCTOU-style window between attribute availability and resource teardown). Because the new_id interface remained writable while dynamic IDs were being freed, concurrent writes could race against the teardown logic. The upstream fix reorders operations to deregister the driver and remove the new_id attribute first, then free the dynamic IDs once no new entries can be added.
Attack Vector
Exploitation requires local access and the privileges needed to write to USB serial driver sysfs attributes, which are typically restricted to root. The attack vector is limited to systems where a privileged local actor or buggy userspace component can trigger USB serial driver module unload concurrently with writes to the new_id interface. The practical impact is kernel memory leakage and potential driver-state inconsistency rather than remote compromise.
Refer to the upstream fix commits for the exact code changes: Kernel Commit 29172161236154, Kernel Commit 380f57cd58e2, Kernel Commit 4d6da6867b4a, Kernel Commit 63594e8ffe09, and Kernel Commit ebd8fcaaacb6.
Detection Methods for CVE-2026-98697
Indicators of Compromise
- Unexpected growth in kernel slab allocations tied to USB serial dynamic ID structures over time.
- Kernel log entries referencing USB serial driver load/unload cycles concurrent with new_id sysfs writes.
- Persistent dynamic device IDs still bound to USB serial drivers after module removal.
Detection Strategies
- Audit running kernel versions against the fixed commit hashes to identify unpatched hosts.
- Monitor processes writing to /sys/bus/usb-serial/drivers/*/new_id using Linux audit rules or eBPF-based file access tracing.
- Correlate module load and unload events (modprobe, rmmod) with sysfs writes to USB serial attributes.
Monitoring Recommendations
- Track kernel memory consumption trends on long-running systems that frequently hot-plug USB serial devices.
- Enable auditd rules on USB-related sysfs paths and alert on writes originating from unexpected binaries.
- Review automated provisioning scripts and udev rules that interact with the new_id attribute to ensure they do not race with driver unload operations.
How to Mitigate CVE-2026-98697
Immediate Actions Required
- Update affected Linux systems to a kernel version that includes the referenced fix commits.
- Inventory distributions and appliances using USB serial drivers to prioritize patching for industrial, embedded, and point-of-sale fleets.
- Restrict local administrative access to systems where USB serial drivers are loaded and unloaded dynamically.
Patch Information
The fix reorders cleanup so dynamic IDs are freed only after driver deregistration and removal of the new_id attribute. Apply vendor-supplied kernel updates referencing commits 29172161236154, 380f57cd58e2, 4d6da6867b4a, 63594e8ffe09, or ebd8fcaaacb6 as backported to the relevant stable branch. Reboot after kernel package installation to activate the patched image.
Workarounds
- Avoid dynamic unloading of USB serial driver modules on production systems until the patched kernel is installed.
- Restrict write permissions on /sys/bus/usb-serial/drivers/*/new_id to trusted administrative processes only.
- Disable or blacklist unused USB serial driver modules to minimize exposure on systems that do not require them.
# Verify installed kernel version and check for the fix
uname -r
# Example: prevent unprivileged processes from writing to new_id (illustrative)
ls -l /sys/bus/usb-serial/drivers/*/new_id
# Blacklist an unused USB serial driver to reduce attack surface
echo "blacklist usbserial" | sudo tee /etc/modprobe.d/blacklist-usbserial.conf
sudo update-initramfs -u
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

