Skip to contentSkip to conversation

CVE-2026-90097: Drivers: hv: vmbus: Skip VMBus module cleanup for non-nested root partition

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

In the Linux kernel, the following vulnerability has been resolved:

Drivers: hv: vmbus: Skip VMBus module cleanup for non-nested root partition

The VMBus module initialization function, hv_acpi_init(), currently does nothing when running in the root partition and root is not nested in another VM. But the initialization function reports success, so the VMBus module is indeed loaded. VMBus functionality is not actually needed, but the VMBus module must be loaded so that hv_vmbus_exists() can answer correctly. Furthermore, the mshv_root dependency on the VMBus module is needed as described in the commit message for 840b740a35bf ("mshv: Add conditional VMBus dependency").

Loading the VMBus module without actually initializing it causes failures if the module should later be unloaded. The module unload code tries to clean up things that were never initialized, resulting in memory faults and a panic.

Fix this by having VMBus module exit function perform the same check for non-nested root partition, and do nothing in such a case, just like hv_acpi_init().

In the long run, the code that manages the Hyper-V provided SynIC should be refactored to better coordinate the requirements of root partition scenarios and normal VM scenarios, and to hopefully remove the hv_vmbus_exists() dependnecy between mshv_root and VMBus modules. Preventing the current unload failure scenario is an expediency until such a refactoring is done.

The Linux kernel CVE team has assigned CVE-2026-90097 to this issue.

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

	Issue introduced in 5.12 with commit 7e279d78664aa91107ebff4b03eca367967f5908 and fixed in 6.18.52 with commit aa17842bbccaeaba7d05c166019d1c96a41bca54
	Issue introduced in 5.12 with commit 7e279d78664aa91107ebff4b03eca367967f5908 and fixed in 7.2.6 with commit 4c19c302cc577bd6b466f6d8e97971777392c2fa
	Issue introduced in 5.12 with commit 7e279d78664aa91107ebff4b03eca367967f5908 and fixed in 7.3-rc1 with commit cee0d90bceae1dee3bcc70f8d6b2ceb5b87deb42

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-2026-90097

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/hv/vmbus_drv.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/aa17842bbccaeaba7d05c166019d1c96a41bca54
	https://git.kernel.org/stable/c/4c19c302cc577bd6b466f6d8e97971777392c2fa
	https://git.kernel.org/stable/c/cee0d90bceae1dee3bcc70f8d6b2ceb5b87deb42