{"id":"CVE-2023-52921","state":"PUBLISHED","title":"drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: fix possible UAF in amdgpu_cs_pass1()\n\nSince the gang_size check is outside of chunk parsing\nloop, we need to reset i before we free the chunk data.\n\nSuggested by Ye Zhang (@VAR10CK) of Baidu Security.","publishedAt":"2024-11-19T01:26:30.495Z","updatedAt":"2026-08-05T09:12:01.402Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2ebf61f2cfb9a11bc17db30df3e675a4cd7418d3","status":"affected","lessThan":"e08e9dd09809b16f8f8cee8c466841b33d24ed96","versionType":"git"},{"version":"2ebf61f2cfb9a11bc17db30df3e675a4cd7418d3","status":"affected","lessThan":"90e065677e0362a777b9db97ea21d43a39211399","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.4.11","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","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_cs.c"]}],"references":["https://git.kernel.org/stable/c/e08e9dd09809b16f8f8cee8c466841b33d24ed96","https://git.kernel.org/stable/c/90e065677e0362a777b9db97ea21d43a39211399"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52921.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52921","state":"PUBLISHED","datePublished":"2024-11-19T01:26:30.495Z","dateUpdated":"2026-08-05T09:12:01.402Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-21T06:07:11.018Z"},"containers":{"cna":{"title":"drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: fix possible UAF in amdgpu_cs_pass1()\n\nSince the gang_size check is outside of chunk parsing\nloop, we need to reset i before we free the chunk data.\n\nSuggested by Ye Zhang (@VAR10CK) of Baidu Security."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2ebf61f2cfb9a11bc17db30df3e675a4cd7418d3","status":"affected","lessThan":"e08e9dd09809b16f8f8cee8c466841b33d24ed96","versionType":"git"},{"version":"2ebf61f2cfb9a11bc17db30df3e675a4cd7418d3","status":"affected","lessThan":"90e065677e0362a777b9db97ea21d43a39211399","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.4.11","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","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_cs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e08e9dd09809b16f8f8cee8c466841b33d24ed96"},{"url":"https://git.kernel.org/stable/c/90e065677e0362a777b9db97ea21d43a39211399"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable path is reached via the AMDGPU_CS DRM ioctl on a local render/primary node (/dev/dri/renderD*), not via network packet processing or adjacent-network protocols.\nAC:L - An attacker reliably triggers the bug by opening the render node, creating a context, and submitting a command submission with accepted non-IB chunks (e.g. DEPENDENCIES/SYNCOBJ_*) so gang_size stays 0; no race or attacker-uncontrollable condition is required.\nPR:L - AMDGPU_CS is registered with DRM_AUTH|DRM_RENDER_ALLOW, so any unprivileged local user who can open the render node (typical video/render group membership on desktops, GPU-capable apps, Steam Deck, etc.) can reach the bug without root or init-namespace capabilities.\nUI:N - The attacker issues the ioctls themselves; no separate victim action such as mounting a filesystem or opening a malicious file is required.\nS:U - Impact is confined to the host kernel privilege boundary (local privilege escalation / memory corruption in amdgpu); this is not a VM escape, IOMMU bypass, or other cross-authority boundary crossing.\nC:H - The OOB kvfree of adjacent heap contents is an invalid/arbitrary free that enables classic UAF primitives after heap shaping, which per kernel CVSS guidance supports arbitrary memory disclosure.\nI:H - The same arbitrary-free/UAF primitive enables heap reuse and write primitives sufficient for control-flow hijacking or arbitrary kernel writes, so integrity impact is high.\nA:H - Freeing a garbage or live adjacent pointer readily causes kernel oops/panic or heap corruption crashes, so availability impact is high even without full exploitation."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:12:01.402Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.4.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2023-52921","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2024-12-11T14:25:32.419190Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-12-11T14:58:32.296Z"}}]}}}