Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143180

ALSA: usb-audio: Drop capture packets with bogus actual_length

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: usb-audio: Drop capture packets with bogus actual_length retire_capture_urb() copies urb->iso_frame_desc[i].actual_length bytes out of urb->transfer_buffer at the packet's offset, but never checks that value against the requested packet length. A host controller reporting more data than requested makes memcpy() read past the end of the URB transfer buffer. Commit 06be918062ad ("ALSA: usb-audio: Bound packet copies by the PCM buffer size") clamps the count to the PCM ring buffer size, which protects the destination. The source slot is only ep->curpacksize bytes per packet, though, so the over-read remains. This was hit on an ARM32 system (vendor 5.4 kernel; the code path is unchanged in mainline) with a full-speed UAC1 microphone behind a high-speed hub, i.e. the EHCI siTD path. sitd_complete() computes actual_length as desc->length - SITD_LENGTH(t); the controller reported a remaining length larger than the programmed one, the value wrapped to ~4G, and the capture copy faulted on the first unmapped page after the URB buffer: Unable to handle kernel paging request at virtual address e8756000 Internal error: Oops: 7 [#1] PREEMPT SMP ARM r3 : 00000000 r2 : 0001e700 r1 : e8756000 r0 : e878fc80 Code: ba000002 f5d1f03c f5d1f05c f5d1f07c (e8b151f8) A packet can never legitimately carry more than its requested length, so warn and skip it instead of copying.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 8967e16646a9c67ff2c45558dd15ee4fd4fb1fd3affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1320aebbe876c69613c52b01cf8b1d233ffca5abaffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e4e81d0612acc7c1a1d4a744d0cdfba1308c1b16affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 63bf066480ffd6f6eb5910736ff5c1b54cceb99aaffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < df8865d0e977fe72497280aebdec66857d533a08affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < eed0e9583a290e6adbe3a8480bdae911f31e1ed9affected

Linux Linux

Default version status: affected

  • 2.6.12affected
  • 0 to < 2.6.12unaffected
  • 5.10.276 to ≤ 5.10.*unaffected
  • 5.15.227 to ≤ 5.15.*unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References