{"id":"CVE-2026-45976","state":"PUBLISHED","title":"drm/amdgpu: Fix memory leak in amdgpu_ras_init()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix memory leak in amdgpu_ras_init()\n\nWhen amdgpu_nbio_ras_sw_init() fails in amdgpu_ras_init(), the function\nreturns directly without freeing the allocated con structure, leading\nto a memory leak.\n\nFix this by jumping to the release_con label to properly clean up the\nallocated memory before returning the error code.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","publishedAt":"2026-05-27T12:18:34.772Z","updatedAt":"2026-05-27T12:18:34.772Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"f8a5426652bdadd4a5cb48326d48abbdfebe8153","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"c11cd77a18115d2cd3f4b6915c4a537b6042f950","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"2fef8c2ac67e7c1b0409d23653300b134c63e54c","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"3f43e7812b30d6b2e850218f9bb1dae60727fcef","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"ee41e5b63c8210525c936ee637a2c8d185ce873c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.128","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c"]}],"references":["https://git.kernel.org/stable/c/f8a5426652bdadd4a5cb48326d48abbdfebe8153","https://git.kernel.org/stable/c/c11cd77a18115d2cd3f4b6915c4a537b6042f950","https://git.kernel.org/stable/c/2fef8c2ac67e7c1b0409d23653300b134c63e54c","https://git.kernel.org/stable/c/3f43e7812b30d6b2e850218f9bb1dae60727fcef","https://git.kernel.org/stable/c/ee41e5b63c8210525c936ee637a2c8d185ce873c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45976.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45976","state":"PUBLISHED","datePublished":"2026-05-27T12:18:34.772Z","dateUpdated":"2026-05-27T12:18:34.772Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.090Z"},"containers":{"cna":{"title":"drm/amdgpu: Fix memory leak in amdgpu_ras_init()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix memory leak in amdgpu_ras_init()\n\nWhen amdgpu_nbio_ras_sw_init() fails in amdgpu_ras_init(), the function\nreturns directly without freeing the allocated con structure, leading\nto a memory leak.\n\nFix this by jumping to the release_con label to properly clean up the\nallocated memory before returning the error code.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"f8a5426652bdadd4a5cb48326d48abbdfebe8153","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"c11cd77a18115d2cd3f4b6915c4a537b6042f950","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"2fef8c2ac67e7c1b0409d23653300b134c63e54c","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"3f43e7812b30d6b2e850218f9bb1dae60727fcef","versionType":"git"},{"version":"fdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf","status":"affected","lessThan":"ee41e5b63c8210525c936ee637a2c8d185ce873c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.128","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f8a5426652bdadd4a5cb48326d48abbdfebe8153"},{"url":"https://git.kernel.org/stable/c/c11cd77a18115d2cd3f4b6915c4a537b6042f950"},{"url":"https://git.kernel.org/stable/c/2fef8c2ac67e7c1b0409d23653300b134c63e54c"},{"url":"https://git.kernel.org/stable/c/3f43e7812b30d6b2e850218f9bb1dae60727fcef"},{"url":"https://git.kernel.org/stable/c/ee41e5b63c8210525c936ee637a2c8d185ce873c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-27T12:18:34.772Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.128"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.18.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}