CVE-2022-50619

drm/amdkfd: Fix memory leak in kfd_mem_dmamap_userptr()

State
Published
Severity
Not scored
Published
Dec 8, 2025
Updated
May 11, 2026
Reserved
Dec 8, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 264fb4d332f5e76743818480e482464437837c52 to before 304a10161696d86300ceab1cbe72b2d74b8cdd94Affected
  • 264fb4d332f5e76743818480e482464437837c52 to before c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58Affected
  • 264fb4d332f5e76743818480e482464437837c52 to before 90bfee142af0f0e9d3bec80e7acd5f49b230acf7Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.15.77 through 5.15.*Not affected
  • 6.0.7 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.