dmaengine: idxd: fix memory leak in error handling path of idxd_alloc
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.140, 6.12.30, 6.14.8, 6.6.92
- CVEs
- CVE-2025-38015
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 00:46 UTC · Revision 1
Source evidence
dmaengine: idxd: fix memory leak in error handling path of idxd_alloc
core-osv · Original sourcePublished 18 Jun 2025, 09:28 UTC
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.
osv:CVE-2025-38015
Kernel
Fixed versions: 6.1.140, 6.6.92, 6.12.30, 6.14.8
Complete source record
{
"id": "4c82af46b98323a74eecf2b953dd792c3b480b50706a87eb28c095b4e6d4516f",
"url": "https://osv.dev/vulnerability/CVE-2025-38015",
"method": "structured",
"payload": {
"kind": "advisory",
"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 the allocated memory in the reverse order of allocation before exiting the function in case of an error.",
"evidence": "osv:CVE-2025-38015",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.140",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.92",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.30",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.8",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-38015",
"aliases": [
"CVE-2025-38015"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "a8563a33a5e26064061f2fb34215c97f0e2995f4"
},
{
"fixed": "64afd9a1f644b27661420257dcc007d5009c99dd"
},
{
"fixed": "6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0"
},
{
"fixed": "868dbce755ec92855362d213f47e045a8388361a"
},
{
"fixed": "4f005eb68890698e5abc6a3af04dab76f175c50c"
},
{
"fixed": "46a5cca76c76c86063000a12936f8e7875295838"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.0.9"
},
{
"fixed": "6.1"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "9526f051bedde01baa50081afe143a8bc5b8e6be"
}
]
}
],
"versions": [
"v6.0.19",
"v6.0.18",
"v6.0.17",
"v6.0.16",
"v6.0.15",
"v6.0.14",
"v6.0.13",
"v6.0.12",
"v6.0.11",
"v6.0.10",
"v6.0.9"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38015.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.1.0"
},
{
"fixed": "6.1.140"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.92"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.30"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.14.8"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38015.json"
}
}
],
"modified": "2026-10-28T02:30:52.335604559Z",
"provider": "osv",
"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",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38015.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38015",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38015.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38015",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 521080,
"published_at": "2025-06-18T09:28:24.235+00:00"
}