spi: ep93xx: fix error pointer deref after DMA setup failure
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: ep93xx: 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 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 ep93xx SPI driver can retain invalid DMA channel pointers when DMA setup fails during probe. A later probe error or driver unbind can dereference an error pointer. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the ep93xx SPI driver should check their versions; affected versions were not provided.