VDB

CVE-2023-52517

CVE-2023-52517 PUBLISHED CVSS 7 HIGH

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.

EPSS 0.01% · 2.5th percentile

Risk Scores

CVSS v3.1
7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.01%
2.5th percentile

Affected Products

VendorProductVersions
linuxlinux_kernel5.11, 5.11, 5.11
LinuxLinux345980a3a5e5e1c99fc621e2ce878fb150ad2287, 345980a3a5e5e1c99fc621e2ce878fb150ad2287, 345980a3a5e5e1c99fc621e2ce878fb150ad2287

Timeline

  • Jan 21, 1970 Security Advisory
  • Mar 2, 2024 CVE Published
  • Mar 3, 2024 EPSS Score
  • Mar 29, 2024 EPSS Score
  • Apr 25, 2024 EPSS Score
  • May 21, 2024 EPSS Score
  • Jun 17, 2024 EPSS Score
  • Jul 13, 2024 EPSS Score
  • Aug 8, 2024 EPSS Score
  • Sep 4, 2024 EPSS Score
  • Sep 30, 2024 EPSS Score
  • Oct 5, 2024 Coalition ESS Score

References

…and 10 more

Open in Interactive Console →
$ Console Community · 100/wk Open console ›