In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: fix possible UAF in amdgpucspass1()
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.
[
{
"id": "CVE-2023-52921-a0cb7df4",
"signature_type": "Line",
"digest": {
"line_hashes": [
"240209708621369562113622910855286853238",
"53275361617941271727694362982747826592",
"324919956152372537465337172453517259443",
"247490806229019755434001335653306777249"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e08e9dd09809b16f8f8cee8c466841b33d24ed96",
"deprecated": false
},
{
"id": "CVE-2023-52921-acae518d",
"signature_type": "Line",
"digest": {
"line_hashes": [
"240209708621369562113622910855286853238",
"53275361617941271727694362982747826592",
"324919956152372537465337172453517259443",
"247490806229019755434001335653306777249"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@90e065677e0362a777b9db97ea21d43a39211399",
"deprecated": false
},
{
"id": "CVE-2023-52921-bf9d3f43",
"signature_type": "Function",
"digest": {
"length": 3329.0,
"function_hash": "291697606317842678226745438604393841928"
},
"signature_version": "v1",
"target": {
"function": "amdgpu_cs_pass1",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@90e065677e0362a777b9db97ea21d43a39211399",
"deprecated": false
},
{
"id": "CVE-2023-52921-fe047d75",
"signature_type": "Function",
"digest": {
"length": 3315.0,
"function_hash": "82979503112269603561854775241952653345"
},
"signature_version": "v1",
"target": {
"function": "amdgpu_cs_pass1",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e08e9dd09809b16f8f8cee8c466841b33d24ed96",
"deprecated": false
}
]