7.8
HIGH CVSS 3.1
CVE-2025-39871
dmaengine: idxd: Remove improper idxd_free
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.

INFO

Published Date :

Sept. 23, 2025, 6:15 a.m.

Last Modified :

Nov. 10, 2026, 1:17 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-39871 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
Remove improper device freeing in idxd driver to prevent reference count underflow and memory corruption.
  • Remove the improper idxd_free() call.
  • Ensure device unregistration handles reference counts correctly.
  • Address potential use-after-free during module unload.
  • Update the Linux kernel to the latest version.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-39871 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-39871 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-39871 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-39871 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Nov. 10, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/39xxx/CVE-2025-39871.json">CVE-2025-39871</a>
  • CVE Translated by [email protected]

    Oct. 19, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: dmaengine: idxd: Eliminar idxd_free incorrecto La llamada a idxd_free() introduce un put_device() duplicado que conduce a un underflow del contador de referencias: refcount_t: underflow; uso después de liberación. WARNING: CPU: 15 PID: 4428 at lib/refcount.c:28 refcount_warn_saturate+0xbe/0x110 ... Rastro de Llamada: <TAREA> 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 La función idxd_unregister_devices(), que se invoca al principio de idxd_remove(), ya se encarga del put_device() necesario a través de la siguiente ruta de llamada: idxd_unregister_devices() -> device_unregister() -> put_device() Además, cuando CONFIG_DEBUG_KOBJECT_RELEASE está habilitado, put_device() puede activar una limpieza asíncrona a través de schedule_delayed_work(). Si se llama a idxd_free() inmediatamente después, puede resultar en un uso después de liberación. Eliminar el idxd_free() incorrecto para evitar tanto el underflow del contador de referencias como la posible corrupción de memoria durante la descarga del módulo.
  • CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/39xxx/CVE-2025-39871.json">CVE-2025-39871</a>
    Added Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html
    Added Reference https://cert-portal.siemens.com/productcert/html/ssa-457936.html
    Removed Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/0e95ee7f532b21206fe3f1c4054002b0d21e3b9c
    Added Reference https://git.kernel.org/stable/c/24414bbcb37e1af95190af36c21ae51d497e1a9e
    Added Reference https://git.kernel.org/stable/c/da4fbc1488a4cec6748da685181ee4449a878dac
    Added Reference https://git.kernel.org/stable/c/dd7a7e43269711d757fc260b0bbdf7138f75de11
    Added Reference https://git.kernel.org/stable/c/f41c538881eec4dcf5961a242097d447f848cda6
    Removed Reference https://git.kernel.org/stable/c/0e95ee7f532b21206fe3f1c4054002b0d21e3b9c
    Removed Reference https://git.kernel.org/stable/c/24414bbcb37e1af95190af36c21ae51d497e1a9e
    Removed Reference https://git.kernel.org/stable/c/da4fbc1488a4cec6748da685181ee4449a878dac
    Removed Reference https://git.kernel.org/stable/c/dd7a7e43269711d757fc260b0bbdf7138f75de11
    Removed Reference https://git.kernel.org/stable/c/f41c538881eec4dcf5961a242097d447f848cda6
    Removed Reference Type https://git.kernel.org/stable/c/0e95ee7f532b21206fe3f1c4054002b0d21e3b9c Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/da4fbc1488a4cec6748da685181ee4449a878dac Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/dd7a7e43269711d757fc260b0bbdf7138f75de11 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/f41c538881eec4dcf5961a242097d447f848cda6 Types: Patch
  • CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Jul. 14, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}, {'vendor': 'Siemens', 'product': 'SIPLUS S7-1500 CPU 1518-4 PN/DP MFP', 'versions': [{'status': 'affected', 'version': 'V3.1.6', 'lessThan': '*', 'versionType': 'custom'}], 'defaultStatus': 'unknown'}]
    Added Reference https://cert-portal.siemens.com/productcert/html/ssa-019113.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '68ac5a01f635b3791196fd1c39bc48497252c36f', 'lessThan': '24414bbcb37e1af95190af36c21ae51d497e1a9e', 'versionType': 'git'}, {'status': 'affected', 'version': 'd2d05fd0fc95c4defed6f7b87550e20e8baa1d97', 'lessThan': '0e95ee7f532b21206fe3f1c4054002b0d21e3b9c', 'versionType': 'git'}, {'status': 'affected', 'version': '21f9f5cd9a0c75084d4369ba0b8c4f695c41dea7', 'lessThan': 'dd7a7e43269711d757fc260b0bbdf7138f75de11', 'versionType': 'git'}, {'status': 'affected', 'version': 'd5449ff1b04dfe9ed8e455769aa01e4c2ccf6805', 'lessThan': 'da4fbc1488a4cec6748da685181ee4449a878dac', 'versionType': 'git'}, {'status': 'affected', 'version': 'd5449ff1b04dfe9ed8e455769aa01e4c2ccf6805', 'lessThan': 'f41c538881eec4dcf5961a242097d447f848cda6', 'versionType': 'git'}, {'status': 'affected', 'version': '2b7a961cea0e5b65afda911f76d14fec5c98d024', 'versionType': 'git'}, {'status': 'affected', 'version': '6.1.140', 'lessThan': '6.1.160', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.6.92', 'lessThan': '6.6.107', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.12.30', 'lessThan': '6.12.48', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.14.8', 'lessThan': '6.15', 'versionType': 'semver'}], 'programFiles': ['drivers/dma/idxd/init.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.15'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.15', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.160', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.107', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.48', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.16.8', 'versionType': 'semver', 'lessThanOrEqual': '6.16.*'}, {'status': 'unaffected', 'version': '6.17', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/dma/idxd/init.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jan. 11, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/24414bbcb37e1af95190af36c21ae51d497e1a9e
  • Initial Analysis by [email protected]

    Dec. 12, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.15:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1.140 up to (excluding) 6.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.12.30 up to (excluding) 6.12.48 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.14.8 up to (excluding) 6.15 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.15.1 up to (excluding) 6.16.8 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6.92 up to (excluding) 6.6.107
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/0e95ee7f532b21206fe3f1c4054002b0d21e3b9c Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/da4fbc1488a4cec6748da685181ee4449a878dac Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/dd7a7e43269711d757fc260b0bbdf7138f75de11 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/f41c538881eec4dcf5961a242097d447f848cda6 Types: Patch
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Sep. 23, 2025

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/0e95ee7f532b21206fe3f1c4054002b0d21e3b9c
    Added Reference https://git.kernel.org/stable/c/da4fbc1488a4cec6748da685181ee4449a878dac
    Added Reference https://git.kernel.org/stable/c/dd7a7e43269711d757fc260b0bbdf7138f75de11
    Added Reference https://git.kernel.org/stable/c/f41c538881eec4dcf5961a242097d447f848cda6
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.