CVE-2026-99340
published high CVSS 3.1 · 7.8KVM: x86: Take SRCU in kvm_zap_gfn_range()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux362ff6dca5416e20646badf09394b9a8bfc000db to < 9d119b4921ac74bc606917fd274c10c966fa5b72 · 362ff6dca5416e20646badf09394b9a8bfc000db to < ec9df57c8e00f189d58d927cc9a1f49592f687af · 362ff6dca5416e20646badf09394b9a8bfc000db to < e34057e59ed784a37657835aac9f54eec0864342 · 362ff6dca5416e20646badf09394b9a8bfc000db to < b59a87c1ba3c347e8aec5f932eb7abf13064fd62 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 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 |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | 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 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 |
| 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 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Description
In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Take SRCU in kvm_zap_gfn_range() kvm_zap_gfn_range() walks memslots and rmaps and may drop mmu_lock to reschedule. Callers that do not already hold kvm->srcu (or slots_lock) can race with memslot deletion: synchronize_srcu_expedited() does not wait, kvm_free_memslot() frees the old slot and its rmap, and the zap resumes on freed memory. The VFIO noncoherent-DMA path hits this by zapping the entire GPA space without SRCU. KASAN reported: BUG: KASAN: vmalloc-out-of-bounds in slot_rmap_walk_next+0x82/0x1c0 Read of size 8 at addr ffffc900005c1008 Call Trace: slot_rmap_walk_next+0x82/0x1c0 __kvm_rmap_zap_gfn_range+0x17a/0x280 kvm_zap_gfn_range+0x2a6/0x6a0 kvm_vfio_set_attr+0x576/0x770 kvm_device_ioctl+0x1ff/0x3b0 Take SRCU inside kvm_zap_gfn_range() so every caller is covered. Nesting with an existing kvm->srcu critical section is fine; the helper uses a local index. Drop the now-redundant SRCU pair from __kvm_set_or_clear_apicv_inhibit().
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.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - kvm_zap_gfn_range() is reached from local kvm_device_ioctl() KVM_SET_DEVICE_ATTR on the kvm-vfio fd: kvm_vfio_set_attr() calls kvm_vfio_update_coherency(), which on a noncoherent VFIO file calls kvm_arch_register_noncoherent_dma() and kvm_noncoherent_dma_assignment_start_or_stop() to zap GPA 0..~0. No remote peer supplies the raced memslot or the VFIO fd. AC:L - The VM owner allocates rmaps by entering nested EPT (nested=1): kvm_init_shadow_ept_mmu() sets root_role.direct=false, and mmu_alloc_shadow_roots() reaches memslot_rmap_alloc() via mmu_first_shadow_root_alloc(). It races KVM_SET_DEVICE_ATTR with KVM_SET_USER_MEMORY_REGION deletion. __walk_slot_rmaps() drops mmu_lock via cond_resched_rwlock_write(), so synchronize_srcu_expedited() in kvm_swap_active_memslots() returns before kvm_free_memslot(). PR:L - kvm_device_ioctl() admits the caller when dev->kvm->mm == current->mm and does not check CAP_SYS_ADMIN. vfio_group_fops_open() and vfio_device_fops_cdev_open() likewise require no admin capability for an IOMMU-backed node (CAP_SYS_RAWIO is only the noiommu case). A local VM owner who can open /dev/kvm and that VFIO node can issue both ioctls. UI:N - The attacker opens /dev/kvm, creates the KVM_DEV_TYPE_VFIO device, and issues KVM_SET_DEVICE_ATTR and KVM_SET_USER_MEMORY_REGION on fds it already holds. S:U - The use-after-free is of the host memslot rmap freed by kvm_free_memslot() during a host ioctl, so the VM-owner process corrupts host kernel memory. Guest RMP faults call sev_handle_rmp_fault() only from npf_interception() under the kvm->srcu read lock taken in kvm_arch_vcpu_ioctl_run(), which already covered that caller. C:H - slot_rmap_walk_next() resumes on the rmap vfree'd by memslot_rmap_free() and atomic_long_reads rmap->val (the reported KASAN vmalloc-out-of-bounds read of 8 bytes). kvm_zap_all_rmap_sptes() then treats a non-zero value as an SPTE pointer or a pte_list_desc and reads through it, so reclaimed rmap contents become a kernel read primitive. I:H - kvm_zap_all_rmap_sptes() cmpxchg-writes KVM_RMAP_LOCKED into the freed rmap_head, then mmu_spte_clear_track_bits() stores SHADOW_NONPRESENT_VALUE through the embedded pointer, or kmem_cache_frees the pte_list_desc chain when KVM_RMAP_MANY is set. Reclaiming the vmalloc rmap therefore yields a kernel write and free. A:H - Continuing the walk after vfree faults on the unmapped vmalloc rmap or hits the KASAN vmalloc-out-of-bounds read in slot_rmap_walk_next() from kvm_vfio_set_attr(). A reclaimed non-pointer value passed to mmu_spte_clear_track_bits() also oopses the host.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 362ff6dca5416e20646badf09394b9a8bfc000db to < 9d119b4921ac74bc606917fd274c10c966fa5b72 (affected · git)362ff6dca5416e20646badf09394b9a8bfc000db to < ec9df57c8e00f189d58d927cc9a1f49592f687af (affected · git)362ff6dca5416e20646badf09394b9a8bfc000db to < e34057e59ed784a37657835aac9f54eec0864342 (affected · git)362ff6dca5416e20646badf09394b9a8bfc000db to < b59a87c1ba3c347e8aec5f932eb7abf13064fd62 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.7 (affected)0 to < 6.7 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 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: x86: Take SRCU in kvm_zap_gfn_range()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d33fb6366fa03f4ce4ec862d5d974d72102a1e86877f1e246684c3052858e2c1
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record