spi: qup: fix error pointer deref after DMA setup failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 612762e82ae6058d69b4ce734598491bf030afe7 · < 4bb4764f2c51f03f657a28029eb0595d8223aab5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: qup: fix error pointer deref after DMA setup failure
The driver falls back to PIO mode if DMA setup fails during probe.
Make sure to the clear the DMA channel pointers on setup failure to avoid dereferencing an error pointer (or attempting to release a channel a second time) on later probe errors or driver unbind.
This issue was flagged by Sashiko when reviewing a devres allocation conversion patch.
From the CVE record · Linux
The Linux kernel SPI QUP driver can retain invalid DMA channel pointers if DMA setup fails during probe. On a later probe error or driver unbind, it may dereference an error pointer or attempt to release a channel twice. The input does not establish an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the SPI QUP driver should check their kernel vendor's advisory for affected versions.