---
id: CVE-2025-38015
title: 'dmaengine: idxd: fix memory leak in error handling path of idxd_alloc'
summary: |-
  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 th…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 <
    64afd9a1f644b27661420257dcc007d5009c99dd
  - >-
    Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 <
    6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0
  - >-
    Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 <
    868dbce755ec92855362d213f47e045a8388361a
  - >-
    Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 <
    4f005eb68890698e5abc6a3af04dab76f175c50c
  - >-
    Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 <
    46a5cca76c76c86063000a12936f8e7875295838
  - Linux 9526f051bedde01baa50081afe143a8bc5b8e6be
  - Linux >= 6.0.9 < 6.1
  - Linux 6.1
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:48:10.331219Z'
published: '2025-06-18'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:52:12.376Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-38015'
references:
  - url: 'https://git.kernel.org/stable/c/64afd9a1f644b27661420257dcc007d5009c99dd'
  - url: 'https://git.kernel.org/stable/c/6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0'
  - url: 'https://git.kernel.org/stable/c/868dbce755ec92855362d213f47e045a8388361a'
  - url: 'https://git.kernel.org/stable/c/4f005eb68890698e5abc6a3af04dab76f175c50c'
  - url: 'https://git.kernel.org/stable/c/46a5cca76c76c86063000a12936f8e7875295838'
tags:
  - cve.org
epss: 0.00197
epssPercentile: 0.09454
ingestedAt: '2026-11-05T22:38:31.920Z'
---

## Overview

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

- `Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 < 64afd9a1f644b27661420257dcc007d5009c99dd`
- `Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 < 6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0`
- `Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 < 868dbce755ec92855362d213f47e045a8388361a`
- `Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 < 4f005eb68890698e5abc6a3af04dab76f175c50c`
- `Linux >= a8563a33a5e26064061f2fb34215c97f0e2995f4 < 46a5cca76c76c86063000a12936f8e7875295838`
- `Linux 9526f051bedde01baa50081afe143a8bc5b8e6be`
- `Linux >= 6.0.9 < 6.1`
- `Linux 6.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
