CVE-2026-23078
JSON

7.8high

ALSA: scarlett2: Fix buffer overflow in config retrieval

Severity
7.8high CVSS:3.1 by NVD
Exploit likelihood
0.20% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: scarlett2: Fix buffer overflow in config retrieval The scarlett2_usb_get_config() function has a logic error in the endianness conversion code that can cause buffer overflows when count > 1. The code checks `if (size == 2)` where `size` is the total buffer size in bytes, then loops `count` times treating each element as u16 (2 bytes). This causes the loop to access `count * 2` bytes when the buffer only has `size` bytes allocated. Fix by checking the element size (config_item->size) instead of the total buffer size. This ensures the endianness conversion matches the actual element type.

Affected

Product or packageVersionsReported by
Linux Linuxfrom ac34df733d2dfe3b553897a1e9e1a44414f09834 before d5e80d1f97ae55bcea1426f551e4419245b41b9c, from ac34df733d2dfe3b553897a1e9e1a44414f09834 before 51049f6e3f05d70660e2458ad3bb302a3721b751, from ac34df733d2dfe3b553897a1e9e1a44414f09834 before 91a756d22f0482eac5bedb113c8922f90b254449, from ac34df733d2dfe3b553897a1e9e1a44414f09834 before 27049f50be9f5ae3a62d272128ce0b381cb26a24, from ac34df733d2dfe3b553897a1e9e1a44414f09834 before 31a3eba5c265a763260976674a22851e83128f6d, from ac34df733d2dfe3b553897a1e9e1a44414f09834 before 6f5c69f72e50d51be3a8c028ae7eda42c82902cb, 5.14
Not affected: before 5.14, from 5.15.199 up to 5.15.*, from 6.1.162 up to 6.1.*, from 6.6.122 up to 6.6.*, from 6.12.68 up to 6.12.*, from 6.18.8 up to 6.18.*
CVE List
linux linux_kernelfrom 5.14 before 5.15.199, from 5.16 before 6.1.162, from 6.2 before 6.6.122, from 6.7 before 6.12.68, from 6.13 before 6.18.8, 6.19NVD

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ALSA: scarlett2: Fix buffer overflow in config retrieval The scarlett2_usb_get_config() function has a logic error in the endianness conversion code that can cause buffer overflows when count > 1. The code checks `if (size == 2)` where `size` is the total buffer size in bytes, then loops `count` times treating each element as u16 (2 bytes). This causes the loop to access `count * 2` bytes when the buffer only has `size` bytes allocated. Fix by checking the element size (config_item->size) instead of the total buffer size. This ensures the endianness conversion matches the actual element type.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ALSA: scarlett2: Corrección de desbordamiento de búfer en la recuperación de configuración La función scarlett2_usb_get_config() tiene un error lógico en el código de conversión de endianness que puede causar desbordamientos de búfer cuando count > 1. El código comprueba 'if (size == 2)' donde 'size' es el tamaño total del búfer en bytes, luego itera 'count' veces tratando cada elemento como u16 (2 bytes). Esto hace que el bucle acceda a 'count * 2' bytes cuando el búfer solo tiene 'size' bytes asignados. Solución comprobando el tamaño del elemento (config_item->size) en lugar del tamaño total del búfer. Esto asegura que la conversión de endianness coincida con el tipo de elemento real.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23078 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-23078 changed 2026-11-05Public domain