ALSA: line6: Reject capture buffers smaller than two packets (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.19 % · centile 9 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Produits affectés
- Linux · Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: line6: Reject capture buffers smaller than two packets line6_capture_copy() splits the copy into the ALSA ring buffer once at the buffer end and wraps pos_done once, which is only correct when one packet holds at most buffer_size frames. The packet size comes from the device's endpoint, and the per-device hw structs allow 64-byte periods with periods_min 1, so a packet can be larger than the whole buffer. audio_in_callback() logs an oversized packet and then copies it anyway. The packet size is known at probe time, so constrain SNDRV_PCM_HW_PARAM_BUFFER_BYTES in snd_line6_capture_open() to at least twice the larger of the two endpoints' packet sizes. Two rather than one, because pos_done advances by the packet and wraps once, so a buffer of exactly one packet leaves the position unchanged after every packet. hw_params 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 line6_capture_copy() 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 hw_params, and a 2048-byte buffer streams for 30 s with no report and with the position moving inside the buffer.
Références
- https://git.kernel.org/stable/c/e5593f7cc02ce02e414df6afa8fb22ab471b15da
- https://git.kernel.org/stable/c/31041d36272c74903c2edc79c709adacc3efc532
- https://git.kernel.org/stable/c/78cf1c93eaa13f1cd4ebdfdcc3a410f63590c539
- https://git.kernel.org/stable/c/ed4d8c52b322edf93113a6cd0234fe585d4d5b5e
- https://git.kernel.org/stable/c/3e7f477a9e56b627739832e6cf9b682693a474a9
- https://git.kernel.org/stable/c/faf1f471319775e280d959ffbffaa44fd7e5f5b0
- https://git.kernel.org/stable/c/9885eaa2091335ed181c93f2b406604ee2bf2312
- https://git.kernel.org/stable/c/db51425c9eb038a8e40e09b837afde015ae9e3ec
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | Linux |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-131061
- GCVE · GCVE-0-2026-99611
Avis du CERT-FR
- CERTFR-2026-AVI-1679 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1676 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1638 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| Linux · Linux | affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < e5593f7cc02ce02e414df6afa8fb22ab471b15da affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < 31041d36272c74903c2edc79c709adacc3efc532 affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < 78cf1c93eaa13f1cd4ebdfdcc3a410f63590c539 affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < ed4d8c52b322edf93113a6cd0234fe585d4d5b5e affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < 3e7f477a9e56b627739832e6cf9b682693a474a9 affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < faf1f471319775e280d959ffbffaa44fd7e5f5b0 affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < 9885eaa2091335ed181c93f2b406604ee2bf2312 affectée : ≥ 705ececd1c60d0f5d6ef2a719008847883516970 < db51425c9eb038a8e40e09b837afde015ae9e3ec Autres versions : non affectée |
| Linux · Linux | affectée : 2.6.30 non affectée : ≥ 0 < 2.6.30 non affectée : ≥ 5.10.275 ≤ 5.10.* non affectée : ≥ 5.15.226 ≤ 5.15.* non affectée : ≥ 6.1.193 ≤ 6.1.* non affectée : ≥ 6.6.163 ≤ 6.6.* non affectée : ≥ 6.12.118 ≤ 6.12.* non affectée : ≥ 6.18.64 ≤ 6.18.* non affectée : ≥ 7.3.5 ≤ 7.3.* non affectée : ≥ 7.4-rc2 ≤ * Autres versions : affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |