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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-05-21T15:04:09.296Z
- Modified: 2026-08-05T08:47:45.513Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: handle the case of pci_channel_io_frozen only in amdgpu_pci_resume

In current code, when a PCI error state pci_channel_io_normal is detectd,
it will report PCI_ERS_RESULT_CAN_RECOVER status to PCI driver, and PCI
driver will continue the execution of PCI resume callback report_resume by
pci_walk_bridge, and the callback will go into amdgpu_pci_resume
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 amdgpu_device strucutre to cache
pci_channel_state, and only continue the execution in amdgpu_pci_resume
when it's pci_channel_io_frozen.

(As written by CVE List.)

## Affected

- Linux Linux: from c9a6b82f45e261d247b980a7949aaa6a9bfffe01 before 785cc093b6b5a93cc350421a55f3f1eda6585156; from c9a6b82f45e261d247b980a7949aaa6a9bfffe01 before 72e9a1bf9b722628c28092e0c2cd8717edd201dc; from c9a6b82f45e261d247b980a7949aaa6a9bfffe01 before 248b061689a40f4fed05252ee2c89f87cf26d7d8; 5.10 (not affected: before 5.10; from 5.10.241 up to 5.10.*; from 5.14.12 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: from 5.10 before 5.10.241; from 5.11 before 5.14.12; 5.15

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/785cc093b6b5a93cc350421a55f3f1eda6585156> (patch)
- <https://git.kernel.org/stable/c/72e9a1bf9b722628c28092e0c2cd8717edd201dc> (patch)
- <https://git.kernel.org/stable/c/248b061689a40f4fed05252ee2c89f87cf26d7d8> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Sources

- CVE List: [CVE-2021-47421](https://www.cve.org/CVERecord?id=CVE-2021-47421), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47421](https://nvd.nist.gov/vuln/detail/CVE-2021-47421), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47421 · Whole record: https://cve.day/CVE-2021-47421.json · Rebuilt by cve.day 2026-11-25T22:58:08.849Z
