Linux
ASoC: SOF: ipc4-control: Fix TOCTOU in sof_ipc4_bytes_put
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= a062c8899fede2ab5660a817e9b602d3fa280a99, < 266f936db83aee6ca6473bbb06259bda52bf4fc3
- >= a062c8899fede2ab5660a817e9b602d3fa280a99, < 4cf6a7ebbf8787393b158b2cc341723e5bebc4a8
- >= a062c8899fede2ab5660a817e9b602d3fa280a99, < fb4293173db2d474d8fbc0e5ecf4943e6df2b40e
- >= a062c8899fede2ab5660a817e9b602d3fa280a99, < 038406abde0d0883419ec89425ea941ec8bbef95
- >= a062c8899fede2ab5660a817e9b602d3fa280a99, < 3ad673e7139cf214afd24321a829aad6575f4163
Fixed in 266f936db83aee6ca6473bbb06259bda52bf4fc3, 4cf6a7ebbf8787393b158b2cc341723e5bebc4a8, fb4293173db2d474d8fbc0e5ecf4943e6df2b40e, 038406abde0d0883419ec89425ea941ec8bbef95, 3ad673e7139cf214afd24321a829aad6575f4163
- 6.4
Fixed in 0, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 266f936db83aee6ca6473bbb06259bda52bf4fc3 or 4cf6a7ebbf8787393b158b2cc341723e5bebc4a8 or fb4293173db2d474d8fbc0e5ecf4943e6df2b40e or 038406abde0d0883419ec89425ea941ec8bbef95 or 3ad673e7139cf214afd24321a829aad6575f4163 or later.
Upgrade Linux to 0 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.