Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39870

HIGH 7.8EPSS 10%

dmaengine: idxd: Fix double free in idxd_setup_wqs()

Mitigation

  • Upgrade Linux to 6.15 or later.

Who should check

  • Anyone running Linux >= d584acdf54f409cb7eae1359ae6c12aaabedeed8, < 25e6146c2812487a88f619d5ff6efbdcd5b2bc31; >= 47846211998a9ffb0fcc08092eb95ac783d2b11a, < df82c7901513fd0fc738052a8e6a330d92cc8ec9; >= 5fcd392dae6d6aba7dc64ffdbb838ff191315da3, < ec5430d090d0b6ace8fefa290fc37e88930017d2; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 9f0e225635475b2285b966271d5e82cba74295b1; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 39aaa337449e71a41d4813be0226a722827ba606; ed2c66000aa64c0d2621864831f0d04c820a1441; >= 6.1.140, < 6.1.153; >= 6.6.92, < 6.6.107; >= 6.12.30, < 6.12.48; >= 6.14.8, < 6.15
  • Anyone running Linux 6.15

Vulnerability facts

Affected
Linux >= d584acdf54f409cb7eae1359ae6c12aaabedeed8, < 25e6146c2812487a88f619d5ff6efbdcd5b2bc31; >= 47846211998a9ffb0fcc08092eb95ac783d2b11a, < df82c7901513fd0fc738052a8e6a330d92cc8ec9; >= 5fcd392dae6d6aba7dc64ffdbb838ff191315da3, < ec5430d090d0b6ace8fefa290fc37e88930017d2; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 9f0e225635475b2285b966271d5e82cba74295b1; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 39aaa337449e71a41d4813be0226a722827ba606; ed2c66000aa64c0d2621864831f0d04c820a1441; >= 6.1.140, < 6.1.153; >= 6.6.92, < 6.6.107; >= 6.12.30, < 6.12.48; >= 6.14.8, < 6.15; Linux 6.15
Fixed in
Linux 25e6146c2812487a88f619d5ff6efbdcd5b2bc31, Linux 9f0e225635475b2285b966271d5e82cba74295b1, Linux 39aaa337449e71a41d4813be0226a722827ba606, Linux 6.1.153, Linux 6.6.107, Linux 6.12.48, Linux 6.15
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
CWE
CWE-415
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= d584acdf54f409cb7eae1359ae6c12aaabedeed8, < 25e6146c2812487a88f619d5ff6efbdcd5b2bc31; >= 47846211998a9ffb0fcc08092eb95ac783d2b11a, < df82c7901513fd0fc738052a8e6a330d92cc8ec9; >= 5fcd392dae6d6aba7dc64ffdbb838ff191315da3, < ec5430d090d0b6ace8fefa290fc37e88930017d2; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 9f0e225635475b2285b966271d5e82cba74295b1; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 39aaa337449e71a41d4813be0226a722827ba606; ed2c66000aa64c0d2621864831f0d04c820a1441; >= 6.1.140, < 6.1.153; >= 6.6.92, < 6.6.107; >= 6.12.30, < 6.12.48; >= 6.14.8, < 6.15—cvelist
Linux6.15—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-39870. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39870.md
Affected: Linux >= d584acdf54f409cb7eae1359ae6c12aaabedeed8, < 25e6146c2812487a88f619d5ff6efbdcd5b2bc31; >= 47846211998a9ffb0fcc08092eb95ac783d2b11a, < df82c7901513fd0fc738052a8e6a330d92cc8ec9; >= 5fcd392dae6d6aba7dc64ffdbb838ff191315da3, < ec5430d090d0b6ace8fefa290fc37e88930017d2; >= 3fd2f4bc010cdfbc07dd210…
Fixed in: Linux 25e6146c2812487a88f619d5ff6efbdcd5b2bc31, Linux 9f0e225635475b2285b966271d5e82cba74295b1, Linux 39aaa337449e71a41d4813be0226a722827ba606, Linux 6.1.153, Linux 6.6.107, Linux 6.12.48, Linux 6.15

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-39870 being exploited?

There is no confirmed exploitation: CVE-2025-39870 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-39870?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-39870?

Linux >= d584acdf54f409cb7eae1359ae6c12aaabedeed8, < 25e6146c2812487a88f619d5ff6efbdcd5b2bc31; >= 47846211998a9ffb0fcc08092eb95ac783d2b11a, < df82c7901513fd0fc738052a8e6a330d92cc8ec9; >= 5fcd392dae6d6aba7dc64ffdbb838ff191315da3, < ec5430d090d0b6ace8fefa290fc37e88930017d2; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 9f0e225635475b2285b966271d5e82cba74295b1; >= 3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4, < 39aaa337449e71a41d4813be0226a722827ba606; ed2c66000aa64c0d2621864831f0d04c820a1441; >= 6.1.140, < 6.1.153; >= 6.6.92, < 6.6.107; >= 6.12.30, < 6.12.48; >= 6.14.8, < 6.15; Linux 6.15.

Is there a fix for CVE-2025-39870?

Yes. Fixed in Linux 25e6146c2812487a88f619d5ff6efbdcd5b2bc31, Linux 9f0e225635475b2285b966271d5e82cba74295b1, Linux 39aaa337449e71a41d4813be0226a722827ba606, Linux 6.1.153, Linux 6.6.107, Linux 6.12.48, Linux 6.15. Upgrade Linux to 6.15 or later.

How do I check if I'm affected by CVE-2025-39870?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors