ALSA: scarlett2: Fix buffer overflow in config retrieval (Linux Linux)

CVE-2026-23078
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected ac34df733d2dfe3b553897a1e9e1a44414f09834 < d5e80d1f97ae55bcea1426f551e4419245b41b9c ; affected ac34df733d2dfe3b553897a1e9e1a44414f09834 < 51049f6e3f05d70660e2458ad3bb302a3721b751 ; affected ac34df733d2dfe3b553897a1e9e1a44414f09834 < 91a756d22f0482eac5bedb113c8922f90b254449 ; affected ac34df733d2dfe3b553897a1e9e1a44414f09834 < 27049f50be9f5ae3a62d272128ce0b381cb26a24 ; affected ac34df733d2dfe3b553897a1e9e1a44414f09834 < 31a3eba5c265a763260976674a22851e83128f6d ; affected ac34df733d2dfe3b553897a1e9e1a44414f09834 < 6f5c69f72e50d51be3a8c028ae7eda42c82902cb
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.199 ≤ 5.15.* ; unaffected 6.1.162 ≤ 6.1.* ; unaffected 6.6.122 ≤ 6.6.* ; unaffected 6.12.68 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD