CVE-2021-47421: drm/amdgpu: handle the case of pci_channel_io_frozen only in amdgpu_pci_resume
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: handle the case of pcichanneliofrozen only in amdgpupciresume
In current code, when a PCI error state pcichannelionormal is detectd, it will report PCIERSRESULTCANRECOVER status to PCI driver, and PCI driver will continue the execution of PCI resume callback reportresume by pciwalkbridge, and the callback will go into amdgpupciresume finally, where write lock is releasd unconditionally without acquiring such lock first. In this case, a deadlock will happen when other threads start to acquire the read lock.
To fix this, add a member in amdgpudevice strucutre to cache pcichannelstate, and only continue the execution in amdgpupciresume when it's pcichanneliofrozen.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47421?
CVE-2021-47421 has been rated as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2021-47421?
To fix CVE-2021-47421, you should update your Linux kernel to the latest version available that has addressed this vulnerability.
What systems are affected by CVE-2021-47421?
CVE-2021-47421 affects multiple versions of the Linux kernel, specifically versions between 5.10 and 5.15-rc4.
What causes CVE-2021-47421 in the Linux kernel?
CVE-2021-47421 is caused by improper handling of PCI error states in the amdgpu driver during the resume process.
Is CVE-2021-47421 actively exploited?
As of the last updates, there have been no reported active exploits targeting CVE-2021-47421.