CVE-2026-100016

ALSA: compress: reject buffer geometry change on gapless next_track

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ALSA: compress: reject buffer geometry change on gapless next_track

snd_compr_set_params() is invoked from the gapless next_track
re-entry path, which calls snd_compr_allocate_buffer() again and lets
buffer_size change while total_bytes_available and
total_bytes_transferred still hold values computed for the previous
buffer. snd_compr_calc_avail() then derives an avail/count value from
those stale counters against the new buffer_size, and
snd_compr_write_data() copy_from_user()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 SET_PARAMS, and neither the
core nor the DSP expects it to change for a gapless track transition.
Do not call snd_compr_allocate_buffer() on the next_track path and
reject a request that changes the buffer geometry, so that the codec
parameters that the driver receives match the buffer in use.

Analysis

AI-generated

Technical impact

The vulnerability allows an unprivileged local user to corrupt the ALSA compress driver’s internal buffer when the system performs a gapless next_track operation. During that operation, the driver reallocates a buffer and changes its size while retaining stale counters that were calculated using the previous buffer size. When data is written to the buffer, the driver calculates an availability count based on the stale counters and copies that many bytes from user space, causing an out‑of‑bounds write. The resulting kernel memory corruption can lead to arbitrary code execution and privilege escalation.

Affected Systems

The flaw resides in the Linux kernel’s Advanced Linux Sound Architecture (ALSA) compress subsystem. Any system running the Linux kernel that includes the vulnerable ALSA code is affected. The affected exact kernel versions are not listed in the data, so administrators should check whether their kernel incorporates the commit that fixes the issue.

Risk and Exploitability

Because the defect involves kernel memory corruption triggered by a standard audio operation, it can be exploited by any local user with access to ALSA. No publicly available exploit is listed, and the vulnerability is not in CISA’s KEV catalogue, but the lack of an EPSS score means the exploitation probability is unclear. The severity is significant; a successful exploit gives the attacker kernel‑level control. Administrators should treat this as a high‑severity vulnerability and apply the patched kernel as soon as possible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the commit resolving the bug.
  • If a kernel update is not immediately available, disable gapless playback or restrict ALSA compress functionality to trusted users only.
  • Ensure that any custom kernel modules or drop‑in ALSA driver code honors the buffer geometry constraint and rejects reallocation on the next_track path.

Generated by OpenCVE AI on November 30, 2026 at 15:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ALSA: compress: reject buffer geometry change on gapless next_track snd_compr_set_params() is invoked from the gapless next_track re-entry path, which calls snd_compr_allocate_buffer() again and lets buffer_size change while total_bytes_available and total_bytes_transferred still hold values computed for the previous buffer. snd_compr_calc_avail() then derives an avail/count value from those stale counters against the new buffer_size, and snd_compr_write_data() copy_from_user()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 SET_PARAMS, and neither the core nor the DSP expects it to change for a gapless track transition. Do not call snd_compr_allocate_buffer() on the next_track path and reject a request that changes the buffer geometry, so that the codec parameters that the driver receives match the buffer in use.
Title ALSA: compress: reject buffer geometry change on gapless next_track
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM