# CVE-2026-23078: ALSA: scarlett2: Fix buffer overflow in config retrieval

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-02-04T16:08:03.283Z
- Modified: 2026-11-05T22:18:01.430Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.19 up to *)
- linux linux_kernel: from 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.19

## References

- <https://git.kernel.org/stable/c/d5e80d1f97ae55bcea1426f551e4419245b41b9c> (patch)
- <https://git.kernel.org/stable/c/51049f6e3f05d70660e2458ad3bb302a3721b751> (patch)
- <https://git.kernel.org/stable/c/91a756d22f0482eac5bedb113c8922f90b254449> (patch)
- <https://git.kernel.org/stable/c/27049f50be9f5ae3a62d272128ce0b381cb26a24> (patch)
- <https://git.kernel.org/stable/c/31a3eba5c265a763260976674a22851e83128f6d> (patch)
- <https://git.kernel.org/stable/c/6f5c69f72e50d51be3a8c028ae7eda42c82902cb> (patch)

## Sources

- CVE List: [CVE-2026-23078](https://www.cve.org/CVERecord?id=CVE-2026-23078), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-23078](https://nvd.nist.gov/vuln/detail/CVE-2026-23078), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-23078 · Whole record: https://cve.day/CVE-2026-23078.json · Rebuilt by cve.day 2026-11-25T22:59:13.467Z
