{"id":"CVE-2021-47421","published":"2024-05-21T15:04:09Z","modified":"2026-08-05T08:47:45Z","title":"drm/amdgpu: handle the case of pci_channel_io_frozen only in amdgpu_pci_resume","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: handle the case of pci_channel_io_frozen only in amdgpu_pci_resume\n\nIn current code, when a PCI error state pci_channel_io_normal is detectd,\nit will report PCI_ERS_RESULT_CAN_RECOVER status to PCI driver, and PCI\ndriver will continue the execution of PCI resume callback report_resume by\npci_walk_bridge, and the callback will go into amdgpu_pci_resume\nfinally, where write lock is releasd unconditionally without acquiring\nsuch lock first. In this case, a deadlock will happen when other threads\nstart to acquire the read lock.\n\nTo fix this, add a member in amdgpu_device strucutre to cache\npci_channel_state, and only continue the execution in amdgpu_pci_resume\nwhen it's pci_channel_io_frozen.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00206,"percentile":0.10817,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/785cc093b6b5a93cc350421a55f3f1eda6585156","tags":[]},{"url":"https://git.kernel.org/stable/c/72e9a1bf9b722628c28092e0c2cd8717edd201dc","tags":[]},{"url":"https://git.kernel.org/stable/c/248b061689a40f4fed05252ee2c89f87cf26d7d8","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]}],"priority":{"score":7.6,"factors":[{"name":"EPSS percentile","points":2.16},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c9a6b82f45e261d247b980a7949aaa6a9bfffe01, < 785cc093b6b5a93cc350421a55f3f1eda6585156",">= c9a6b82f45e261d247b980a7949aaa6a9bfffe01, < 72e9a1bf9b722628c28092e0c2cd8717edd201dc",">= c9a6b82f45e261d247b980a7949aaa6a9bfffe01, < 248b061689a40f4fed05252ee2c89f87cf26d7d8"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T15:37:47.598437Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34426","exploited":false,"provenance":"source"}}