CVE-2023-52517spi: sun6i: fix race between DMA RX transfer completion and RX FIFO drain
- 7.8HighCVSS base score
- 0.18%Exploitation in 30 daysEPSS · top 92% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: spi: sun6i: fix race between DMA RX transfer completion and RX FIFO drain Previously the transfer complete IRQ immediately drained to RX FIFO to read any data remaining in FIFO to the RX buffer. This behaviour is correct when dealing with SPI in interrupt mode. However in DMA mode the transfer complete interrupt still fires as soon as all bytes to be transferred have been stored in the FIFO. At that point data in the FIFO still needs to be picked up by the DMA engine. Thus the drain procedure and DMA engine end up racing to read from RX FIFO, corrupting any data read. Additionally the RX buffer pointer is never adjusted according to DMA progress in DMA mode, thus calling the RX FIFO drain procedure in DMA mode is a bug. Fix corruptions in DMA RX mode by draining RX FIFO only in interrupt mode. Also wait for completion of RX DMA when in DMA mode before returning to ensure all data has been copied to the supplied memory buffer.
Timeline
ID reserved
By Linux
- 11 days later
· 11 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.18% · top 92% of all CVEs (20 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected 345980a3a5e5e1c99fc621e2ce878fb150ad2287 – < bd1ec7f9983b5cd3c77e0f7cda3fa8aed041af2f
- affected 345980a3a5e5e1c99fc621e2ce878fb150ad2287 – < 36b29974a7ad2ff604c24ad348f940506c7b1209
- affected 345980a3a5e5e1c99fc621e2ce878fb150ad2287 – < 4e149d524678431638ff378ef6025e4e89b71097
- affected 345980a3a5e5e1c99fc621e2ce878fb150ad2287 – < 1f11f4202caf5710204d334fe63392052783876d
- affected 5.11
- unaffected < 5.11
- unaffected 5.15.134 – ≤ 5.15.*
- unaffected 6.1.56 – ≤ 6.1.*
- unaffected 6.5.6 – ≤ 6.5.*
- unaffected 6.6 – ≤ *
References
References4
- https://git.kernel.org/stable/c/bd1ec7f9983b5cd3c77e0f7cda3fa8aed041af2f (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/36b29974a7ad2ff604c24ad348f940506c7b1209 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/4e149d524678431638ff378ef6025e4e89b71097 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/1f11f4202caf5710204d334fe63392052783876d (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-57142 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-52517)Record last updated .