CVE-2026-99473
published high CVSS 3.1 · 7.0KVM: guest_memfd: Gracefully handle xarray errors when binding a memslot
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa7800aa80ea4d5356b8474c2302812e9d4926fa6 to < 2cfc1ccf67ffe96811c816d27d44128c5d5833ec · a7800aa80ea4d5356b8474c2302812e9d4926fa6 to < 1706461eb1af814366b6d0ab413edd0876bd8033 · a7800aa80ea4d5356b8474c2302812e9d4926fa6 to < 2fa83c615f8dbb240b262265e788b120b6384e7b · a7800aa80ea4d5356b8474c2302812e9d4926fa6 to < e6ecb88711d93b9e014532f17d3d29b57e80932c · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.8 (affected) · 0 to < 6.8 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 13 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - kvm_vm_ioctl() handles KVM_SET_USER_MEMORY_REGION2 by calling kvm_set_memory_region(), which calls kvm_gmem_bind() with the local guest_memfd fd. xa_store_range() fails on an internal GFP_KERNEL allocation, not on a field taken from a remote protocol message. AC:H - kvm_gmem_bind() ignores xa_store_range() on f->bindings. That returns -EINVAL only for an internal entry or last < first; a kmalloc'd slot and the KVM_MEM_MAX_NR_PAGES-capped range produce neither, leaving -ENOMEM. The xarray is xa_init()'d without XA_FLAGS_ACCOUNT and radix_tree_node is not SLAB_ACCOUNT, so this GFP_KERNEL allocation fails only after global reclaim and OOM give up, which the caller cannot force on demand. PR:L - KVM_CREATE_VM, KVM_CREATE_GUEST_MEMFD, and KVM_SET_USER_MEMORY_REGION2 are ordinary ioctls on /dev/kvm and the VM fd. kvm_dev_ioctl() and kvm_vm_ioctl() contain no capable() check, so a local user who can open /dev/kvm reaches kvm_gmem_bind() without CAP_SYS_ADMIN. UI:N - The attacker opens /dev/kvm, creates the VM and guest_memfd, and issues KVM_SET_USER_MEMORY_REGION2 itself. Closing that fd is what makes kvm_gmem_release() free the file while slot->gmem.file still points at it. No other user action is required. S:U - The use-after-free is the host process that owns the VM fd later hitting kvm_gmem_unbind() or kvm_gmem_get_pfn() on its own dangling slot->gmem.file. A guest cannot issue KVM_SET_USER_MEMORY_REGION2, so this is host privilege escalation, not a guest-to-host scope change. C:H - kvm_gmem_release() nullifies slot->gmem.file only for entries present in f->bindings. With the store dropped, close() frees the struct file and the gmem_file while the memslot keeps the pointer. kvm_gmem_get_file() then file_ref_get()s that address and __kvm_gmem_get_pfn() reads private_data from whatever file the attacker recycled into the slot. I:H - kvm_free_memslot() calls kvm_gmem_unbind(), which loads the dangling file, takes filemap_invalidate_lock() on f_mapping, and xa_store_range()s NULL through file->private_data treated as a gmem_file. Those writes land on a recycled struct file the attacker can reclaim by opening files, so the use-after-free is a kernel write, not only a crash. A:H - If the freed struct file or gmem_file is still poisoned, kvm_gmem_unbind()'s dereference of f_mapping and private_data oopses, including on the kvm_free_memslots() path when the VM fd is released. A guest fault through kvm_gmem_get_pfn() hits the same dangling pointer.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a7800aa80ea4d5356b8474c2302812e9d4926fa6 to < 2cfc1ccf67ffe96811c816d27d44128c5d5833ec (affected · git)a7800aa80ea4d5356b8474c2302812e9d4926fa6 to < 1706461eb1af814366b6d0ab413edd0876bd8033 (affected · git)a7800aa80ea4d5356b8474c2302812e9d4926fa6 to < 2fa83c615f8dbb240b262265e788b120b6384e7b (affected · git)a7800aa80ea4d5356b8474c2302812e9d4926fa6 to < e6ecb88711d93b9e014532f17d3d29b57e80932c (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.8 (affected)0 to < 6.8 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
KVM: guest_memfd: Gracefully handle xarray errors when binding a memslot
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9dbd274ef73ac6fe822626d3c8e1c0b16809e17e2ef8e953b74e4d8ac8f6ee1d
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record