What’s Vulnerable › Vulnerabilities
CVE-2025-38015: dmaengine: idxd: fix memory leak in error handling path of idxd_alloc
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd: fix memory leak in error handling path of idxd_alloc Memory allocated for idxd is not freed if an error occurs during idxd_alloc(). To fix it, free the allocated memory in the reverse order of allocation before exiting the function in case of an error.
Affected products
- Debian Linux: 11.0
- Linux kernel: from 6.0.9 before 6.1.140; from 6.2 before 6.6.92; from 6.7 before 6.12.30; from 6.13 before 6.14.8; 6.15-rc1, 6.15-rc2, 6.15-rc3, 6.15-rc4, 6.15-rc5, 6.15-rc6 — fixed in 6.1.140, 6.12.30, 6.14.8, 6.6.92
How to fix
Upgrade to a fixed version: Linux kernel 6.1.140, 6.12.30, 6.14.8, 6.6.92. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/46a5cca76c76c86063000a12936f8e7875295838
- https://git.kernel.org/stable/c/4f005eb68890698e5abc6a3af04dab76f175c50c
- https://git.kernel.org/stable/c/64afd9a1f644b27661420257dcc007d5009c99dd
- https://git.kernel.org/stable/c/6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0
- https://git.kernel.org/stable/c/868dbce755ec92855362d213f47e045a8388361a
- https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html
Get alerted when CVE-2025-38015 or the next vulnerability affects your stack