CVE-2023-52517
Last modified
CVE-2023-52517 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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. EPSS estimates a 0.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 5.15.134 |
| Linux | Linux Kernel | >= 5.16, < 6.1.56 |
| Linux | Linux Kernel | >= 6.2, < 6.5.6 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-52517?
How severe is CVE-2023-52517?
How do I fix CVE-2023-52517?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-52511In the Linux kernel, the following vulnerability has been re…5.3
- CVE-2023-52512In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52513In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52514Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2023-52515In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-52516In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52518In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52519In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2023-5252The FareHarbor plugin for WordPress is vulnerable to Stored …5.4
- CVE-2023-52520In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52521Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2023-52522In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2023-52517?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
