CVE-2026-45947

drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()

Published May 27, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()

In amdgpu_acpi_enumerate_xcc(), if amdgpu_acpi_dev_init() returns -ENOMEM,
the function returns directly without releasing the allocated xcc_info,
resulting in a memory leak.

Fix this by ensuring that xcc_info is properly freed in the error paths.

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

Analysis

AI-generated

Technical impact

The vulnerability is present in the Linux kernel's amdgpu driver. In the function amdgpu_acpi_enumerate_xcc, an allocated structure named xcc_info is not freed when amdgpu_acpi_dev_init returns -ENOMEM, creating a memory leak. Over time, repeated execution of this error path could exhaust kernel memory, destabilizing the system or triggering a reboot. The weakness corresponds to a classic memory‑leak flaw.

Affected Systems

All Linux kernels that include the amdgpu driver prior to the application of the patch are affected. No specific kernel version range is listed, so any installation running the default amdgpu module before the fix is vulnerable.

Risk and Exploitability

The EPSS score is reported as less than 1%, indicating a very low probability of exploitation, and a CVSS score of 5.5 is assigned, classifying the vulnerability as Medium severity. Based on the description, it is inferred that the attack vector requires local privileged interaction with kernel ACPI enumeration routines; a non‑privileged user would not be able to trigger the leak alone. An attacker with such access could repeatedly invoke the problematic code path to deplete kernel memory, potentially causing a denial‑of‑service. The vulnerability is not listed in the CISA KEV catalog, indicating no known in‑the‑wild exploitation at the time of the advisory.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that incorporates the amdgpu fix that frees xcc_info on error.
  • Reboot the affected systems after the kernel update to load the updated amdgpu module.
  • Enable monitoring of kernel memory usage to detect any persistent leaks after applying the fix.

Generated by OpenCVE AI on June 18, 2026 at 04:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-4 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-5 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-401
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc() In amdgpu_acpi_enumerate_xcc(), if amdgpu_acpi_dev_init() returns -ENOMEM, the function returns directly without releasing the allocated xcc_info, resulting in a memory leak. Fix this by ensuring that xcc_info is properly freed in the error paths. Compile tested only. Issue found using a prototype static analysis tool and code review.
Title drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 6, 2026, 4:03 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
May 27, 2026, 2:17 PM
Modified
Nov 6, 2026, 4:18 PM
Severity
Public date
May 27, 2026, 12:00 AM