ASoC: SOF: Don't allow pointer operations on unconfigured streams
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c1a731c71359407eae4fd0a5fd675ef25a582764 · < c5b6285aae050ff1c3ea824ca3d88ac4be1e69c8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: SOF: Don't allow pointer operations on unconfigured streams
When reporting the pointer for a compressed stream we report the current I/O frame position by dividing the position by the number of channels multiplied by the number of container bytes. These values default to 0 and are only configured as part of setting the stream parameters so this allows a divide by zero to be configured. Validate that they are non zero, returning an error if not
From the CVE record · Linux
The Linux kernel’s ASoC SOF code can divide by zero when reporting the pointer for a compressed stream whose channel count or container size has not been configured. The input does not specify an attacker scenario, required access, or user interaction.
Engineers running Linux kernels with ASoC SOF compressed-stream support should check their kernel versions against the vendor advisory; affected versions are not specified.