# CVE-2023-52816: drm/amdkfd: Fix shift out-of-bounds issue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-05-21T15:31:23.567Z
- **Modified:** 2026-06-17T06:43:39.150Z

## Who should check

- Anyone running Linux \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 3f7a400d5e80f99581e3e8a9843e1f6118bf454f; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 2806f880379232e789957c2078d612669eb7a69c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< d33a35b13cbfec3238043f196fa87a6384f9d087; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 56649c43d40ce0147465a2d5756d300e87f9ee1c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 282c1d793076c2edac6c3db51b7e8ed2b41d60a5
- Anyone running Linux 5.14

## Description

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

drm/amdkfd: Fix shift out-of-bounds issue

\[  567.613292\] shift exponent 255 is too large for 64-bit type 'long unsigned int'
\[  567.614498\] CPU: 5 PID: 238 Comm: kworker/5:1 Tainted: G           OE      6.2.0-34-generic \#34~22.04.1-Ubuntu
\[  567.614502\] Hardware name: AMD Splinter/Splinter-RPL, BIOS WS43927N\_871 09/25/2023
\[  567.614504\] Workqueue: events send\_exception\_work\_handler \[amdgpu\]
\[  567.614748\] Call Trace:
\[  567.614750\]  \<TASK\>
\[  567.614753\]  dump\_stack\_lvl+0x48/0x70
\[  567.614761\]  dump\_stack+0x10/0x20
\[  567.614763\]  \_\_ubsan\_handle\_shift\_out\_of\_bounds+0x156/0x310
\[  567.614769\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[  567.614773\]  ? update\_sd\_lb\_stats.constprop.0+0xf2/0x3c0
\[  567.614780\]  svm\_range\_split\_by\_granularity.cold+0x2b/0x34 \[amdgpu\]
\[  567.615047\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[  567.615052\]  svm\_migrate\_to\_ram+0x185/0x4d0 \[amdgpu\]
\[  567.615286\]  do\_swap\_page+0x7b6/0xa30
\[  567.615291\]  ? srso\_alias\_return\_thunk+0x5/0x7f
\[  567.615294\]  ? \_\_free\_pages+0x119/0x130
\[  567.615299\]  handle\_pte\_fault+0x227/0x280
\[  567.615303\]  \_\_handle\_mm\_fault+0x3c0/0x720
\[  567.615311\]  handle\_mm\_fault+0x119/0x330
\[  567.615314\]  ? lock\_mm\_and\_find\_vma+0x44/0x250
\[  567.615318\]  do\_user\_addr\_fault+0x1a9/0x640
\[  567.615323\]  exc\_page\_fault+0x81/0x1b0
\[  567.615328\]  asm\_exc\_page\_fault+0x27/0x30
\[  567.615332\] RIP: 0010:\_\_get\_user\_8+0x1c/0x30

## Affected and fixed versions

- Linux: \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 3f7a400d5e80f99581e3e8a9843e1f6118bf454f; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 2806f880379232e789957c2078d612669eb7a69c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< d33a35b13cbfec3238043f196fa87a6384f9d087; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 56649c43d40ce0147465a2d5756d300e87f9ee1c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 282c1d793076c2edac6c3db51b7e8ed2b41d60a5 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 282c1d793076c2edac6c3db51b7e8ed2b41d60a5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52816. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52816.md
Affected: Linux >= 42de677f79999791bee4e21be318c32d90ab62c6, < 3f7a400d5e80f99581e3e8a9843e1f6118bf454f; >= 42de677f79999791bee4e21be318c32d90ab62c6, < 2806f880379232e789957c2078d612669eb7a69c; >= 42de677f79999791bee4e21be318c32d90ab62c6, < d33a35b13cbfec3238043f196fa87a6384f9d087; >= 42de677f79999791bee4e21…
Fixed in: Linux 3f7a400d5e80f99581e3e8a9843e1f6118bf454f, Linux 2806f880379232e789957c2078d612669eb7a69c, Linux 56649c43d40ce0147465a2d5756d300e87f9ee1c, Linux 282c1d793076c2edac6c3db51b7e8ed2b41d60a5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52816 being exploited?

There is no confirmed exploitation: CVE-2023-52816 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52816?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52816?

Linux \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 3f7a400d5e80f99581e3e8a9843e1f6118bf454f; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 2806f880379232e789957c2078d612669eb7a69c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< d33a35b13cbfec3238043f196fa87a6384f9d087; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 56649c43d40ce0147465a2d5756d300e87f9ee1c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 282c1d793076c2edac6c3db51b7e8ed2b41d60a5; Linux 5.14.

### Is there a fix for CVE-2023-52816?

Yes. Fixed in Linux 3f7a400d5e80f99581e3e8a9843e1f6118bf454f, Linux 2806f880379232e789957c2078d612669eb7a69c, Linux 56649c43d40ce0147465a2d5756d300e87f9ee1c, Linux 282c1d793076c2edac6c3db51b7e8ed2b41d60a5. Upgrade Linux to 282c1d793076c2edac6c3db51b7e8ed2b41d60a5 or later.

### How do I check if I'm affected by CVE-2023-52816?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/3f7a400d5e80f99581e3e8a9843e1f6118bf454f>
- patch: <https://git.kernel.org/stable/c/2806f880379232e789957c2078d612669eb7a69c>
- patch: <https://git.kernel.org/stable/c/d33a35b13cbfec3238043f196fa87a6384f9d087>
- patch: <https://git.kernel.org/stable/c/56649c43d40ce0147465a2d5756d300e87f9ee1c>
- patch: <https://git.kernel.org/stable/c/282c1d793076c2edac6c3db51b7e8ed2b41d60a5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52816>

HTML: <https://flawdb.com/CVE-2023-52816> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52816>
