---
id: CVE-2026-45947
title: 'drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()'
summary: |-
  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 wit…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 <
    e87c73a80a12d337cf5f493c0956f6c2c9eafd80
  - >-
    Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 <
    18a7bbd11f17a7cd4c42fd5955d3675d68c692df
  - >-
    Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 <
    d1370ef2ecf7d4df25e3e1e430cd191b1e7f8596
  - >-
    Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 <
    7e4b612fe7a960d610c20260c9ee220bddd1b215
  - >-
    Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 <
    c9be63d565789b56ca7b0197e2cb78a3671f95a8
  - Linux 6.5
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-06T16:02:37.777484Z'
published: '2026-05-27'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T16:03:15.908Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-45947'
references:
  - url: 'https://git.kernel.org/stable/c/e87c73a80a12d337cf5f493c0956f6c2c9eafd80'
  - url: 'https://git.kernel.org/stable/c/18a7bbd11f17a7cd4c42fd5955d3675d68c692df'
  - url: 'https://git.kernel.org/stable/c/d1370ef2ecf7d4df25e3e1e430cd191b1e7f8596'
  - url: 'https://git.kernel.org/stable/c/7e4b612fe7a960d610c20260c9ee220bddd1b215'
  - url: 'https://git.kernel.org/stable/c/c9be63d565789b56ca7b0197e2cb78a3671f95a8'
tags:
  - cve.org
epss: 0.00162
epssPercentile: 0.05409
ingestedAt: '2026-11-06T16:57:43.374Z'
---

## Overview

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.

## Affected

- `Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 < e87c73a80a12d337cf5f493c0956f6c2c9eafd80`
- `Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 < 18a7bbd11f17a7cd4c42fd5955d3675d68c692df`
- `Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 < d1370ef2ecf7d4df25e3e1e430cd191b1e7f8596`
- `Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 < 7e4b612fe7a960d610c20260c9ee220bddd1b215`
- `Linux >= 4d5275ab0b18d17697392aafd93e206e6b9de647 < c9be63d565789b56ca7b0197e2cb78a3671f95a8`
- `Linux 6.5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
