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

drm/amdgpu: Fix memory leak in amdgpu_ras_init()

When amdgpu_nbio_ras_sw_init() fails in amdgpu_ras_init(), the function
returns directly without freeing the allocated con structure, leading
to a memory leak.

Fix this by jumping to the release_con label to properly clean up the
allocated memory before returning the error code.

Compile tested only. Issue found using a prototype static analysis tool
and code review.
Published: 2026-05-27
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw lies in the Linux kernel’s AMDGPU driver, where a failure in the amdgpu_nbio_ras_sw_init() function causes the amdgpu_ras_init() routine to return without freeing an allocated ‘con’ structure. This oversight leads to a memory leak each time the failure path is exercised, ultimately consuming kernel memory and potentially degrading or halting system performance. The weakness is a classic resource leak (CWE-772) that can only be triggered during RAS initialization and is not exploitable remotely without additional preconditions.

Affected Systems

Any Linux kernel containing the AMDGPU driver and compiled with RAS support before the patch are affected. No specific kernel releases are enumerated, so any deployment of a kernel version older than the one that includes the amdgpu_ras_init fix may be vulnerable.

Risk and Exploitability

The CVSS score is not supplied and the EPSS score is unavailable, indicating no actively exploited incidents are known. The attack surface is inferred to be limited to users or processes that can repeatedly trigger driver initializations—typically a local or privileged attacker. Because exploitation requires repeated failures, the overall risk is low to moderate, with the primary consequence being a gradual exhaustion of kernel memory leading to resource denial.

Generated by OpenCVE AI on May 28, 2026 at 01:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that contains the amdgpu_ras_init fix
  • If a kernel upgrade cannot be performed immediately, rebuild or reconfigure the kernel with AMDGPU RAS disabled (for example, via the CONFIG_AMDGPU_RAS or related configuration options) to eliminate the leak path
  • Set up monitoring of kernel logs for repeated amdgpu_nbio_ras_sw_init failures and configure automated alerts or a recoverable reboot if abnormal memory consumption is detected

Generated by OpenCVE AI on May 28, 2026 at 01:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 16 Jun 2026 06:30:00 +0000

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'}


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


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: Fix memory leak in amdgpu_ras_init() When amdgpu_nbio_ras_sw_init() fails in amdgpu_ras_init(), the function returns directly without freeing the allocated con structure, leading to a memory leak. Fix this by jumping to the release_con label to properly clean up the allocated memory before returning the error code. Compile tested only. Issue found using a prototype static analysis tool and code review.
Title drm/amdgpu: Fix memory leak in amdgpu_ras_init()
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:18:34.772Z

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

Link: CVE-2026-45976

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-27T14:17:14.700

Modified: 2026-06-16T02:40:53.247

Link: CVE-2026-45976

cve-icon Redhat

Severity :

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

Links: CVE-2026-45976 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T01:45:03Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime