7.8

CVE-2023-52517: spi: sun6i: fix race between DMA RX transfer completion and RX FIFO drain

Modified
AliasesUBUNTU-CVE-2023-52517DEBIAN-CVE-2023-52517
Published 02-03-2024Last modified 05-08-2026

Vulnerability summary

CVE-2023-52517 is a high (CVSS 7.8) vulnerability in linux. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.18%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 5

Timeline

  1. 02-03-2024
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.18%

Chance of exploitation in the next 30 days

Percentile

8%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.18% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu102 products
  • linux< 5.15.0-94.104
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 5.15.0-1053.58
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 345980a3a5e5e1c99fc621e2ce878fb150ad2287, < bd1ec7f9983b5cd3c77e0f7cda3fa8aed041af2f | ≥ 345980a3a5e5e1c99fc621e2ce878fb150ad2287, < 36b29974a7ad2ff604c24ad348f940506c7b1209 | ≥ 345980a3a5e5e1c99fc621e2ce878fb150ad2287, < 4e149d524678431638ff378ef6025e4e89b71097 | ≥ 345980a3a5e5e1c99fc621e2ce878fb150ad2287, < 1f11f4202caf5710204d334fe63392052783876d | 5.11
  • linux_kernel< 5.15.134 | ≥ 5.16, < 6.1.56 | ≥ 6.2, < 6.5.6
Debian1 product
  • linux< 6.1.64-1 | < 6.5.6-1

3 vendors · 105 products

References

8 links