CVE-2025-39870
Linux Kernel vulnerability analysis and mitigation

Overview

A double free vulnerability was discovered in the Linux kernel's DMA engine, specifically in the idxd_setup_wqs() function (CVE-2025-39870). The vulnerability was disclosed on September 23, 2025, affecting various Linux kernel versions. The issue stems from improper cleanup handling in the idxd_setup_wqs() function, which could lead to a double free condition (NVD).

Technical details

The vulnerability occurs due to two specific scenarios in the idxd_setup_wqs() function: 1) When idxd->max_wqs is less than or equal to 0, it calls put_device(conf_dev) when conf_dev hasn't been initialized, and 2) When kzalloc_node() fails, conf_dev becomes invalid, either being uninitialized or pointing to conf_dev from a previous iteration, leading to a double free condition. The issue was present in the DMA engine's IDXD (Intel Data Accelerator) driver (Debian Security).

Impact

The vulnerability affects multiple Linux distributions including Debian Bookworm (6.1.148-1), Trixie (6.12.43-1), and other versions. While the older release Debian Bullseye (5.10.223-1) was not affected as the vulnerable code was not present (Debian Security).

Mitigation and workarounds

Fixed versions have been released for affected distributions: Debian Bookworm has been updated to 6.1.153-1, Trixie to 6.12.48-1, and Forky/Sid to 6.16.8-1 and 6.16.9-1 respectively. The fix involves rewriting the cleanup handling in idxd_setup_wqs() to properly manage partial loop iterations within the loop and handle whole loop iterations during unwinding (Debian Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-doc
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-abi-stablelists
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules
NoYesJan 14, 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

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