# CVE-2026-45853: drm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-02)
- Published: 2026-05-27T12:15:27.453Z
- Modified: 2026-11-06T16:18:47.670Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()

amdgpu_discovery_get_nps_info() internally allocates memory for ranges
using kvcalloc(), which may use vmalloc() for large allocation. Using
kfree() to release vmalloc memory will lead to a memory corruption.

Use kvfree() to safely handle both kmalloc and vmalloc allocations.

Compile tested only. Issue found using a prototype static analysis tool
and code review.

(As written by CVE List.)

## Affected

- Linux Linux: from b194d21b9bcc15b50df1bc3ff7428e51c2918a6f before 16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e; from b194d21b9bcc15b50df1bc3ff7428e51c2918a6f before 9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5; from b194d21b9bcc15b50df1bc3ff7428e51c2918a6f before f441538893eba6347b983f2904819ca6c99da65e; from b194d21b9bcc15b50df1bc3ff7428e51c2918a6f before 0c44d61945c4a80775292d96460aa2f22e62f86c; 6.11 (not affected: before 6.11; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.11 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e> (patch)
- <https://git.kernel.org/stable/c/9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5> (patch)
- <https://git.kernel.org/stable/c/f441538893eba6347b983f2904819ca6c99da65e> (patch)
- <https://git.kernel.org/stable/c/0c44d61945c4a80775292d96460aa2f22e62f86c> (patch)

## Sources

- CVE List: [CVE-2026-45853](https://www.cve.org/CVERecord?id=CVE-2026-45853), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-45853](https://nvd.nist.gov/vuln/detail/CVE-2026-45853), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-45853 · Whole record: https://cve.day/CVE-2026-45853.json · Rebuilt by cve.day 2026-11-25T22:59:22.474Z
