
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-40970 affects the Linux kernel's DW AXI DMA controller (dw-axi-dmac) driver. The vulnerability was discovered and reported by Joao Pinto, with the fix being committed on March 27, 2024. The issue occurs when nr_buffers = 3 and each descriptor is composed of 3 segments, resulting in the DMA channel descs_allocated being 9, which could lead to a kernel panic due to a hw_desc array overrun (Kernel Patch).
The vulnerability stems from incorrect handling of hardware descriptors in the axi_desc_put() function. The function was using the channel's descs_allocated count instead of the actual number of hardware descriptors allocated for the specific descriptor. This mismatch could cause an array overrun in the hw_desc array. The CVSS v3.1 base score for this vulnerability is 5.5 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).
When exploited, this vulnerability can result in a kernel panic, leading to a system crash and denial of service. The impact is limited to availability with no direct impact on confidentiality or integrity of the system (NVD).
The vulnerability requires local access with low privileges to exploit. No known exploits in the wild have been reported at the time of assessment (NVD).
The vulnerability has been patched in multiple Linux kernel versions. The fix involves adding a new member (nr_hw_descs) to the axi_dma_desc structure to track the number of allocated hardware descriptors and using this value in axi_desc_put() instead of the channel's descs_allocated count. Additionally, the patch removes the axi_chan_start_first_queued() call after completing transfers to prevent potential unbalanced states (Kernel Patch).
Fix availability across major Linux distributions and their releases.
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."