CVE-2025-39870 - CVE House
Back to Database
Status published Unknown CVE-2025-39870

dmaengine: idxd: Fix double free in idxd_setup_wqs()

Vulnerability Description

In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Fix double free in idxd_setup_wqs() The clean up in idxd_setup_wqs() has had a couple bugs because the error handling is a bit subtle. It's simpler to just re-write it in a cleaner way. The issues here are: 1) If "idxd->max_wqs" is <= 0 then we call put_device(conf_dev) when "conf_dev" hasn't been initialized. 2) If kzalloc_node() fails then again "conf_dev" is invalid. It's either uninitialized or it points to the "conf_dev" from the previous iteration so it leads to a double free. It's better to free partial loop iterations within the loop and then the unwinding at the end can handle whole loop iterations. I also renamed the labels to describe what the goto does and not where the goto was located.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2025-39870

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
d584acdf54f409cb7eae1359ae6c12aaabedeed8, 47846211998a9ffb0fcc08092eb95ac783d2b11a, 5fcd392dae6d6aba7dc64ffdbb838ff191315da3, 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, ed2c66000aa64c0d2621864831f0d04c820a1441, 6.1.140, 6.6.92, 6.12.30, 6.14.8, 6.15, 0, 6.1.153, 6.6.107, 6.12.48, 6.16.8, 6.17

Timeline

Official Publish: September 23rd, 2025
Last Modified: May 23rd, 2026
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.