drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL
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:ffff9
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 4.19.300, 5.10.202, 5.15.140, 5.4.262, 6.1.64, 6.5.13, 6.6.3
- CVEs
- CVE-2023-52817
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 08:46 UTC · Revision 1
Source evidence
drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL
core-osv · Original sourcePublished 21 May 2024, 15:31 UTC
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:ffff9
osv:CVE-2023-52817
Kernel
Fixed versions: 4.19.300, 5.4.262, 5.10.202, 5.15.140, 6.1.64, 6.5.13, 6.6.3
Complete source record
{
"id": "8cd5a5c324c6209d9141d8c05bba3f7b03091815be4e33b5bf1b8dd9461e44f6",
"url": "https://osv.dev/vulnerability/CVE-2023-52817",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/amdgpu: Fix a null pointer access when the smc_rreg pointer is NULL",
"summary": "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:ffff9",
"evidence": "osv:CVE-2023-52817",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.19.300",
"evidence": "/affected/1/ranges"
},
{
"value": "5.4.262",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.202",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.140",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.64",
"evidence": "/affected/1/ranges"
},
{
"value": "6.5.13",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2023-52817",
"aliases": [
"CVE-2023-52817"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d38ceaf99ed015f2a0b9af3499791bd3a3daae21"
},
{
"fixed": "bf2d51eedf03bd61e3556e35d74d49e2e6112398"
},
{
"fixed": "437e0fa907ba39b4d7eda863c03ea9cf48bd93a9"
},
{
"fixed": "f475d5502f33a6c5b149b0afe96316ad1962a64a"
},
{
"fixed": "174f62a0aa15c211e60208b41ee9e7cdfb73d455"
},
{
"fixed": "6c1b3d89a2dda79881726bb6e37af19c0936d736"
},
{
"fixed": "820daf9ffe2b0afb804567b10983fb38bc5ae288"
},
{
"fixed": "ba3c0796d292de84f2932cc5bbb0f771fc720996"
},
{
"fixed": "5104fdf50d326db2c1a994f8b35dcd46e63ae4ad"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52817.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.2.0"
},
{
"fixed": "4.19.300"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.262"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.202"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.140"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.64"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.5.13"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.6.0"
},
{
"fixed": "6.6.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52817.json"
}
}
],
"modified": "2026-10-28T02:30:34.174033516Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/174f62a0aa15c211e60208b41ee9e7cdfb73d455",
"https://git.kernel.org/stable/c/437e0fa907ba39b4d7eda863c03ea9cf48bd93a9",
"https://git.kernel.org/stable/c/5104fdf50d326db2c1a994f8b35dcd46e63ae4ad",
"https://git.kernel.org/stable/c/6c1b3d89a2dda79881726bb6e37af19c0936d736",
"https://git.kernel.org/stable/c/820daf9ffe2b0afb804567b10983fb38bc5ae288",
"https://git.kernel.org/stable/c/ba3c0796d292de84f2932cc5bbb0f771fc720996",
"https://git.kernel.org/stable/c/bf2d51eedf03bd61e3556e35d74d49e2e6112398",
"https://git.kernel.org/stable/c/f475d5502f33a6c5b149b0afe96316ad1962a64a",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52817.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-52817",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52817.json"
}
},
"related_cves": [
{
"value": "CVE-2023-52817",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 501251,
"published_at": "2024-05-21T15:31:24.225+00:00"
}