AZL-116746: CVE-2026-100016 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ALSA: compress: reject buffer geometry change on gapless nexttrack
sndcomprsetparams() is invoked from the gapless nexttrack re-entry path, which calls sndcomprallocatebuffer() again and lets buffersize change while totalbytesavailable and totalbytestransferred still hold values computed for the previous buffer. sndcomprcalcavail() then derives an avail/count value from those stale counters against the new buffersize, and sndcomprwritedata() copyfromuser()s that many bytes into the new, potentially smaller buffer, overflowing it with user-controlled length and content.
The buffer is set up once, with the initial SETPARAMS, and neither the core nor the DSP expects it to change for a gapless track transition. Do not call sndcomprallocatebuffer() on the nexttrack path and reject a request that changes the buffer geometry, so that the codec parameters that the driver receives match the buffer in use.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
On the gapless next_track path, do not call snd_compr_allocate_buffer(); reject requests that change the buffer geometry.
Event History
Frequently Asked Questions
What access does an attacker need to exploit this issue?
An attacker needs the ability to interact with the ALSA compressed-audio interface and issue parameter-setting and gapless next-track operations. Exploitation relies on changing buffer geometry during the next_track re-entry path, then supplying user-controlled data that exceeds the newly smaller buffer.
What is the impact of a successful exploit?
The stale availability counters can cause copy_from_user() to copy too much user-controlled data into a resized, smaller buffer. This results in a kernel buffer overflow.
What configuration or usage pattern is affected?
The issue affects compressed-audio streams using gapless track transitions when a next_track request changes buffer geometry after the initial SET_PARAMS operation. The buffer is intended to be established during the initial SET_PARAMS and remain unchanged across gapless transitions.
What mitigation is available if an updated kernel cannot be deployed immediately?
Avoid allowing compressed-audio gapless next_track operations to change buffer geometry after initial SET_PARAMS. Keep the buffer configuration unchanged for the lifetime of the gapless stream.