dmaengine: qcom-adm: fix wrong sizeof config in slave_config
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.19.176.0.36.1In the Linux kernel, the following vulnerability has been resolved:
dmaengine: qcom-adm: fix wrong sizeof config in slave_config
Fix broken slave_config function that uncorrectly compare the peripheral_size with the size of the config pointer instead of the size of the config struct. This cause the crci value to be ignored and cause a kernel panic on any slave that use adm driver.
To fix this, compare to the size of the struct and NOT the size of the pointer.
From the CVE record · Linux
The Linux kernel's qcom-adm slave_config function compares the peripheral configuration size against the size of a pointer rather than the configuration struct. This can cause it to ignore the crci value and panic on a slave using the ADM driver; the input does not specify attacker access or interaction requirements.
Engineers running Linux kernels with the qcom-adm driver should check their systems; affected versions are not specified.