Skip to contentSkip to conversation

CVE-2023-53175: PCI: hv: Fix a crash in hv_pci_restore_msi_msg() during hibernation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 15, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2023-53175 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.17 with commit dc2b453290c471266a2d56d7ead981e3c5cea05e and fixed in 6.1.53 with commit 223fc5352054900f70b8b5e10cfc2f297e70c512
	Issue introduced in 5.17 with commit dc2b453290c471266a2d56d7ead981e3c5cea05e and fixed in 6.4.16 with commit d0687755407b21d252b98dca6be459153a60c62a
	Issue introduced in 5.17 with commit dc2b453290c471266a2d56d7ead981e3c5cea05e and fixed in 6.5.3 with commit e32fc2168aa6b477290392ddbb73d95f012b050c
	Issue introduced in 5.17 with commit dc2b453290c471266a2d56d7ead981e3c5cea05e and fixed in 6.6 with commit 04bbe863241a9be7d57fb4cf217ee4a72f480e70

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2023-53175

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/pci/controller/pci-hyperv.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/223fc5352054900f70b8b5e10cfc2f297e70c512
	https://git.kernel.org/stable/c/d0687755407b21d252b98dca6be459153a60c62a
	https://git.kernel.org/stable/c/e32fc2168aa6b477290392ddbb73d95f012b050c
	https://git.kernel.org/stable/c/04bbe863241a9be7d57fb4cf217ee4a72f480e70