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-98772 Overview
CVE-2026-98772 is a use-after-free vulnerability in the Linux kernel's USB serial subsystem. The flaw affects multiport USB serial device drivers that access port driver data from completion handlers of shared Universal Serial Bus Request Blocks (URBs). These URBs are submitted at attach() or first open() and stopped at disconnect() or last close(). A completion handler can race with port teardown, allowing access to freed driver data. The kernel maintainers resolved the issue by reordering disconnect handling so ports are not deregistered until all ports have been hung up and the driver disconnect() callback has completed.
Critical Impact
A race condition between URB completion handlers and port teardown can trigger a use-after-free, potentially leading to kernel memory corruption or denial of service.
Affected Products
- Linux kernel USB serial subsystem (drivers/usb/serial)
- Multiport USB serial device drivers that submit shared URBs across ports
- Stable kernel branches referenced in the upstream commit series
Discovery Timeline
- 2026-10-18 - CVE-2026-98772 published to the National Vulnerability Database
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98772
Vulnerability Analysis
The vulnerability resides in the USB serial core teardown path. Drivers for multiport USB devices commonly share a single URB across all ports on the device. These shared URBs are submitted during attach() or on the first open() call, and are stopped during disconnect() or on the last close(). The completion handler for the shared URB reaches into per-port driver data to dispatch received data to the correct port.
A simple NULL check in the completion handler confirms that a port state container was allocated, but it does not synchronize against port teardown. If the USB serial core deregisters a port and frees its driver data while the completion handler is still executing, the handler dereferences freed memory. This race between asynchronous URB completion and synchronous port removal creates the use-after-free condition.
Root Cause
The root cause is incorrect ordering in the disconnect sequence. Ports were being deregistered — and their driver data freed — before the driver's disconnect() callback had stopped the shared URBs responsible for I/O. The completion handler could therefore run against torn-down ports.
Attack Vector
Exploitation requires a race between URB completion and USB device disconnect. A local attacker with the ability to attach or physically disconnect a vulnerable multiport USB serial device during active I/O could trigger the race. The practical impact is kernel memory corruption or a kernel oops, resulting in denial of service. The vulnerability is a kernel memory safety flaw [CWE-416] rather than a remotely exploitable network issue.
The upstream fix reorders the teardown so all ports are hung up and the driver disconnect() callback runs — stopping all I/O — before any port is deregistered. Refer to the upstream commits for implementation details.
Detection Methods for CVE-2026-98772
Indicators of Compromise
- Kernel oops or panic messages referencing usb-serial, usb_serial_port, or completion handler stack frames during USB device disconnect events
- KASAN use-after-free reports in drivers/usb/serial on kernels built with memory sanitizers enabled
- Unexpected system crashes correlated with hot-plug activity on multiport USB serial adapters
Detection Strategies
- Compare running kernel versions against distribution advisories referencing the upstream commits (33c920f7, 5e8980a8, 60cc9379, e4a6883a, e80ee742)
- Enable KASAN in test environments to surface use-after-free reports originating from USB serial completion paths
- Audit custom or out-of-tree USB serial drivers that submit shared URBs for the same race pattern
Monitoring Recommendations
- Collect kernel ring buffer output (dmesg, journalctl -k) centrally and alert on oops, BUG, or KASAN entries
- Track USB hot-plug events on servers and workstations that use multiport USB-to-serial adapters
- Monitor kernel package versions across the fleet to confirm patch rollout coverage
How to Mitigate CVE-2026-98772
Immediate Actions Required
- Apply the patched kernel package from your Linux distribution as soon as it becomes available
- Prioritize systems using multiport USB serial adapters, including industrial controllers, console servers, and lab equipment
- Restrict physical and local user access to systems where immediate patching is not possible
Patch Information
The fix was committed upstream across the following references: Kernel Commit Update, Kernel Commit Enhancement, Kernel Bug Fix, Kernel Security Patch, and Kernel Performance Improvement. The patch reorders disconnect handling so port deregistration occurs only after all I/O has stopped.
Workarounds
- Avoid hot-unplugging multiport USB serial adapters while serial I/O is in progress
- Unload affected USB serial driver modules when not in use on sensitive hosts
- Use udev rules to restrict which USB serial devices can bind on production systems
# Verify installed kernel version against patched release
uname -r
# Example: Debian/Ubuntu upgrade path
sudo apt update && sudo apt install --only-upgrade linux-image-$(uname -r | sed 's/.*-//')
# Example: RHEL/CentOS/Rocky upgrade path
sudo dnf update kernel
# Reboot to activate the patched kernel
sudo systemctl reboot
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

