drm/amdgpu: fix rmmio iounmap skipped on device removal
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e81502d6791df9ecd003bfb2ca44f0d1f1b38439, Kernel a645584c3ccc493ee835f77155829442bd7578c3, Kernel a8f42c923e28a58af841d1c03d6cd6ad3bbd123f and 6 more.
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: fix rmmio iounmap skipped on device removal amdgpu_pci_remove() calls drm_dev_unplug() before fini_sw(), so drm_dev_enter() is already false there and the iounmap() guarded by it is skipped. This .remove path runs on both hot-unplug and plain rmmod, so the register BAR ioremap mapping leaks one instance per unload. Unmap rmmio unconditionally (guard only on non-NULL) and drop the now unused idx. (cherry picked from commit dd6f86a97260e5207d3329ad03aa89fdad61b1e6)
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=62d5f9f7110ad374db67ab4820f4ff2d916c3cdb <e81502d6791df9ecd003bfb2ca44f0d1f1b38439, >=62d5f9f7110ad374db67ab4820f4ff2d916c3cdb <a645584c3ccc493ee835f77155829442bd7578c3, >=62d5f9f7110ad374db67ab4820f4ff2d916c3cdb <a8f42c923e28a58af841d1c03d6cd6ad3bbd123f, >=62d5f9f7110ad374db67ab4820f4ff2d916c3cdb <cd55dde2b63789a3dafe982c89844f537501d096, =5.17, >=62d5f9f7110ad374db67ab4820f4ff2d916c3cdb <5155002b03b24ba3ef91c5c313b8cf0171b24904, >=62d5f9f7110ad374db67ab4820f4ff2d916c3cdb <84430fb266943bc79ba94f916b5f6179c25bfb3c | e81502d6791df9ecd003bfb2ca44f0d1f1b38439, a645584c3ccc493ee835f77155829442bd7578c3, a8f42c923e28a58af841d1c03d6cd6ad3bbd123f, cd55dde2b63789a3dafe982c89844f537501d096, 5155002b03b24ba3ef91c5c313b8cf0171b24904, 84430fb266943bc79ba94f916b5f6179c25bfb3c |
| linux-kernel: Kernel | >=6.13.0 <6.18.54, >=6.19.0 <7.2.8, >=5.17.0 <6.12.112 | 6.18.54, 7.2.8, 6.12.112 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket