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.
Published: 2026-05-27
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in the Linux kernel’s AMD GPU driver causes allocated memory to be freed with the wrong routine. The driver uses kvcalloc() to obtain buffer space, a function that can return memory from vmalloc for large allocations. When the improper kfree() routine is used to release that buffer, vmalloc memory is corrupted, which can result in system instability or the execution of arbitrary code in kernel mode. This type of vulnerability is commonly classified as a memory corruption issue, related to the wrong deallocation of kernel space memory.

Affected Systems

The vulnerability affects Linux kernel versions that include the amdgpu driver. All distributions that ship a kernel with the AMDGPU module compiled in are potentially impacted, regardless of vendor, because the flaw lies in the generic amdgpu code. No specific patch releases are named in the data, so any kernel build that incorporates the vendor’s amdgpu fix is considered mitigated.

Risk and Exploitability

The CVSS score for this vulnerability is 7.8, indicating a high severity, while the EPSS score is less than 1% and it is not listed in CISA KEV. With a memory corruption defect that can corrupt vmalloc memory allocated by kvcalloc, the impact remains high, potentially allowing exploitation that leads to privilege escalation or denial of service. The likely attack vector requires an attacker with the ability to cause the amdgpu module to allocate and then free memory, typically through user‑space processes that interact with the GPU, root privileges, or the ability to load a malicious kernel module. No publicly available exploits are listed in KEV, but the kernel‑level memory corruption presents a significant threat if the flaw were to be leveraged.

Generated by OpenCVE AI on August 14, 2026 at 02:29 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Install a Linux kernel version that contains the corrected amdgpu driver, ensuring kfree() is replaced with kvfree() in amdgpu_gmc_get_nps_memranges()
  • Reboot the system after the kernel update so that the new module is loaded and the fix takes effect
  • If a kernel update cannot be applied immediately, block the amdgpu module by adding "amdgpu" to a blacklist file (e.g., /etc/modprobe.d/blacklist.conf) to prevent the vulnerable driver from being loaded

Generated by OpenCVE AI on August 14, 2026 at 02:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 14 Aug 2026 00:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Thu, 28 May 2026 12:15:00 +0000


Wed, 27 May 2026 16:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
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.
Title drm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:15:27.453Z

Reserved: 2026-05-13T15:03:33.079Z

Link: CVE-2026-45853

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-27T14:16:57.330

Modified: 2026-06-25T21:08:17.410

Link: CVE-2026-45853

cve-icon Redhat

Severity :

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-45853 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T02:30:17Z

Weaknesses
  • CWE-763

    Release of Invalid Pointer or Reference

  • CWE-787

    Out-of-bounds Write