CVE-2025-39870: dmaengine: idxd: Fix double free in idxd_setup_wqs()

Published Sep 23, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

dmaengine: idxd: Fix double free in idxdsetupwqs()

The clean up in idxdsetupwqs() 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->maxwqs" is <= 0 then we call putdevice(confdev) when "confdev" hasn't been initialized. 2) If kzallocnode() fails then again "confdev" is invalid. It's either uninitialized or it points to the "confdev" 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.

Affected Software

19 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=6.1.140<6.1.153
Linux Linux kernel>=6.6.92<6.6.107
Linux Linux kernel>=6.12.30<6.12.48
Linux Linux kernel>=6.14.8<6.15
Linux Linux kernel>=6.15.1<6.16.8
Linux Linux kernel=6.15
Linux Linux kernel=6.15-rc7
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
Linux Linux kernel=6.17-rc4
Linux Linux kernel=6.17-rc5
Debian Debian Linux=11.0
linux/kernel>=6.1.140<6.1.153
6.1.153
linux/kernel>=6.6.92<6.6.107
6.6.107
linux/kernel>=6.12.30<6.12.48
6.12.48
linux/kernel>=6.14.8<6.15
6.15
linux/kernel>=6.15.0<6.16.8
6.16.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.153
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.107
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.48
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.15
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.16.8

Event History

Sep 23, 2025
CVE Published
via MITRE·06:00 AM
Data Sourced
via MITRE·06:00 AM
Description
Data Sourced
via OSV·06:00 AM
DescriptionAffected Software
Data Sourced
via NVD·06:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-39870?

CVE-2025-39870 has been classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-39870?

To fix CVE-2025-39870, ensure you update to the patched version of the Linux kernel that addresses this vulnerability.

3

What components are affected by CVE-2025-39870?

CVE-2025-39870 affects the dmaengine component of the Linux kernel.

4

What exploitability exists for CVE-2025-39870?

The exploitability of CVE-2025-39870 may depend on specific system configurations where the idxd driver is in use.

5

Is CVE-2025-39870 reversible once patched?

Yes, once patched, the vulnerability CVE-2025-39870 can be considered resolved and is no longer present in the updated kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203