PCI: hv: Fix a crash in hv_pci_restore_msi_msg() during hibernation
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:
PCI: hv: Fix a crash in hv_pci_restore_msi_msg() during hibernation
When a Linux VM with an assigned PCI device runs on Hyper-V, if the PCI device driver is not loaded yet (i.e. MSI-X/MSI is not enabled on the device yet), doing a VM hibernation triggers a panic in hv_pci_restore_msi_msg() -> msi_lock_descs(&pdev->dev), because pdev->dev.msi.data is still NULL.
Avoid the panic by checking if MSI-X/MSI is enabled.
From the CVE record · Linux
A Linux VM on Hyper-V can panic during hibernation if it has an assigned PCI device whose driver has not yet loaded, leaving MSI-X/MSI disabled. The panic occurs in hv_pci_restore_msi_msg(). The input does not identify an attacker-triggered path or authentication requirement.
Operators of Linux VMs with assigned PCI devices on Hyper-V should check their kernel; affected versions are not specified.