CVE-2024-40991
Linux Debian vulnerability analysis and mitigation

Overview

In the Linux kernel, a vulnerability was discovered in the DMA engine subsystem, specifically in the TI K3 UDMA glue code. The issue involves the ofk3udmaglueparsechnbyid() helper function incorrectly invoking 'ofnodeput()' on the 'udmaxnp' device-node without first incrementing its reference count. This vulnerability was assigned CVE-2024-40991 and was disclosed on July 12, 2024 (NVD).

Technical details

The vulnerability exists in the drivers/dma/ti/k3-udma-glue.c file where the ofk3udmaglueparsechnbyid() function erroneously releases a device node reference that it never acquired. The bug was introduced in commit 81a1f90f20af ('dmaengine: ti: k3-udma-glue: Add function to parse channel by ID'). The fix removes the incorrect ofnode_put() call and simplifies the error handling path (Kernel Commit).

Impact

The improper reference counting could lead to undefined behavior in the kernel's device tree handling. In rare cases, if no NULL-terminator is found in memory, the system might crash because the string iterator could overrun and lead to access of unmapped memory above the stack (NVD).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through a patch that removes the incorrect ofnodeput() call. Users should update to a kernel version containing the fix. The patch has been merged into the stable kernel tree (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025

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

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