← All Advisories
Reported from OT-Advisories.com as of

Linux Kernel KVM guest_memfd Mishandles xarray Insertion Errors When Binding a Memslot

Last refreshed2026-11-23

Status: UPDATED  |  Advisory ID: CVE-2026-99473

Key Details

CVECVE-2026-99473
CVSS Score / Version
7.0 (High) / CVSS v3.1
Updated2026-11-22
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is high; privileges required is low; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Linux Kernel

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
LinuxLinux Kernel
SubsystemsOT Supporting Infrastructure
SectorsAll Sectors

What to Know

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

KVM: guest_memfd: Gracefully handle xarray errors when binding a memslot

If inserting a memslot into a guest_memfd's bindings xarray fails,

propagate the error back to the caller, i.e. fail memslot creation as well.

Signalling success and continuing on with memslot creation results in

use-after-free, as the guest_memfd instance will remain reachable via the

memslot after the file is freed (kvm_gmem_release() won't nullify the file

pointer due to lack of a valid binding).

Opportunistically WARN and reject binding if KVM_MEMSLOT_GMEM_ONLY is

already set, partly to guard against goofs elsewhere, but mostly so that

KVM doesn't need to worry about clobbering flags when unwinding on failure.

Regarding the unwind, the slot must be fully prepared before inserting it

into the bindings, at which point the slot becomes reachable. I.e. waiting

to update the slot in order to avoid the ugly unwind isn't an option. And

as part of the unwind, explicitly nullify the relevant bindings, as xarray

can store a subset of entries when populating a range. (NVD)

What to Do

Monitor Linux's web page for any future patch releases.

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-99473
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-99473
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.