drm/amdgpu: fix rmmio iounmap skipped on device removal
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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)
From the CVE record · Linux
The Linux kernel's amdgpu driver skips unmapping a register BAR mapping during device removal, leaking one mapping per unload. This occurs on hot-unplug or ordinary module removal; the input does not describe an attacker, authentication requirements, or user interaction.
Engineers running Linux kernels with the amdgpu driver should check their versions; affected versions are not specified.