ASoC: SOF: Add some bounds checking to firmware data
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: Add some bounds checking to firmware data
Smatch complains about "head->full_size - head->header_size" can underflow. To some extent, we're always going to have to trust the firmware a bit. However, it's easy enough to add a check for negatives, and let's add a upper bounds check as well.
From the CVE record · Linux
The Linux kernel’s ASoC SOF component lacks bounds checks on firmware size fields, allowing a size subtraction to underflow. This could be triggered by malformed firmware data; the input does not establish how an attacker could supply that data or whether authentication or user interaction is required.
Engineers running Linux kernels with ASoC SOF should check their versions; affected versions were not provided.