Skip to contentSkip to conversation

CVE-2025-38283: hisi_acc_vfio_pci: bugfix live migration function without VF device driver

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 10, 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:

hisi_acc_vfio_pci: bugfix live migration function without VF device driver

If the VF device driver is not loaded in the Guest OS and we attempt to perform device data migration, the address of the migrated data will be NULL.
The live migration recovery operation on the destination side will access a null address value, which will cause access errors.

Therefore, live migration of VMs without added VF device drivers does not require device data migration.
In addition, when the queue address data obtained by the destination is empty, device queue recovery processing will not be performed.

The Linux kernel CVE team has assigned CVE-2025-38283 to this issue.

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

	Issue introduced in 5.18 with commit b0eed085903e7758532696d64397901a75bba8ba and fixed in 6.6.94 with commit b5ef128926cd34dffa2a66607b9c82b902581ef8
	Issue introduced in 5.18 with commit b0eed085903e7758532696d64397901a75bba8ba and fixed in 6.12.34 with commit 59a834592dd200969fdf3c61be1cb0615c647e45
	Issue introduced in 5.18 with commit b0eed085903e7758532696d64397901a75bba8ba and fixed in 6.15.3 with commit 53e8e8e909f7c3a77857d09d2b733a42547f57ee
	Issue introduced in 5.18 with commit b0eed085903e7758532696d64397901a75bba8ba and fixed in 6.16-rc1 with commit 2777a40998deb36f96b6afc48bd397cf58a4edf0

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-2025-38283

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/vfio/pci/hisilicon/hisi_acc_vfio_pci.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/b5ef128926cd34dffa2a66607b9c82b902581ef8
	https://git.kernel.org/stable/c/59a834592dd200969fdf3c61be1cb0615c647e45
	https://git.kernel.org/stable/c/53e8e8e909f7c3a77857d09d2b733a42547f57ee
	https://git.kernel.org/stable/c/2777a40998deb36f96b6afc48bd397cf58a4edf0