{"id":"CVE-2026-45853","state":"PUBLISHED","title":"drm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()\n\namdgpu_discovery_get_nps_info() internally allocates memory for ranges\nusing kvcalloc(), which may use vmalloc() for large allocation. Using\nkfree() to release vmalloc memory will lead to a memory corruption.\n\nUse kvfree() to safely handle both kmalloc and vmalloc allocations.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","publishedAt":"2026-05-27T12:15:27.453Z","updatedAt":"2026-05-27T12:15:27.453Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e","versionType":"git"},{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5","versionType":"git"},{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"f441538893eba6347b983f2904819ca6c99da65e","versionType":"git"},{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"0c44d61945c4a80775292d96460aa2f22e62f86c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","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_gmc.c"]}],"references":["https://git.kernel.org/stable/c/16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e","https://git.kernel.org/stable/c/9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5","https://git.kernel.org/stable/c/f441538893eba6347b983f2904819ca6c99da65e","https://git.kernel.org/stable/c/0c44d61945c4a80775292d96460aa2f22e62f86c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45853.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45853","state":"PUBLISHED","datePublished":"2026-05-27T12:15:27.453Z","dateUpdated":"2026-05-27T12:15:27.453Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.079Z"},"containers":{"cna":{"title":"drm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Use kvfree instead of kfree in amdgpu_gmc_get_nps_memranges()\n\namdgpu_discovery_get_nps_info() internally allocates memory for ranges\nusing kvcalloc(), which may use vmalloc() for large allocation. Using\nkfree() to release vmalloc memory will lead to a memory corruption.\n\nUse kvfree() to safely handle both kmalloc and vmalloc allocations.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e","versionType":"git"},{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5","versionType":"git"},{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"f441538893eba6347b983f2904819ca6c99da65e","versionType":"git"},{"version":"b194d21b9bcc15b50df1bc3ff7428e51c2918a6f","status":"affected","lessThan":"0c44d61945c4a80775292d96460aa2f22e62f86c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","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_gmc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/16e7e7ad8cdc6b4c4af7f31e262f1494c1b2a55e"},{"url":"https://git.kernel.org/stable/c/9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5"},{"url":"https://git.kernel.org/stable/c/f441538893eba6347b983f2904819ca6c99da65e"},{"url":"https://git.kernel.org/stable/c/0c44d61945c4a80775292d96460aa2f22e62f86c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-27T12:15:27.453Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}