Linux
ASoC: SOF: ipc3-control: Validate size in snd_sof_update_control
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: ipc3-control: Validate size in snd_sof_update_control In snd_sof_update_control(), firmware-provided cdata->num_elems is checked against local_cdata->data->size but never against the actual allocation size. If local_cdata->data->size was previously set to an inconsistent value, the memcpy could write past the allocated buffer. Add a bounds check to ensure num_elems fits within the available space in the ipc_control_data allocation before copying.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 10f461d79c2d1afb22344986cc1b4631169cf25e, < 1dc25a3e06364f48c4ef06016852f8b82425151a
- >= 10f461d79c2d1afb22344986cc1b4631169cf25e, < ee781058cd4d71e4449f41cbe6a3b8c59daa2c51
- >= 10f461d79c2d1afb22344986cc1b4631169cf25e, < ecf67f1302f2080b4d241b973364aacda70ad740
- >= 10f461d79c2d1afb22344986cc1b4631169cf25e, < d3abaedf6a58469610136d2dace1a85cddf7afcf
- >= 10f461d79c2d1afb22344986cc1b4631169cf25e, < 2a591bf6fd41fd14bdae689aafac4a9ee702c23c
- >= 10f461d79c2d1afb22344986cc1b4631169cf25e, < 390aa4c9339bb0ec0bc8d554e830faf93ca9d49e
Fixed in 1dc25a3e06364f48c4ef06016852f8b82425151a, ee781058cd4d71e4449f41cbe6a3b8c59daa2c51, ecf67f1302f2080b4d241b973364aacda70ad740, d3abaedf6a58469610136d2dace1a85cddf7afcf, 2a591bf6fd41fd14bdae689aafac4a9ee702c23c, 390aa4c9339bb0ec0bc8d554e830faf93ca9d49e
- 5.18
Fixed in 0, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 1dc25a3e06364f48c4ef06016852f8b82425151a or ee781058cd4d71e4449f41cbe6a3b8c59daa2c51 or ecf67f1302f2080b4d241b973364aacda70ad740 or d3abaedf6a58469610136d2dace1a85cddf7afcf or 2a591bf6fd41fd14bdae689aafac4a9ee702c23c or 390aa4c9339bb0ec0bc8d554e830faf93ca9d49e or later.
Upgrade Linux to 0 or 6.1.178 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.