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-98763 Overview
CVE-2026-98763 is a Linux kernel vulnerability in the USB core subsystem. The flaw resides in the usb_disable_endpoint() function, which fails to clear both direction slots for non-ep0 control endpoints. When usb_enable_endpoint() registers a non-zero control endpoint, it populates both dev->ep_in[epnum] and dev->ep_out[epnum] with the same struct usb_host_endpoint pointer. During teardown, only one direction is cleared based on the epaddr direction bit, leaving a dangling pointer to freed memory in the opposite slot.
Critical Impact
The stale endpoint pointer can be dereferenced after the backing structure is freed, creating a use-after-free condition in kernel memory.
Affected Products
- Linux kernel USB core subsystem
- Systems enumerating USB devices that expose non-ep0 control endpoints
- Kernel builds prior to the patches referenced in the stable tree
Discovery Timeline
- 2026-10-18 - CVE-2026-98763 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98763
Vulnerability Analysis
The defect is a use-after-free in USB endpoint lifecycle management. The USB specification permits control endpoints at non-zero endpoint addresses, where the direction bit of bEndpointAddress is ignored and the single endpoint services both IN and OUT traffic. The kernel reflects this by storing the same usb_host_endpoint pointer in both dev->ep_in[epnum] and dev->ep_out[epnum].
The asymmetry between enable and disable paths creates the defect. usb_disable_endpoint() consults only the direction bit of epaddr to decide which array slot to clear when reset_hardware is set. The opposite slot continues to point at the endpoint structure after it is released. Subsequent lookups through the stale slot access freed memory.
Root Cause
The root cause is inconsistent handling of control endpoint symmetry between the usb_enable_endpoint() and usb_disable_endpoint() functions in drivers/usb/core. The enable path treats a non-ep0 control endpoint as bidirectional and populates both arrays, while the disable path treats it as unidirectional. This logic mismatch leaves a dangling kernel pointer after the endpoint is torn down.
Attack Vector
Triggering the condition requires a USB device whose descriptor advertises a control endpoint with a non-zero endpoint number (for example, bEndpointAddress 0x01 with bmAttributes USB_ENDPOINT_XFER_CONTROL). Reproduction was performed in QEMU with dummy_hcd and raw-gadget against Linux 7.3.0-rc3. A malicious or malformed USB device able to enumerate on a target system could exercise the stale pointer path when the interface is disabled.
No verified public exploit code is available. See the kernel patch submission for the corrective change.
Detection Methods for CVE-2026-98763
Indicators of Compromise
- Kernel log messages referencing use-after-free or KASAN reports pointing at usb_disable_endpoint or usb_hcd_disable_endpoint
- Unexpected kernel oops or panic correlated with USB device disconnect or interface change events
- Enumeration of USB devices whose descriptors declare non-zero control endpoints, which is uncommon in production hardware
Detection Strategies
- Enable KASAN on test kernels to surface the dangling ep_in/ep_out dereference during USB fuzzing
- Audit dmesg for USB subsystem warnings during device attach, detach, or configuration changes
- Correlate USB device insertion events with subsequent kernel crash telemetry on monitored endpoints
Monitoring Recommendations
- Ship kernel logs and crash dumps to a centralized data lake for cross-host correlation
- Alert on USB enumeration events originating from unapproved vendor or product IDs
- Track running kernel versions across the fleet to prioritize unpatched hosts
How to Mitigate CVE-2026-98763
Immediate Actions Required
- Apply the stable kernel updates referenced in the vendor patch commits as soon as distribution packages are available
- Inventory systems that expose USB ports to untrusted users or devices and prioritize them for patching
- Restrict physical and virtual USB access on servers, kiosks, and shared workstations until the fix is deployed
Patch Information
The fix clears both dev->ep_in[epnum] and dev->ep_out[epnum] when disabling a non-ep0 control endpoint with reset_hardware set, and updates the function kerneldoc. The corrective commits are published in the stable tree: commit 0e8baa78, commit 198d74dc, commit 1da16c46, commit 7a9f6147, and commit c50413ec.
Workarounds
- Disable USB host controller drivers on systems that do not require USB connectivity
- Use USB port lockdown via udev rules or USBGuard to restrict devices to known-good vendor and product IDs
- Remove dummy_hcd and raw-gadget modules from production kernels to reduce the local test surface
# Example USBGuard policy restricting USB devices by known IDs
sudo apt install usbguard
sudo usbguard generate-policy > /etc/usbguard/rules.conf
sudo systemctl enable --now usbguard
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

