CVE-2026-80895

Source
https://cve.org/CVERecord?id=CVE-2026-80895
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80895.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-80895
Downstream
Published
2026-09-04T17:11:10.880Z
Modified
2026-09-06T03:47:08.311347506Z
Summary
mshv: Order pt_vp_array publish against irqfd assertion path
Details

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

mshv: Order ptvparray publish against irqfd assertion path

mshvpartitionioctlcreatevp() initialises a VP struct (allocations, mutexinit, initwaitqueuehead, page mappings) and then publishes the pointer into partition->ptvparray. Several ISR paths read this array locklessly: the intercept ISR, the two scheduler ISRs, and mshvtryassertirq_fast() on the irqfd fast path.

Of these, only mshvtryassertirqfast() can structurally race the publish. It runs from an eventfd waker without holding ptmutex, and MSHVIRQFD does not require the target lapicapicid (== vpindex) to refer to an existing VP at registration time. A user can therefore register an irqfd targeting a yet-to-be-created VP, then trigger mshvtryassertirqfast() concurrently with MSHVCREATEVP for the same index. On weakly-ordered architectures the reader can observe a non-NULL pointer in ptvparray before the initialising stores to the VP struct become visible, leading to use of partially-initialised fields (e.g. vpregister_page).

The other ISR readers cannot reach this race: the hypervisor will not generate intercept or scheduler messages for a VP that has never been told to run, and the user can only call MSHVRUNVP on the VP fd returned by MSHVCREATEVP, which by construction is returned after the publish. Leave those readers as plain loads.

Use smpstorerelease() in mshvpartitionioctlcreatevp() to publish the pointer, and pair it with smploadacquire() in mshvtryassertirqfast(). On x86 these compile to plain accesses under TSO; on ARM64 they emit one-instruction acquire/release barriers, acceptable on this fast path.

The destroy-side path (destroypartition() clearing ptvp_array[i] to NULL after kfree(vp)) has a separate ordering and lifetime concern that is out of scope here.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80895.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
621191d709b14882270dfd8ea5d7d6cdfebe2c35
Fixed
062aa5dcc49a9ad96726a80c2a0ab0a1233bc2b9
Fixed
eba2bf5daa7933f94c53ebbbf0f567d4274716df
Fixed
b098dc869219c15dc49bf9cf63fb5fc1481d3373

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80895.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.18.44
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80895.json"