# CVE-2025-38015: dmaengine: idxd: fix memory leak in error handling path of idxd_alloc

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-06-18T09:28:24.235Z
- Modified: 2026-11-05T21:18:04.067Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a8563a33a5e26064061f2fb34215c97f0e2995f4 before 64afd9a1f644b27661420257dcc007d5009c99dd; from a8563a33a5e26064061f2fb34215c97f0e2995f4 before 6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0; from a8563a33a5e26064061f2fb34215c97f0e2995f4 before 868dbce755ec92855362d213f47e045a8388361a; from a8563a33a5e26064061f2fb34215c97f0e2995f4 before 4f005eb68890698e5abc6a3af04dab76f175c50c; from a8563a33a5e26064061f2fb34215c97f0e2995f4 before 46a5cca76c76c86063000a12936f8e7875295838; 9526f051bedde01baa50081afe143a8bc5b8e6be; from 6.0.9 before 6.1; 6.1 (not affected: before 6.1; from 6.1.140 up to 6.1.*; from 6.6.92 up to 6.6.*; from 6.12.30 up to 6.12.*; from 6.14.8 up to 6.14.*; from 6.15 up to *)
- linux 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
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/64afd9a1f644b27661420257dcc007d5009c99dd> (patch)
- <https://git.kernel.org/stable/c/6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0> (patch)
- <https://git.kernel.org/stable/c/868dbce755ec92855362d213f47e045a8388361a> (patch)
- <https://git.kernel.org/stable/c/4f005eb68890698e5abc6a3af04dab76f175c50c> (patch)
- <https://git.kernel.org/stable/c/46a5cca76c76c86063000a12936f8e7875295838> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38015](https://www.cve.org/CVERecord?id=CVE-2025-38015), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38015](https://nvd.nist.gov/vuln/detail/CVE-2025-38015), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38015 · Whole record: https://cve.day/CVE-2025-38015.json · Rebuilt by cve.day 2026-11-25T22:58:59.338Z
