CVE-2021-47421: drm/amdgpu: handle the case of pci_channel_io_frozen only in amdgpu_pci_resume

Published May 21, 2024
·
Updated

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

7 affected components
Linux Linux kernel
Linux Linux kernel>=5.10<5.10.241
Linux Linux kernel>=5.11<5.14.12
Linux Linux kernel=5.15-rc1
Linux Linux kernel=5.15-rc2
Linux Linux kernel=5.15-rc3
Linux Linux kernel=5.15-rc4

Event History

May 21, 2024
CVE Published
via MITRE·03:04 PM
Data Sourced
via MITRE·03:04 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-47421?

CVE-2021-47421 has been rated as a medium severity vulnerability in the Linux kernel.

2

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.

3

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.

4

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.

5

Is CVE-2021-47421 actively exploited?

As of the last updates, there have been no reported active exploits targeting CVE-2021-47421.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203