Kernel memory corruption via duplicate device release
Published Sep 23, 2025 · Updated Sep 23, 2025
Use-after-free in the Linux idxd dmaengine driver allows local users to corrupt kernel memory by unloading an affected kernel module. idxd_remove calls idxd_unregister_devices, whose device_unregister path already performs put_device, then calls idxd_free and releases the same device reference again. The trigger requires CAP_SYS_MODULE or root access to unbind the PCI device, and delayed cleanup under CONFIG_DEBUG_KOBJECT_RELEASE can turn the refcount underflow into kernel memory corruption.
Summary
What happened
Use-after-free in the Linux idxd dmaengine driver allows local users to corrupt kernel memory by unloading an affected kernel module. idxd_remove calls idxd_unregister_devices, whose device_unregister path already performs put_device, then calls idxd_free and releases the same device reference again. The trigger requires CAP_SYS_MODULE or root access to unbind the PCI device, and delayed cleanup under CONFIG_DEBUG_KOBJECT_RELEASE can turn the refcount underflow into kernel memory corruption.
The record
- CVE
- CVE-2025-39871
- Published
- Sep 23, 2025
- Updated
- Sep 23, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Sep 23, 2025CVE publishedPublication date reported by the CVE source.
- Sep 23, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=21f9f5cd9a0c75084d4369ba0b8c4f695c41dea7 <dd7a7e43269711d757fc260b0bbdf7138f75de11
- Affected versionversion=2b7a961cea0e5b65afda911f76d14fec5c98d024
- Affected versionversion=6.15
- Affected versionversion=68ac5a01f635b3791196fd1c39bc48497252c36f
- Affected versionversion=d2d05fd0fc95c4defed6f7b87550e20e8baa1d97 <0e95ee7f532b21206fe3f1c4054002b0d21e3b9c
- Affected versionversion=d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805 <da4fbc1488a4cec6748da685181ee4449a878dac
- Affected versionversion=d5449ff1b04dfe9ed8e455769aa01e4c2ccf6805 <f41c538881eec4dcf5961a242097d447f848cda6
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo