PCI/pwrctrl: Cancel outstanding rescan work when unregistering
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 |
|
|
6.12.1146.15.36.16In the Linux kernel, the following vulnerability has been resolved:
PCI/pwrctrl: Cancel outstanding rescan work when unregistering
It's possible to trigger use-after-free here by:
(a) forcing rescan_work_func() to take a long time and (b) utilizing a pwrctrl driver that may be unloaded for some reason
Cancel outstanding work to ensure it is finished before we allow our data structures to be cleaned up.
[bhelgaas: tidy commit log]
From the CVE record · Linux
The Linux kernel PCI power-control code can encounter a use-after-free when a rescan takes a long time and a power-control driver is unloaded while work remains outstanding. An attacker may be able to trigger this condition; the input does not specify network or local access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their kernel includes the affected PCI power-control code; affected versions are not specified.