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

CVE-2026-74498
Not available

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

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 ]

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 8fdff6a319e7dac757c558bd283dc4577e68cde7 < 10c24e6fddf4bdff0b6b05a47a4347b38e6960e8 ; affected 8fdff6a319e7dac757c558bd283dc4577e68cde7 < b1770f9ac35c0ffc34914d52347c65dcd5ac049b ; affected 8fdff6a319e7dac757c558bd283dc4577e68cde7 < 6cbdd11f9b05b92f4aa29f09a66e19ed0e25e66c ; affected 8fdff6a319e7dac757c558bd283dc4577e68cde7 < 3852974608f53e530e27c21d0c6c7d79c17b3f5a ; affected 8fdff6a319e7dac757c558bd283dc4577e68cde7 < f9b6c9576568169139ac151f7881474f384659fd ; affected 8fdff6a319e7dac757c558bd283dc4577e68cde7 < 04595233e5606d452f9f47e6989fc7ae7440fd40
Linux · Linuxaffected 3.5 ; unaffected 0 < 3.5 ; unaffected 5.10.265 ≤ 5.10.* ; unaffected 5.15.216 ≤ 5.15.* ; unaffected 6.1.183 ≤ 6.1.* ; unaffected 6.6.151 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD