CVE-2026-80895
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/09/2026
Last modified:
04/09/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
mshv: Order pt_vp_array publish against irqfd assertion path<br />
<br />
mshv_partition_ioctl_create_vp() initialises a VP struct (allocations,<br />
mutex_init, init_waitqueue_head, page mappings) and then publishes the<br />
pointer into partition->pt_vp_array. Several ISR paths read this array<br />
locklessly: the intercept ISR, the two scheduler ISRs, and<br />
mshv_try_assert_irq_fast() on the irqfd fast path.<br />
<br />
Of these, only mshv_try_assert_irq_fast() can structurally race the<br />
publish. It runs from an eventfd waker without holding pt_mutex, and<br />
MSHV_IRQFD does not require the target lapic_apic_id (== vp_index) to<br />
refer to an existing VP at registration time. A user can therefore<br />
register an irqfd targeting a yet-to-be-created VP, then trigger<br />
mshv_try_assert_irq_fast() concurrently with MSHV_CREATE_VP for the<br />
same index. On weakly-ordered architectures the reader can observe a<br />
non-NULL pointer in pt_vp_array before the initialising stores to the<br />
VP struct become visible, leading to use of partially-initialised<br />
fields (e.g. vp_register_page).<br />
<br />
The other ISR readers cannot reach this race: the hypervisor will not<br />
generate intercept or scheduler messages for a VP that has never been<br />
told to run, and the user can only call MSHV_RUN_VP on the VP fd<br />
returned by MSHV_CREATE_VP, which by construction is returned after<br />
the publish. Leave those readers as plain loads.<br />
<br />
Use smp_store_release() in mshv_partition_ioctl_create_vp() to publish<br />
the pointer, and pair it with smp_load_acquire() in<br />
mshv_try_assert_irq_fast(). On x86 these compile to plain accesses<br />
under TSO; on ARM64 they emit one-instruction acquire/release barriers,<br />
acceptable on this fast path.<br />
<br />
The destroy-side path (destroy_partition() clearing pt_vp_array[i] to<br />
NULL after kfree(vp)) has a separate ordering and lifetime concern<br />
that is out of scope here.


