CVE-2022-49518CWE-125

CVE-2022-49518

High · published February 26, 2025

CVSS v3.1
7.1
EPSS
0%
Percentile
15.3
In the wild
Unconfirmed
What it is

In the Linux kernel, the following vulnerability has been resolved:

ASoC: SOF: ipc3-topology: Correct get_control_data for non bytes payload

It is possible to craft a topology where sof_get_control_data() would do

out of bounds access because it expects that it is only called when the

payload is bytes type.

Confusingly it also handles other types of controls, but the payload

parsing implementation is only valid for bytes.

Fix the code to count the non bytes controls and instead of storing a

pointer to sof_abi_hdr in sof_widget_data (which is only valid for bytes),

store the pointer to the data itself and add a new member to save the size

of the data.

In case of non bytes controls we store the pointer to the chanv itself,

which is just an array of values at the end.

In case of bytes control, drop the wrong cdata->data (wdata[i].pdata) check

against NULL since it is incorrect and invalid in this context.

The data is pointing to the end of cdata struct, so it should never be

null.

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00249 · 15.3th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2025-02-26T12:01Z
Affected products (1)
ProductVersionsFixed in
linux/linux_kernel≥ 5.18, < 5.18.35.18.3
References (2)
EPSS history
Timeline
  • 26 FEB 02:13Z
    ASoC: SOF: ipc3-topology: Correct get_control_data for non bytes payload
    cvelistv5