In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: SDMA update use unlocked iterator
SDMA update page table may be called from unlocked context, this generate below warning. Use unlocked iterator to handle this case.
WARNING: CPU: 0 PID: 1475 at drivers/dma-buf/dma-resv.c:483 dmaresviternext Call Trace: dmaresviterfirst+0x43/0xa0 amdgpuvmsdmaupdate+0x69/0x2d0 [amdgpu] amdgpuvmptesupdate+0x29c/0x870 [amdgpu] amdgpuvmupdaterange+0x2f6/0x6c0 [amdgpu] svmrangeunmapfromgpus+0x115/0x300 [amdgpu] svmrangecpuinvalidatepagetables+0x510/0x5e0 [amdgpu] _mmunotifierinvalidaterangestart+0x1d3/0x230 unmapvmas+0x140/0x150 unmapregion+0xa8/0x110
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3913f0179ba366f7d7d160c506ce00de1602bbc4",
"id": "CVE-2022-50393-2fe87599",
"deprecated": false,
"target": {
"function": "amdgpu_vm_sdma_update",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"
},
"signature_version": "v1",
"digest": {
"length": 1740.0,
"function_hash": "319460676579284179342998711135151272327"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ff3d517cebe8a29b9f3c302b5292bb1ce291e00",
"id": "CVE-2022-50393-3986d302",
"deprecated": false,
"target": {
"function": "amdgpu_vm_sdma_update",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"
},
"signature_version": "v1",
"digest": {
"length": 1740.0,
"function_hash": "319460676579284179342998711135151272327"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3913f0179ba366f7d7d160c506ce00de1602bbc4",
"id": "CVE-2022-50393-6eb6a341",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"186572716639787024240909826173050508097",
"71779591014149522973338549757148113654",
"277170731038341328550797012876644591198",
"3833721358565504666631206291845260942",
"237154570072334240351838453207712252435",
"219134756968324821707530488360895029566",
"40196285546695746637667635412776994733",
"3172715558890993855471243241170929842",
"40622437722607559533911033282653880628"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b892c57a3a04c8de247ab9ee08a0a8cf53290e19",
"id": "CVE-2022-50393-7db52f51",
"deprecated": false,
"target": {
"function": "amdgpu_vm_sdma_update",
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"
},
"signature_version": "v1",
"digest": {
"length": 1740.0,
"function_hash": "319460676579284179342998711135151272327"
},
"signature_type": "Function"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ff3d517cebe8a29b9f3c302b5292bb1ce291e00",
"id": "CVE-2022-50393-d70deacb",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"186572716639787024240909826173050508097",
"71779591014149522973338549757148113654",
"277170731038341328550797012876644591198",
"3833721358565504666631206291845260942",
"237154570072334240351838453207712252435",
"219134756968324821707530488360895029566",
"40196285546695746637667635412776994733",
"3172715558890993855471243241170929842",
"40622437722607559533911033282653880628"
]
},
"signature_type": "Line"
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b892c57a3a04c8de247ab9ee08a0a8cf53290e19",
"id": "CVE-2022-50393-f922e0a4",
"deprecated": false,
"target": {
"file": "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c"
},
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"186572716639787024240909826173050508097",
"71779591014149522973338549757148113654",
"277170731038341328550797012876644591198",
"3833721358565504666631206291845260942",
"237154570072334240351838453207712252435",
"219134756968324821707530488360895029566",
"40196285546695746637667635412776994733",
"3172715558890993855471243241170929842",
"40622437722607559533911033282653880628"
]
},
"signature_type": "Line"
}
]