Home

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr() If the number of pages from the userptr BO differs from the SG BO then the allocated memory for the SG table doesn't get freed before returning -EINVAL, which may lead to a memory leak in some error paths. Fix this by checking the number of pages before allocating memory for the SG table.

PUBLISHED Reserved 2025-12-08 | Published 2025-12-08 | Updated 2025-12-08 | Assigner Linux

Product status

Default status
unaffected

264fb4d332f5e76743818480e482464437837c52 (git) before 304a10161696d86300ceab1cbe72b2d74b8cdd94
affected

264fb4d332f5e76743818480e482464437837c52 (git) before c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58
affected

264fb4d332f5e76743818480e482464437837c52 (git) before 90bfee142af0f0e9d3bec80e7acd5f49b230acf7
affected

Default status
affected

5.14
affected

Any version before 5.14
unaffected

5.15.77 (semver)
unaffected

6.0.7 (semver)
unaffected

6.1 (original_commit_for_fix)
unaffected

References

git.kernel.org/...c/304a10161696d86300ceab1cbe72b2d74b8cdd94

git.kernel.org/...c/c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58

git.kernel.org/...c/90bfee142af0f0e9d3bec80e7acd5f49b230acf7

cve.org (CVE-2022-50619)

nvd.nist.gov (CVE-2022-50619)

Download JSON