spi: sun6i: reduce DMA RX transfer width to single byte
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: sun6i: reduce DMA RX transfer width to single byte
Through empirical testing it has been determined that sometimes RX SPI transfers with DMA enabled return corrupted data. This is down to single or even multiple bytes lost during DMA transfer from SPI peripheral to memory. It seems the RX FIFO within the SPI peripheral can become confused when performing bus read accesses wider than a single byte to it during an active SPI transfer.
This patch reduces the width of individual DMA read accesses to the RX FIFO to a single byte to mitigate that issue.
From the CVE record · Linux
The Linux kernel’s sun6i SPI driver can return corrupted data during RX transfers with DMA enabled because bytes may be lost when the RX FIFO is read in widths greater than one byte. The input does not describe an attacker or specify access or user-interaction requirements.
Engineers running Linux kernels that use the sun6i SPI driver with DMA-enabled RX transfers should check their systems; affected versions are not specified.