Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 10f461d79c2d1afb22344986cc1b4631169cf25e before 1dc25a3e06364f48c4ef06016852f8b82425151a; affected 10f461d79c2d1afb22344986cc1b4631169cf25e before ee781058cd4d71e4449f41cbe6a3b8c59daa2c51; affected 10f461d79c2d1afb22344986cc1b4631169cf25e before ecf67f1302f2080b4d241b973364aacda70ad740; affected 10f461d79c2d1afb22344986cc1b4631169cf25e before d3abaedf6a58469610136d2dace1a85cddf7afcf; affected 10f461d79c2d1afb22344986cc1b4631169cf25e before 2a591bf6fd41fd14bdae689aafac4a9ee702c23c; affected 10f461d79c2d1afb22344986cc1b4631169cf25e before 390aa4c9339bb0ec0bc8d554e830faf93ca9d49e |
| Linux / Linux | affected 5.18; unaffected 0 before 5.18; unaffected 6.1.178 through 6.1.*; unaffected 6.6.145 through 6.6.*; unaffected 6.12.97 through 6.12.*; unaffected 6.18.40 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
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
ADP enrichment
No English description supplied.
No references supplied.