CVE-2023-52511 spi: sun6i: reduce DMA RX transfer width to single byte
A bug in the Linux kernel's sun6i SPI driver causes data corruption during DMA transfers, potentially leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52511?
CVE-2023-52511 is a medium-severity denial of service vulnerability in Linux kernel, published on 2 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2023-52511?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52511?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-52511 being exploited?
There is no known exploitation of CVE-2023-52511 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52511, DEBIAN-CVE-2023-52511, GHSA-9prw-2r97-97f6, UBUNTU-CVE-2023-52511.