# CVE-2026-45976: drm/amdgpu: Fix memory leak in amdgpu_ras_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.12%, higher than 2% of CVEs (2026-12-02)
- Published: 2026-05-27T12:18:34.772Z
- Modified: 2026-11-06T17:17:27.613Z
- Weaknesses: CWE-401
- 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: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf before f8a5426652bdadd4a5cb48326d48abbdfebe8153; from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf before c11cd77a18115d2cd3f4b6915c4a537b6042f950; from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf before 2fef8c2ac67e7c1b0409d23653300b134c63e54c; from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf before 3f43e7812b30d6b2e850218f9bb1dae60727fcef; from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf before ee41e5b63c8210525c936ee637a2c8d185ce873c; 6.4 (not affected: before 6.4; from 6.6.128 up to 6.6.*; 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.4 before 6.6.128; from 6.7 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/f8a5426652bdadd4a5cb48326d48abbdfebe8153> (patch)
- <https://git.kernel.org/stable/c/c11cd77a18115d2cd3f4b6915c4a537b6042f950> (patch)
- <https://git.kernel.org/stable/c/2fef8c2ac67e7c1b0409d23653300b134c63e54c> (patch)
- <https://git.kernel.org/stable/c/3f43e7812b30d6b2e850218f9bb1dae60727fcef> (patch)
- <https://git.kernel.org/stable/c/ee41e5b63c8210525c936ee637a2c8d185ce873c> (patch)

## Sources

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

---

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