# CVE-2023-52921: drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-11-19T01:26:30.495Z
- Modified: 2026-08-05T09:12:01.402Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: fix possible UAF in amdgpu_cs_pass1()

Since the gang_size check is outside of chunk parsing
loop, we need to reset i before we free the chunk data.

Suggested by Ye Zhang (@VAR10CK) of Baidu Security.

(As written by CVE List.)

## Affected

- Linux Linux: from 2ebf61f2cfb9a11bc17db30df3e675a4cd7418d3 before e08e9dd09809b16f8f8cee8c466841b33d24ed96; from 2ebf61f2cfb9a11bc17db30df3e675a4cd7418d3 before 90e065677e0362a777b9db97ea21d43a39211399; 6.2 (not affected: before 6.2; from 6.4.11 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: before 6.1.46; from 6.2 before 6.4.11; 6.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/e08e9dd09809b16f8f8cee8c466841b33d24ed96> (patch)
- <https://git.kernel.org/stable/c/90e065677e0362a777b9db97ea21d43a39211399> (patch)

## Sources

- CVE List: [CVE-2023-52921](https://www.cve.org/CVERecord?id=CVE-2023-52921), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-52921](https://nvd.nist.gov/vuln/detail/CVE-2023-52921), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52921 · Whole record: https://cve.day/CVE-2023-52921.json · Rebuilt by cve.day 2026-11-25T22:58:34.378Z
