# CVE-2023-52817: drm/amdgpu: Fix a null pointer access when the smc\_rreg pointer is NULL

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-21T15:31:24.225Z
- **Modified:** 2026-06-17T06:43:39.287Z

## Who should check

- Anyone running Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< bf2d51eedf03bd61e3556e35d74d49e2e6112398; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 437e0fa907ba39b4d7eda863c03ea9cf48bd93a9; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< f475d5502f33a6c5b149b0afe96316ad1962a64a; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 174f62a0aa15c211e60208b41ee9e7cdfb73d455; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 6c1b3d89a2dda79881726bb6e37af19c0936d736; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 820daf9ffe2b0afb804567b10983fb38bc5ae288; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ba3c0796d292de84f2932cc5bbb0f771fc720996; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 5104fdf50d326db2c1a994f8b35dcd46e63ae4ad
- Anyone running Linux 4.2

## Description

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

drm/amdgpu: Fix a null pointer access when the smc\_rreg pointer is NULL

In certain types of chips, such as VEGA20, reading the amdgpu\_regs\_smc file could result in an abnormal null pointer access when the smc\_rreg pointer is NULL. Below are the steps to reproduce this issue and the corresponding exception log:

1. Navigate to the directory: /sys/kernel/debug/dri/0
2. Execute command: cat amdgpu\_regs\_smc
3. Exception Log::
\[4005007.702554\] BUG: kernel NULL pointer dereference, address: 0000000000000000
\[4005007.702562\] \#PF: supervisor instruction fetch in kernel mode
\[4005007.702567\] \#PF: error\_code(0x0010) - not-present page
\[4005007.702570\] PGD 0 P4D 0
\[4005007.702576\] Oops: 0010 \[\#1\] SMP NOPTI
\[4005007.702581\] CPU: 4 PID: 62563 Comm: cat Tainted: G           OE     5.15.0-43-generic \#46-Ubunt       u
\[4005007.702590\] RIP: 0010:0x0
\[4005007.702598\] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
\[4005007.702600\] RSP: 0018:ffffa82b46d27da0 EFLAGS: 00010206
\[4005007.702605\] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffa82b46d27e68
\[4005007.702609\] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff9940656e0000
\[4005007.702612\] RBP: ffffa82b46d27dd8 R08: 0000000000000000 R09: ffff994060c07980
\[4005007.702615\] R10: 0000000000020000 R11: 0000000000000000 R12: 00007f5e06753000
\[4005007.702618\] R13: ffff9940656e0000 R14: ffffa82b46d27e68 R15: 00007f5e06753000
\[4005007.702622\] FS:  00007f5e0755b740(0000) GS:ffff99479d300000(0000) knlGS:0000000000000000
\[4005007.702626\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[4005007.702629\] CR2: ffffffffffffffd6 CR3: 00000003253fc000 CR4: 00000000003506e0
\[4005007.702633\] Call Trace:
\[4005007.702636\]  \<TASK\>
\[4005007.702640\]  amdgpu\_debugfs\_regs\_smc\_read+0xb0/0x120 \[amdgpu\]
\[4005007.703002\]  full\_proxy\_read+0x5c/0x80
\[4005007.703011\]  vfs\_read+0x9f/0x1a0
\[4005007.703019\]  ksys\_read+0x67/0xe0
\[4005007.703023\]  \_\_x64\_sys\_read+0x19/0x20
\[4005007.703028\]  do\_syscall\_64+0x5c/0xc0
\[4005007.703034\]  ? do\_user\_addr\_fault+0x1e3/0x670
\[4005007.703040\]  ? exit\_to\_user\_mode\_prepare+0x37/0xb0
\[4005007.703047\]  ? irqentry\_exit\_to\_user\_mode+0x9/0x20
\[4005007.703052\]  ? irqentry\_exit+0x19/0x30
\[4005007.703057\]  ? exc\_page\_fault+0x89/0x160
\[4005007.703062\]  ? asm\_exc\_page\_fault+0x8/0x30
\[4005007.703068\]  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae
\[4005007.703075\] RIP: 0033:0x7f5e07672992
\[4005007.703079\] Code: c0 e9 b2 fe ff ff 50 48 8d 3d fa b2 0c 00 e8 c5 1d 02 00 0f 1f 44 00 00 f3 0f        1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 \<48\> 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 e       c 28 48 89 54 24
\[4005007.703083\] RSP: 002b:00007ffe03097898 EFLAGS: 00000246 ORIG\_RAX: 0000000000000000
\[4005007.703088\] RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007f5e07672992
\[4005007.703091\] RDX: 0000000000020000 RSI: 00007f5e06753000 RDI: 0000000000000003
\[4005007.703094\] RBP: 00007f5e06753000 R08: 00007f5e06752010 R09: 00007f5e06752010
\[4005007.703096\] R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000022000
\[4005007.703099\] R13: 0000000000000003 R14: 0000000000020000 R15: 0000000000020000
\[4005007.703105\]  \</TASK\>
\[4005007.703107\] Modules linked in: nf\_tables libcrc32c nfnetlink algif\_hash af\_alg binfmt\_misc nls\_       iso8859\_1 ipmi\_ssif ast intel\_rapl\_msr intel\_rapl\_common drm\_vram\_helper drm\_ttm\_helper amd64\_edac t       tm edac\_mce\_amd kvm\_amd ccp mac\_hid k10temp kvm acpi\_ipmi ipmi\_si rapl sch\_fq\_codel ipmi\_devintf ipm       i\_msghandler msr parport\_pc ppdev lp parport mtd pstore\_blk efi\_pstore ramoops pstore\_zone reed\_solo       mon ip\_tables x\_tables autofs4 ib\_uverbs ib\_core amdgpu(OE) amddrm\_ttm\_helper(OE) amdttm(OE) iommu\_v       2 amd\_sched(OE) amdkcl(OE) drm\_kms\_helper syscopyarea sysfillrect sysimgblt fb\_sys\_fops cec rc\_core        drm igb ahci xhci\_pci libahci i2c\_piix4 i2c\_algo\_bit xhci\_pci\_renesas dca
\[4005007.703184\] CR2: 0000000000000000
\[4005007.703188\] ---\[ en
---truncated---

## Affected and fixed versions

- Linux: \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< bf2d51eedf03bd61e3556e35d74d49e2e6112398; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 437e0fa907ba39b4d7eda863c03ea9cf48bd93a9; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< f475d5502f33a6c5b149b0afe96316ad1962a64a; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 174f62a0aa15c211e60208b41ee9e7cdfb73d455; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 6c1b3d89a2dda79881726bb6e37af19c0936d736; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 820daf9ffe2b0afb804567b10983fb38bc5ae288; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ba3c0796d292de84f2932cc5bbb0f771fc720996; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 5104fdf50d326db2c1a994f8b35dcd46e63ae4ad (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 5104fdf50d326db2c1a994f8b35dcd46e63ae4ad 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-52817. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52817.md
Affected: Linux >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < bf2d51eedf03bd61e3556e35d74d49e2e6112398; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 437e0fa907ba39b4d7eda863c03ea9cf48bd93a9; >= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < f475d5502f33a6c5b149b0afe96316ad1962a64a; >= d38ceaf99ed015f2a0b9af3…
Fixed in: Linux 437e0fa907ba39b4d7eda863c03ea9cf48bd93a9, Linux 174f62a0aa15c211e60208b41ee9e7cdfb73d455, Linux 6c1b3d89a2dda79881726bb6e37af19c0936d736, Linux 820daf9ffe2b0afb804567b10983fb38bc5ae288, Linux 5104fdf50d326db2c1a994f8b35dcd46e63ae4ad

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-52817 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< bf2d51eedf03bd61e3556e35d74d49e2e6112398; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 437e0fa907ba39b4d7eda863c03ea9cf48bd93a9; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< f475d5502f33a6c5b149b0afe96316ad1962a64a; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 174f62a0aa15c211e60208b41ee9e7cdfb73d455; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 6c1b3d89a2dda79881726bb6e37af19c0936d736; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 820daf9ffe2b0afb804567b10983fb38bc5ae288; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< ba3c0796d292de84f2932cc5bbb0f771fc720996; \>= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, \< 5104fdf50d326db2c1a994f8b35dcd46e63ae4ad; Linux 4.2.

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

Yes. Fixed in Linux 437e0fa907ba39b4d7eda863c03ea9cf48bd93a9, Linux 174f62a0aa15c211e60208b41ee9e7cdfb73d455, Linux 6c1b3d89a2dda79881726bb6e37af19c0936d736, Linux 820daf9ffe2b0afb804567b10983fb38bc5ae288, Linux 5104fdf50d326db2c1a994f8b35dcd46e63ae4ad. Upgrade Linux to 5104fdf50d326db2c1a994f8b35dcd46e63ae4ad or later.

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

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/bf2d51eedf03bd61e3556e35d74d49e2e6112398>
- patch: <https://git.kernel.org/stable/c/437e0fa907ba39b4d7eda863c03ea9cf48bd93a9>
- patch: <https://git.kernel.org/stable/c/f475d5502f33a6c5b149b0afe96316ad1962a64a>
- patch: <https://git.kernel.org/stable/c/174f62a0aa15c211e60208b41ee9e7cdfb73d455>
- patch: <https://git.kernel.org/stable/c/6c1b3d89a2dda79881726bb6e37af19c0936d736>
- patch: <https://git.kernel.org/stable/c/820daf9ffe2b0afb804567b10983fb38bc5ae288>
- patch: <https://git.kernel.org/stable/c/ba3c0796d292de84f2932cc5bbb0f771fc720996>
- patch: <https://git.kernel.org/stable/c/5104fdf50d326db2c1a994f8b35dcd46e63ae4ad>

## 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-52817>

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