{"id":"CVE-2026-23078","aliases":["CVE-2026-23078"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: scarlett2: Fix buffer overflow in config retrieval","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: scarlett2: Fix buffer overflow in config retrieval\n\nThe scarlett2_usb_get_config() function has a logic error in the\nendianness conversion code that can cause buffer overflows when\ncount > 1.\n\nThe code checks `if (size == 2)` where `size` is the total buffer size in\nbytes, then loops `count` times treating each element as u16 (2 bytes).\nThis causes the loop to access `count * 2` bytes when the buffer only\nhas `size` bytes allocated.\n\nFix by checking the element size (config_item->size) instead of the\ntotal buffer size. This ensures the endianness conversion matches the\nactual element type.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: scarlett2: Fix buffer overflow in config retrieval\n\nThe scarlett2_usb_get_config() function has a logic error in the\nendianness conversion code that can cause buffer overflows when\ncount > 1.\n\nThe code checks `if (size == 2)` where `size` is the total buffer size in\nbytes, then loops `count` times treating each element as u16 (2 bytes).\nThis causes the loop to access `count * 2` bytes when the buffer only\nhas `size` bytes allocated.\n\nFix by checking the element size (config_item->size) instead of the\ntotal buffer size. This ensures the endianness conversion matches the\nactual element type.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nALSA: scarlett2: Corrección de desbordamiento de búfer en la recuperación de configuración\n\nLa 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 &gt; 1.\n\nEl 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.\n\nSolución comprobando el tamaño del elemento (config_item-&gt;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.","source":"nvd"}],"published":"2026-02-04T16:08:03.283Z","modified":"2026-11-05T22:18:01.430Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"ac34df733d2dfe3b553897a1e9e1a44414f09834","fixed":"d5e80d1f97ae55bcea1426f551e4419245b41b9c","status":"affected"},{"type":"git","introduced":"ac34df733d2dfe3b553897a1e9e1a44414f09834","fixed":"51049f6e3f05d70660e2458ad3bb302a3721b751","status":"affected"},{"type":"git","introduced":"ac34df733d2dfe3b553897a1e9e1a44414f09834","fixed":"91a756d22f0482eac5bedb113c8922f90b254449","status":"affected"},{"type":"git","introduced":"ac34df733d2dfe3b553897a1e9e1a44414f09834","fixed":"27049f50be9f5ae3a62d272128ce0b381cb26a24","status":"affected"},{"type":"git","introduced":"ac34df733d2dfe3b553897a1e9e1a44414f09834","fixed":"31a3eba5c265a763260976674a22851e83128f6d","status":"affected"},{"type":"git","introduced":"ac34df733d2dfe3b553897a1e9e1a44414f09834","fixed":"6f5c69f72e50d51be3a8c028ae7eda42c82902cb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.199","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.162","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.122","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.68","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.8","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.14","fixed":"5.15.199"},{"status":"affected","introduced":"5.16","fixed":"6.1.162"},{"status":"affected","introduced":"6.2","fixed":"6.6.122"},{"status":"affected","introduced":"6.7","fixed":"6.12.68"},{"status":"affected","introduced":"6.13","fixed":"6.18.8"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d5e80d1f97ae55bcea1426f551e4419245b41b9c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51049f6e3f05d70660e2458ad3bb302a3721b751","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91a756d22f0482eac5bedb113c8922f90b254449","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/27049f50be9f5ae3a62d272128ce0b381cb26a24","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31a3eba5c265a763260976674a22851e83128f6d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6f5c69f72e50d51be3a8c028ae7eda42c82902cb","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:19:14.680Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-23078","url":"https://www.cve.org/CVERecord?id=CVE-2026-23078","licence":"CVE Terms of Use","modified":"2026-11-05T21:23:16.539Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-23078","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23078","licence":"Public domain","modified":"2026-11-05T22:18:01.430Z"}],"updatedAt":"2026-11-25T22:59:13.467Z","epss":{"score":0.00197,"percentile":0.09873,"date":"2026-12-01T12:00:22.000Z"}}