CVE-2026-45976 PUBLISHED

drm/amdgpu: Fix memory leak in amdgpu_ras_init()

Assigner: Linux
Reserved: 13.05.2026 Published: 27.05.2026 Updated: 27.05.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf to f8a5426652bdadd4a5cb48326d48abbdfebe8153 (excl.)
  • affected from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf to c11cd77a18115d2cd3f4b6915c4a537b6042f950 (excl.)
  • affected from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf to 2fef8c2ac67e7c1b0409d23653300b134c63e54c (excl.)
  • affected from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf to 3f43e7812b30d6b2e850218f9bb1dae60727fcef (excl.)
  • affected from fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf to ee41e5b63c8210525c936ee637a2c8d185ce873c (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.4 is affected
  • unaffected from 0 to 6.4 (excl.)
  • unaffected from 6.6.128 to 6.6.* (incl.)
  • unaffected from 6.12.75 to 6.12.* (incl.)
  • unaffected from 6.18.14 to 6.18.* (incl.)
  • unaffected from 6.19.4 to 6.19.* (incl.)
  • unaffected from 7.0 to * (incl.)

References