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 amdgpuregssmc 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:
{ "vanir_signatures": [ { "deprecated": false, "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402", "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402" ], "threshold": 0.9 }, "id": "CVE-2023-52817-415657c0", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5104fdf50d326db2c1a994f8b35dcd46e63ae4ad" }, { "deprecated": false, "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402", "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402" ], "threshold": 0.9 }, "id": "CVE-2023-52817-4bcebbdf", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@174f62a0aa15c211e60208b41ee9e7cdfb73d455" }, { "deprecated": false, "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "14080681927934508785643073177595335311", "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "14080681927934508785643073177595335311" ], "threshold": 0.9 }, "id": "CVE-2023-52817-566ac840", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bf2d51eedf03bd61e3556e35d74d49e2e6112398" }, { "deprecated": false, "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402", "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402" ], "threshold": 0.9 }, "id": "CVE-2023-52817-5f72a975", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba3c0796d292de84f2932cc5bbb0f771fc720996" }, { "deprecated": false, "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402", "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402" ], "threshold": 0.9 }, "id": "CVE-2023-52817-71801d94", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c1b3d89a2dda79881726bb6e37af19c0936d736" }, { "deprecated": false, "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402", "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "161365401032826690892573735240580551402" ], "threshold": 0.9 }, "id": "CVE-2023-52817-7c1ab84a", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f475d5502f33a6c5b149b0afe96316ad1962a64a" }, { "deprecated": false, "signature_type": "Line", "target": { "file": "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "14080681927934508785643073177595335311", "245937134727305859859988046449726735328", "207849622798376605761877759961861717363", "14080681927934508785643073177595335311" ], "threshold": 0.9 }, "id": "CVE-2023-52817-f6049672", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@437e0fa907ba39b4d7eda863c03ea9cf48bd93a9" } ] }