CVE-2026-74498 PUBLISHED

ALSA: usb-audio: Fix DMA buffer out-of-bounds write when fill_max is set

Assigner: Linux
Reserved: 15.08.2026 Published: 15.08.2026 Updated: 15.08.2026

In the Linux kernel, the following vulnerability has been resolved:

ALSA: usb-audio: Fix DMA buffer out-of-bounds write when fill_max is set

When a USB audio endpoint requests full packet transfers via the fill_max descriptor flag, data_ep_set_params() promotes ep->curpacksize to ep->maxpacksize. However, maxsize is left at the original sample-rate derived value.

Since u->buffer_size is allocated as maxsize * packets, the resulting DMA buffer is far too small for the requested transfer length. When the USB host controller streams up to curpacksize bytes per packet, it writes past the end of the buffer via DMA, corrupting kernel heap memory.

Update maxsize to curpacksize when fill_max is set so that the allocated DMA buffer size matches the actual transfer request size.

[ changed to reassign maxsize only when ep->fill_max is set -- tiwai ]

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 8fdff6a319e7dac757c558bd283dc4577e68cde7 to 3852974608f53e530e27c21d0c6c7d79c17b3f5a (excl.)
  • affected from 8fdff6a319e7dac757c558bd283dc4577e68cde7 to f9b6c9576568169139ac151f7881474f384659fd (excl.)
  • affected from 8fdff6a319e7dac757c558bd283dc4577e68cde7 to 04595233e5606d452f9f47e6989fc7ae7440fd40 (excl.)
  • affected from 8fdff6a319e7dac757c558bd283dc4577e68cde7 to bd65b7191683bebd9923904f0558b9211b9129da (excl.)
  • affected from 8fdff6a319e7dac757c558bd283dc4577e68cde7 to d0199ae1666ff9ae2d1d568d64c3430d4c47f0e5 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.5 is affected
  • unaffected from 0 to 3.5 (excl.)
  • unaffected from 6.6.151 to 6.6.* (incl.)
  • unaffected from 6.12.103 to 6.12.* (incl.)
  • unaffected from 6.18.44 to 6.18.* (incl.)
  • unaffected from 7.1.8 to 7.1.* (incl.)
  • unaffected from 7.2-rc6 to * (incl.)

References