Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
10f461d79c2d1afb22344986cc1b4631169cf25e to < 1dc25a3e06364f48c4ef06016852f8b82425151aaffected10f461d79c2d1afb22344986cc1b4631169cf25e to < ee781058cd4d71e4449f41cbe6a3b8c59daa2c51affected10f461d79c2d1afb22344986cc1b4631169cf25e to < ecf67f1302f2080b4d241b973364aacda70ad740affected10f461d79c2d1afb22344986cc1b4631169cf25e to < d3abaedf6a58469610136d2dace1a85cddf7afcfaffected10f461d79c2d1afb22344986cc1b4631169cf25e to < 2a591bf6fd41fd14bdae689aafac4a9ee702c23caffected10f461d79c2d1afb22344986cc1b4631169cf25e to < 390aa4c9339bb0ec0bc8d554e830faf93ca9d49eaffected
Linux Linux
Default version status: affected
5.18affected0 to < 5.18unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/1dc25a3e06364f48c4ef06016852f8b82425151a ↗
- https://git.kernel.org/stable/c/ee781058cd4d71e4449f41cbe6a3b8c59daa2c51 ↗
- https://git.kernel.org/stable/c/ecf67f1302f2080b4d241b973364aacda70ad740 ↗
- https://git.kernel.org/stable/c/d3abaedf6a58469610136d2dace1a85cddf7afcf ↗
- https://git.kernel.org/stable/c/2a591bf6fd41fd14bdae689aafac4a9ee702c23c ↗
- https://git.kernel.org/stable/c/390aa4c9339bb0ec0bc8d554e830faf93ca9d49e ↗