ASoC: SOF: ipc4-control: Fix TOCTOU in sof_ipc4_bytes_put
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.145, 6.12.97, 6.18.40, 7.1.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc4-control: Fix TOCTOU in sof_ipc4_bytes_put In sof_ipc4_bytes_put(), the copy size is derived from the old data->size in the buffer rather than the incoming new data's size field from ucontrol. If the new data has a different size, the copy uses the wrong length: it may truncate valid data or copy stale bytes. Fix by validating and using the incoming data's sof_abi_hdr.size from ucontrol before copying.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From a062c8899fede2ab5660a817e9b602d3fa280a99 · fixed in 266f936db83aee6ca6473bbb06259bda52bf4fc3; From a062c8899fede2ab5660a817e9b602d3fa280a99 · fixed in 4cf6a7ebbf8787393b158b2cc341723e5bebc4a8; From a062c8899fede2ab5660a817e9b602d3fa280a99 · fixed in fb4293173db2d474d8fbc0e5ecf4943e6df2b40e; From a062c8899fede2ab5660a817e9b602d3fa280a99 · fixed in 038406abde0d0883419ec89425ea941ec8bbef95; From a062c8899fede2ab5660a817e9b602d3fa280a99 · fixed in 3ad673e7139cf214afd24321a829aad6575f4163
- Linux Linux
6.4
- KernelLinux
From 6.4.0 · fixed in 6.6.145; From 6.7.0 · fixed in 6.12.97; From 6.13.0 · fixed in 6.18.40; From 6.19.0 · fixed in 7.1.5