CVE-2025-39870
dmaengine: idxd: Fix double free in idxd_setup_wqs()
Reported by linux · Published September 23, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.16.8, 6.15, 6.12.48, 6.6.107, 6.1.153 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | d584acdf54f409cb7eae1359ae6c12aaabedeed8, 47846211998a9ffb0fcc08092eb95ac783d2b11a, 5fcd392dae6d6aba7dc64ffdbb838ff191315da3 |
| Linux | Linux | 6.15, 0, 6.1.153 |
| linux | linux_kernel | 6.1.140, 6.12.30, 6.15 |
| Linux | Linux | *, *, 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4 |
Timeline
- Sep 22, 2025 CVE Published
- Sep 23, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (15 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (68 in total, the first dated here)
- Mar 29, 2026 Security Advisory (79 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39870
vulnetix vdb fixes CVE-2025-39870
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39870/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart