dmaengine: idxd: fix memory leak in error handling path of idxd_alloc (Linux Linux)

CVE-2025-38015
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.20 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected a8563a33a5e26064061f2fb34215c97f0e2995f4 < 64afd9a1f644b27661420257dcc007d5009c99dd ; affected a8563a33a5e26064061f2fb34215c97f0e2995f4 < 6e94a2c3e4c166cd2736ac225fba5889fb1e8ac0 ; affected a8563a33a5e26064061f2fb34215c97f0e2995f4 < 868dbce755ec92855362d213f47e045a8388361a ; affected a8563a33a5e26064061f2fb34215c97f0e2995f4 < 4f005eb68890698e5abc6a3af04dab76f175c50c ; affected a8563a33a5e26064061f2fb34215c97f0e2995f4 < 46a5cca76c76c86063000a12936f8e7875295838 ; affected 9526f051bedde01baa50081afe143a8bc5b8e6be
Linux · Linuxaffected 6.1 ; unaffected 0 < 6.1 ; unaffected 6.1.140 ≤ 6.1.* ; unaffected 6.6.92 ≤ 6.6.* ; unaffected 6.12.30 ≤ 6.12.* ; unaffected 6.14.8 ≤ 6.14.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD