CVE-2026-99611: ALSA: line6: Reject capture buffers smaller than two packets

Published Nov 20, 2026
·
Updated

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

ALSA: line6: Reject capture buffers smaller than two packets

line6capturecopy() splits the copy into the ALSA ring buffer once at the buffer end and wraps posdone once, which is only correct when one packet holds at most buffersize frames. The packet size comes from the device's endpoint, and the per-device hw structs allow 64-byte periods with periodsmin 1, so a packet can be larger than the whole buffer. audioincallback() logs an oversized packet and then copies it anyway.

The packet size is known at probe time, so constrain SNDRVPCMHWPARAMBUFFERBYTES in sndline6captureopen() to at least twice the larger of the two endpoints' packet sizes. Two rather than one, because posdone advances by the packet and wraps once, so a buffer of exactly one packet leaves the position unchanged after every packet. hwparams then rejects a buffer that cannot hold two packets, and the single wrap is valid for every configuration that gets through. Keep a guard in line6capturecopy() that drops an oversized packet with a ratelimited error, for the case that should no longer be reachable.

Reproduced on 7.3-rc7 with a USB/IP device presenting the GuitarPort interface layout and 1024-byte packets into a 128-byte buffer: ALSA logged "invalid position: pos = 224, buffer size = 32" and the driver logged "driver bug: len" on every following packet. With this patch a 1024-byte buffer is refused at hwparams, and a 2048-byte buffer streams for 30 s with no report and with the position moving inside the buffer.

Affected Software

7 affected componentsFixes available
linux/kernel>=2.6.30<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-2, <=6.12.107-1, <=6.12.117-1, <=7.3.4-1
7.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.5-1
  5. Compensating control

    In the Linux kernel Line 6 capture driver, constrain SNDRV_PCM_HW_PARAM_BUFFER_BYTES in snd_line6_capture_open() to at least twice the larger packet size of the two endpoints, and make line6_capture_copy() drop oversized packets with a ratelimited error.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:49 AM
Data Sourced
via MITRE·05:49 AM
Description
Data Sourced
via OSV·05:49 AM
DescriptionAffected Software
Data Sourced
via NVD·06:17 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel's ALSA line6 capture path are affected when their capture buffer is smaller than two packets based on the device endpoints' packet sizes. The vulnerable configuration can occur because the per-device hardware settings permit 64-byte periods with a minimum of one period.

2

What configuration constraint prevents the faulty copy behavior?

The capture buffer must be at least twice the size of the larger packet size advertised by the two device endpoints. This ensures the buffer can hold two packets and that the capture position update, which wraps only once, remains valid.

3

How can an administrator identify a potentially unsafe runtime condition?

The capture callback logs an oversized packet before copying it. In the resolved behavior, the copy routine also retains a rate-limited error path and drops oversized packets if such a condition is reached.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203