{"id":"CVE-2023-53707","state":"PUBLISHED","title":"drm/amdgpu: Fix integer overflow in amdgpu_cs_pass1","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix integer overflow in amdgpu_cs_pass1\n\nThe type of size is unsigned int, if size is 0x40000000, there will\nbe an integer overflow, size will be zero after size *= sizeof(uint32_t),\nwill cause uninitialized memory to be referenced later.","publishedAt":"2025-10-22T13:23:43.822Z","updatedAt":"2026-10-03T10:54:59.930Z","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":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"8fb035232b505ab12119adf78f5fc1f93f2b7e24","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"6e03634f44cd5988ee5b6cdd4f849e73762095e7","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"9f55d300541cb5b435984d269087810581580b00","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"c3deb091398e9e469d08dd1599b6d76fd6b29df8","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"87c2213e85bd81e4a9a4d0880c256568794ae388","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":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.47","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.12","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/8fb035232b505ab12119adf78f5fc1f93f2b7e24","https://git.kernel.org/stable/c/6e03634f44cd5988ee5b6cdd4f849e73762095e7","https://git.kernel.org/stable/c/9f55d300541cb5b435984d269087810581580b00","https://git.kernel.org/stable/c/c3deb091398e9e469d08dd1599b6d76fd6b29df8","https://git.kernel.org/stable/c/87c2213e85bd81e4a9a4d0880c256568794ae388"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53707.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53707","state":"PUBLISHED","datePublished":"2025-10-22T13:23:43.822Z","dateUpdated":"2026-10-03T10:54:59.930Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-22T13:21:37.346Z"},"containers":{"cna":{"title":"drm/amdgpu: Fix integer overflow in amdgpu_cs_pass1","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix integer overflow in amdgpu_cs_pass1\n\nThe type of size is unsigned int, if size is 0x40000000, there will\nbe an integer overflow, size will be zero after size *= sizeof(uint32_t),\nwill cause uninitialized memory to be referenced later."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"8fb035232b505ab12119adf78f5fc1f93f2b7e24","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"6e03634f44cd5988ee5b6cdd4f849e73762095e7","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"9f55d300541cb5b435984d269087810581580b00","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"c3deb091398e9e469d08dd1599b6d76fd6b29df8","versionType":"git"},{"version":"d38ceaf99ed015f2a0b9af3499791bd3a3daae21","status":"affected","lessThan":"87c2213e85bd81e4a9a4d0880c256568794ae388","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":"4.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.2","versionType":"semver"},{"version":"5.10.271","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.222","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.47","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.4.12","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/8fb035232b505ab12119adf78f5fc1f93f2b7e24"},{"url":"https://git.kernel.org/stable/c/6e03634f44cd5988ee5b6cdd4f849e73762095e7"},{"url":"https://git.kernel.org/stable/c/9f55d300541cb5b435984d269087810581580b00"},{"url":"https://git.kernel.org/stable/c/c3deb091398e9e469d08dd1599b6d76fd6b29df8"},{"url":"https://git.kernel.org/stable/c/87c2213e85bd81e4a9a4d0880c256568794ae388"}],"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 vulnerability is reached only through the DRM_IOCTL_AMDGPU_CS ioctl on a local amdgpu device node (/dev/dri/renderD* or card*), requiring local access to the machine. There is no network or remote-peer path into amdgpu_cs_pass1().\nAC:L - The attacker directly supplies the overflowing value (length_dw >= 0x40000000) in a single ioctl call with no race, timing, or memory-layout condition to win, and can free memory and retry to make the large allocation succeed. On the multi-GiB systems where AMD GPUs are deployed (workstations, Steam Deck, cloud GPU nodes) the allocation reliably succeeds.\nPR:L - AMDGPU_CS is registered with DRM_RENDER_ALLOW, so no DRM master, authentication, or capability is required — any unprivileged local user or sandboxed app holding an fd on the render node can invoke it, which is standard for desktop sessions, Android apps, and GPU-enabled containers.\nUI:N - Exploitation is a self-contained sequence of ioctls issued by the attacker's own process; no victim action, file open, or mount is needed.\nS:U - The corrupted state and the uninitialized data consumed all live within the kernel's own security authority on the same host; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - A multi-gigabyte kvmalloc/vmalloc buffer is left completely uninitialized and then consumed as GEM handles, BO-list descriptors, user pointers and fence offsets, exposing stale kernel/page contents; the resulting lookup success/failure and the observable fence write offset form oracles that let an attacker read back that uninitialized kernel memory.\nI:H - Uninitialized kernel memory — attacker-groomable via page spraying — is used as GPU virtual addresses, IB sizes, flags, buffer-object handles and __user pointers that drive command submission, BO list construction and the user-fence write target, giving control-relevant fields that can be steered toward memory corruption.\nA:H - An unprivileged caller can force repeated 4 GiB kernel allocations causing reclaim storms and OOM kills, trips a WARN_ON_ONCE() in kvmalloc_node() (a panic under panic_on_warn), and drives the CS parser through uninitialized state, producing kernel crashes and denial of service."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-03T10:54:59.930Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.10.271"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.15.222"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.1.47"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.4.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}