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-98265 Overview
CVE-2026-98265 is an out-of-bounds write vulnerability in the Linux kernel's ALSA USB-audio driver. The flaw resides in the implicit feedback sink path, where snd_usb_queue_pending_output_urbs() overwrites the recorded packet count with a value derived from the sync source. When the adopted count exceeds the capacity of the pre-allocated USB Request Block (URB), prepare_playback_urb() and prepare_silent_urb() write to iso_frame_desc[] beyond the allocation. A crafted or malicious USB Audio Class 2 (UAC2) device can trigger slab-out-of-bounds writes in kernel memory. The upstream kernel has merged fixes clamping the adopted packet count to the allocated URB capacity.
Critical Impact
A malicious or malformed USB audio device can corrupt adjacent kernel slab memory, risking denial of service or kernel memory corruption on affected Linux systems.
Affected Products
- Linux kernel ALSA USB-audio driver (sound/usb/pcm.c, sound/usb/endpoint.c)
- Kernel builds exposing USB audio to UAC2 devices with implicit feedback endpoints
- Systems with vhci_hcd (USB/IP) enabled that accept remote USB devices
Discovery Timeline
- 2026-10-06 - CVE-2026-98265 published to the National Vulnerability Database
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98265
Vulnerability Analysis
The ALSA USB-audio driver allocates each data URB with a fixed number of isochronous frame descriptor slots. data_ep_set_params() sizes urb->iso_frame_desc[] to exactly u->packets entries, and ctx->packets stores that limit. The implicit feedback sink path then overwrites ctx->packets with the sync source's packet count. The sync source value is computed independently from the capture endpoint's parameters.
When the sync source reports a larger packet count, downstream URB preparation routines iterate past the end of the descriptor array. Existing bounds checks in prepare_playback_urb() and prepare_silent_urb() limit payload byte counts, not the descriptor index. The result is a write past the allocated slab object.
The public reproducer uses a high-speed UAC2 device declaring bInterval 1 for implicit feedback capture (8 packets) and bInterval 4 for playback (1 packet). On the first capture completion after stream start, the driver accesses seven descriptors spanning 112 bytes beyond the one-packet URB allocation.
Root Cause
The driver uses one variable to represent two different limits. ctx->packets was intended as the allocated descriptor count, but the implicit feedback code path repurposes it to carry the sync source packet count. No validation enforces that the adopted value stays within the originally allocated URB capacity.
Attack Vector
Exploitation requires the kernel to enumerate a USB audio device whose descriptors declare mismatched packet counts between the capture (feedback) and playback endpoints. Local attackers with physical USB access qualify. Remote attackers can reach the code path through USB/IP (vhci_hcd), as shown by the KASAN report naming vhci_rx_loop. The KASAN trace demonstrates a slab-out-of-bounds write of 4 bytes at offset 208 within a 256-byte kmalloc-256 cache object.
The vulnerability mechanism is described in prose only; refer to the upstream kernel commits for the exact patch diff and reproducer. See the Kernel Git Commit ad279ba for the fix.
Detection Methods for CVE-2026-98265
Indicators of Compromise
- KASAN reports citing slab-out-of-bounds in prepare_playback_urb at sound/usb/pcm.c:1560
- Kernel oops or panic traces involving snd_usb_queue_pending_output_urbs and snd_complete_urb
- Unexpected kernel crashes shortly after a USB audio device is attached or a USB/IP session begins
Detection Strategies
- Enable KASAN on test and canary systems to surface out-of-bounds writes in the ALSA USB-audio path
- Monitor dmesg and journald for prepare_playback_urb, prepare_silent_urb, and vhci_rx_loop stack frames
- Correlate USB device enumeration events with subsequent kernel warnings using endpoint telemetry
Monitoring Recommendations
- Alert on new UAC2 device attachments on servers that do not require USB audio
- Audit systems running vhci_hcd and restrict which remote hosts may export USB devices
- Track Linux kernel versions across the fleet and flag hosts behind the patched baseline
How to Mitigate CVE-2026-98265
Immediate Actions Required
- Apply the upstream Linux kernel patches that clamp the adopted packet count and packet-size copy to the allocated URB capacity
- Disable or unload the snd_usb_audio module on systems that do not require USB audio
- Unload vhci_hcd on hosts that do not need USB/IP, removing the remote USB attack surface
Patch Information
Fixes are available in the mainline and stable Linux kernel trees. Review the following commits for the applicable backports:
- Kernel Git Commit ad279ba
- Kernel Git Commit 76a986c
- Kernel Git Commit 79c55a7
- Kernel Git Commit ab77e3f
The fix records the allocated packet count per endpoint and clamps both the adopted count and packet-size copy to that limit. It also folds the Format Type II delimiter into urb_packs before the allocation loop so the recorded limit matches every URB.
Workarounds
- Blacklist snd_usb_audio with echo "blacklist snd_usb_audio" > /etc/modprobe.d/blacklist-usbaudio.conf on systems that do not need USB audio
- Restrict physical USB access and disable unused USB ports via BIOS or udev rules
- Use USBGuard or similar policy frameworks to reject unknown UAC2 devices before enumeration
# Configuration example: block USB audio class devices with USBGuard
allow with-interface equals { 03:*:* }
block with-interface one-of { 01:*:* }
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

