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-39871

HIGH 7.8EPSS 9%

dmaengine: idxd: Remove improper idxd_free

Mitigation

  • Upgrade Linux to 6.15 or later.

Who should check

  • Anyone running Linux >= 68ac5a01f635b3791196fd1c39bc48497252c36f, < 24414bbcb37e1af95190af36c21ae51d497e1a9e; >= d2d05fd0fc95c4defed6f7b87550e20e8baa1d97, < 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c; >= 21f9f5cd9a0c75084d4369ba0b8c4f695c41dea7, < dd7a7e43269711d757fc260b0bbdf7138f75de11; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < da4fbc1488a4cec6748da685181ee4449a878dac; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < f41c538881eec4dcf5961a242097d447f848cda6; 2b7a961cea0e5b65afda911f76d14fec5c98d024; >= 6.1.140, < 6.1.160; >= 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 >= 68ac5a01f635b3791196fd1c39bc48497252c36f, < 24414bbcb37e1af95190af36c21ae51d497e1a9e; >= d2d05fd0fc95c4defed6f7b87550e20e8baa1d97, < 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c; >= 21f9f5cd9a0c75084d4369ba0b8c4f695c41dea7, < dd7a7e43269711d757fc260b0bbdf7138f75de11; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < da4fbc1488a4cec6748da685181ee4449a878dac; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < f41c538881eec4dcf5961a242097d447f848cda6; 2b7a961cea0e5b65afda911f76d14fec5c98d024; >= 6.1.140, < 6.1.160; >= 6.6.92, < 6.6.107; >= 6.12.30, < 6.12.48; >= 6.14.8, < 6.15; Linux 6.15
Fixed in
Linux 24414bbcb37e1af95190af36c21ae51d497e1a9e, Linux 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c, Linux 6.1.160, 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.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
CWE
CWE-416
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: Remove improper idxd_free The call to idxd_free() introduces a duplicate put_device() leading to a reference count underflow: refcount_t: underflow; use-after-free. WARNING: CPU: 15 PID: 4428 at lib/refcount.c:28 refcount_warn_saturate+0xbe/0x110 ... Call Trace: <TASK> idxd_remove+0xe4/0x120 [idxd] pci_device_remove+0x3f/0xb0 device_release_driver_internal+0x197/0x200 driver_detach+0x48/0x90 bus_remove_driver+0x74/0xf0 pci_unregister_driver+0x2e/0xb0 idxd_exit_module+0x34/0x7a0 [idxd] __do_sys_delete_module.constprop.0+0x183/0x280 do_syscall_64+0x54/0xd70 entry_SYSCALL_64_after_hwframe+0x76/0x7e The idxd_unregister_devices() which is invoked at the very beginning of idxd_remove(), already takes care of the necessary put_device() through the following call path: idxd_unregister_devices() -> device_unregister() -> put_device() In addition, when CONFIG_DEBUG_KOBJECT_RELEASE is enabled, put_device() may trigger asynchronous cleanup via schedule_delayed_work(). If idxd_free() is called immediately after, it can result in a use-after-free. Remove the improper idxd_free() to avoid both the refcount underflow and potential memory corruption during module unload.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 68ac5a01f635b3791196fd1c39bc48497252c36f, < 24414bbcb37e1af95190af36c21ae51d497e1a9e; >= d2d05fd0fc95c4defed6f7b87550e20e8baa1d97, < 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c; >= 21f9f5cd9a0c75084d4369ba0b8c4f695c41dea7, < dd7a7e43269711d757fc260b0bbdf7138f75de11; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < da4fbc1488a4cec6748da685181ee4449a878dac; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < f41c538881eec4dcf5961a242097d447f848cda6; 2b7a961cea0e5b65afda911f76d14fec5c98d024; >= 6.1.140, < 6.1.160; >= 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-39871. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39871.md
Affected: Linux >= 68ac5a01f635b3791196fd1c39bc48497252c36f, < 24414bbcb37e1af95190af36c21ae51d497e1a9e; >= d2d05fd0fc95c4defed6f7b87550e20e8baa1d97, < 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c; >= 21f9f5cd9a0c75084d4369ba0b8c4f695c41dea7, < dd7a7e43269711d757fc260b0bbdf7138f75de11; >= d5449ff1b04dfe9ed8e4557…
Fixed in: Linux 24414bbcb37e1af95190af36c21ae51d497e1a9e, Linux 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c, Linux 6.1.160, 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-39871 being exploited?

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

How serious is CVE-2025-39871?

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

Which versions are affected by CVE-2025-39871?

Linux >= 68ac5a01f635b3791196fd1c39bc48497252c36f, < 24414bbcb37e1af95190af36c21ae51d497e1a9e; >= d2d05fd0fc95c4defed6f7b87550e20e8baa1d97, < 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c; >= 21f9f5cd9a0c75084d4369ba0b8c4f695c41dea7, < dd7a7e43269711d757fc260b0bbdf7138f75de11; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < da4fbc1488a4cec6748da685181ee4449a878dac; >= d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805, < f41c538881eec4dcf5961a242097d447f848cda6; 2b7a961cea0e5b65afda911f76d14fec5c98d024; >= 6.1.140, < 6.1.160; >= 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-39871?

Yes. Fixed in Linux 24414bbcb37e1af95190af36c21ae51d497e1a9e, Linux 0e95ee7f532b21206fe3f1c4054002b0d21e3b9c, Linux 6.1.160, 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-39871?

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