ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.17 % · percentile 6 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get In sof_ipc3_bytes_put(), the size used for the memcpy is derived from the old data->size already in the buffer, not the incoming new data's size field. If the new data has a different size, the copy length is wrong: it may truncate valid data or copy stale bytes. Similarly, sof_ipc3_bytes_get() checks data->size against max_size without accounting for the sizeof(struct sof_ipc_ctrl_data) offset of the flex array within the allocation. Fix bytes_put to validate and use the incoming data's sof_abi_hdr.size from ucontrol before copying. Fix bytes_get to subtract sizeof(*cdata) from the bounds check to match the actual available space.
References
- https://git.kernel.org/stable/c/8bd715a9d882fe1993bb2aec5eff89fffa946592
- https://git.kernel.org/stable/c/0dce240145f47545d2e4b18c6d58033b83e1fd0e
- https://git.kernel.org/stable/c/ed4f758f34be4c32e02933ac4fa044589d9c1c16
- https://git.kernel.org/stable/c/0c4fbdaca225b97122b61b68c5353caa33a253c3
- https://git.kernel.org/stable/c/92f90917413bdd6078fefff6f6c83a07bf870b04
- https://git.kernel.org/stable/c/1f97760417b5faa60e9642fd0ed61eb17d0b1b39
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| 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) |
European references
- ENISA EUVD · EUVD-2026-59200
- GCVE · GCVE-0-2026-72301
CERT-FR advisories
- CERTFR-2026-AVI-1432 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1385 — Multiples vulnérabilités dans les produits VMware · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1335 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1333 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1286 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 544ac8858f249950b4d99c68e538cdc07300528f < 8bd715a9d882fe1993bb2aec5eff89fffa946592 ; affected 544ac8858f249950b4d99c68e538cdc07300528f < 0dce240145f47545d2e4b18c6d58033b83e1fd0e ; affected 544ac8858f249950b4d99c68e538cdc07300528f < ed4f758f34be4c32e02933ac4fa044589d9c1c16 ; affected 544ac8858f249950b4d99c68e538cdc07300528f < 0c4fbdaca225b97122b61b68c5353caa33a253c3 ; affected 544ac8858f249950b4d99c68e538cdc07300528f < 92f90917413bdd6078fefff6f6c83a07bf870b04 ; affected 544ac8858f249950b4d99c68e538cdc07300528f < 1f97760417b5faa60e9642fd0ed61eb17d0b1b39 |
| Linux · Linux | affected 5.18 ; unaffected 0 < 5.18 ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.* ; unaffected 6.12.97 ≤ 6.12.* ; unaffected 6.18.40 ≤ 6.18.* |
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 |