CVE-2025-39870
HighIn 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.
CVSS 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-415CVE-2025-39870 is classified as CWE-415
See CWE-415 on MITRE CWE for full details on this weakness type.
Affected versions
Linux kernel versions
6.1.140,
6.6.92,
6.12.30,
6.14.8,
6.15
and later are affected. Fixed in
6.1.153,
6.6.107,
6.12.48,
6.16.8,
6.17
and their respective stable series.
References
The following references provide additional information about CVE-2025-39870 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
Mailing List Third Party Advisory
-
PatchKernel patch commithttps://git.kernel.org/stable/c/25e6146c2812487a88f619d5ff6efbdcd5b2bc31
-
PatchKernel patch commithttps://git.kernel.org/stable/c/39aaa337449e71a41d4813be0226a722827ba606
-
PatchKernel patch commithttps://git.kernel.org/stable/c/9f0e225635475b2285b966271d5e82cba74295b1
Frequently asked questions
-
What is CVE-2025-39870?
CVE-2025-39870 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 . It affects Linux kernel versions from 6.1.140 onward and has been patched in 6.1.153, 6.6.107, 6.12.48 and others. CVE-2025-39870 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-39870?
CVE-2025-39870 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2025-39870?
Yes — CVE-2025-39870 has been patched. Fixed versions include 6.1.153, 6.6.107, 6.12.48 and others. If you are running Linux kernel 6.1.140 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-39870 actively exploited?
No — CVE-2025-39870 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.