CVE-2024-40970: 
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.99-1

Fixed

bullseye

linux-6.1: 6.1.119-1~deb11u1

Fixed

sid

linux: 6.9.7-1

Fixed

trixie

linux: 6.9.7-1

Fixed

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-99288HIGH7.5
  • Linux Kernel logoLinux Kernel
  • rtla
NoYesNov 10, 2026
CVE-2026-99285MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • bpftool
NoYesNov 10, 2026
CVE-2026-99284MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • python-perf
NoYesNov 07, 2026
CVE-2026-0004HIGHN/A
  • Linux Kernel logoLinux Kernel
  • kernel-uek64k-modules-wireless
NoYesNov 09, 2026
CVE-2024-21963HIGHN/A
  • Linux Kernel logoLinux Kernel
  • kernel-uek-debug-modules-deprecated
NoYesNov 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management