misc: pci_endpoint_test: Free IRQs before removing the device
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e03327122e2c8e6ae4565ef5b3d3cbe4364546a1 · < 38d12bcf4e2ce3d285eb29644a79a54f42040fab| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
misc: pci_endpoint_test: Free IRQs before removing the device
In pci_endpoint_test_remove(), freeing the IRQs after removing the device creates a small race window for IRQs to be received with the test device memory already released, causing the IRQ handler to access invalid memory, resulting in an oops.
Free the device IRQs before removing the device to avoid this issue.
From the CVE record · Linux
The Linux kernel's pci_endpoint_test removal path can free device memory before freeing its IRQs. If an IRQ arrives during that window, the handler can access invalid memory and cause an oops. The input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with pci_endpoint_test should check whether their kernel includes the fix; affected versions are not specified.