Linux · Linux Kernel · CVE-2024-40970
**Name of the Vulnerable Software and Affected Versions**
Linux kernel (affected versions not specified)
**Description**
The issue is related to the dw-axi-dmac component in the Linux kernel, where an error in resource management can cause a kernel panic due to an overrun of the hw desc array. This occurs when the number of allocated hw descs exceeds the expected amount, such as in a scenario where nr buffers = 3 and each descriptor is composed of 3 segments, resulting in 9 descs allocated. To address this, a proposal has been made to add a new member to the axi dma desc structure to track the number of allocated hw descs and use this information in axi desc put() to handle the hw desc array correctly. Additionally, removing the axi chan start first queued() call after completing the transfer has been suggested, as it can cause unbalance and interrupt started descriptors.
**Recommendations**
At the moment, there is no information about a newer version that contains a fix for this vulnerability.