soundwire: cadence: fix invalid PDI offset
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 4e99103f757cdf636c6ee860994a19a346a11785| No fix yet |
| Linux Linux | — |
|
In the Linux kernel, the following vulnerability has been resolved:
soundwire: cadence: fix invalid PDI offset
For some reason, we add an offset to the PDI, presumably to skip the PDI0 and PDI1 which are reserved for BPT.
This code is however completely wrong and leads to an out-of-bounds access. We were just lucky so far since we used only a couple of PDIs and remained within the PDI array bounds.
A Fixes: tag is not provided since there are no known platforms where the out-of-bounds would be accessed, and the initial code had problems as well.
A follow-up patch completely removes this useless offset.
From the CVE record · Linux
The Linux kernel’s SoundWire Cadence code applies an invalid PDI offset that can cause an out-of-bounds access. No affected platform is known, and the input does not establish how an attacker could trigger it or whether access or user interaction would be required.
Engineers running Linux kernels with the SoundWire Cadence component should check their kernel versions against the vendor advisory; affected versions are not specified.