
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-52785 is a vulnerability discovered in the Linux kernel's Universal Flash Storage (UFS) subsystem. The issue specifically affects the UFS Multi-Circular Queue (MCQ) implementation, where a race condition exists between the ufshcd_mcq_abort() function and the Interrupt Service Routine (ISR) (Kernel Git).
The vulnerability stems from a racing issue where if a command timeout occurs simultaneously with a Command Queue (CQ) complete IRQ being raised, the ufshcd_mcq_abort function clears the lprb->cmd pointer, potentially leading to a NULL pointer dereference in the ISR. This issue was introduced with the commit that added the ufshcd_mcq_abort() functionality (Kernel Git).
When exploited, this vulnerability can cause a NULL pointer dereference at virtual address 0x108, potentially leading to kernel crashes and system instability. The issue specifically manifests in the scsi_dma_unmap function during the command abort process (Kernel Git).
The vulnerability requires specific timing conditions to be met, specifically during the interaction between command timeout events and interrupt handling in the UFS subsystem. The issue is triggered during normal system operations when using UFS storage devices with MCQ enabled (Kernel Git).
A fix has been implemented that adds proper synchronization using spin locks around the critical section in the ufshcd_mcq_abort() function. The patch ensures atomic access to shared resources between the abort function and ISR, preventing the race condition (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."