# CVE-2026-99340: KVM: x86: Take SRCU in kvm\_zap\_gfn\_range()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-19 · Modified: 2026-11-22
- Aliases: DEBIAN-CVE-2026-99340, UBUNTU-CVE-2026-99340, CGA-5ppj-qrhg-vv7v, CGA-674j-4pp4-w7jg, CGA-7xq6-2q8j-mjxv, CGA-984c-3gr8-q7fq, CGA-9x47-j55q-phpm, CGA-g9gf-q4gx-ppcr, CGA-p3mm-447w-gvxr, CGA-qvw2-gfjc-6wjv, CGA-rq4f-455v-mmg2, CGA-wrrg-jph7-6cm9, CGA-x75c-3fwc-mfw8, CGA-4mqw-xf3x-r6jw, CGA-chj9-xqwr-ccpr, CGA-fjv4-hf2r-g92g, CGA-jw4x-fv8f-qggr, CGA-rwm8-r7jm-7j6j, CGA-v22j-j5r6-8wq6, CGA-w9wr-w235-q493, CGA-rwmh-cfcq-vgpj
- Record: https://cvemate.com/vulnerability/CVE-2026-99340 · JSON: https://cvemate.com/vulnerability/CVE-2026-99340/json

## Description

```text
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().
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.192%, percentile 9.234%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 155)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): \< 6.12.117-1 \| \< 7.3.3-1
- debian linux-6.12 (Debian): \< 6.12.117-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/9d119b4921ac74bc606917fd274c10c966fa5b72>
- <https://git.kernel.org/stable/c/ec9df57c8e00f189d58d927cc9a1f49592f687af>
- <https://git.kernel.org/stable/c/e34057e59ed784a37657835aac9f54eec0864342>
- <https://git.kernel.org/stable/c/b59a87c1ba3c347e8aec5f932eb7abf13064fd62>
- <https://security-tracker.debian.org/tracker/CVE-2026-99340>
- <https://ubuntu.com/security/CVE-2026-99340>
- <https://www.cve.org/CVERecord?id=CVE-2026-99340>
- <https://git.kernel.org/linus/b59a87c1ba3c347e8aec5f932eb7abf13064fd62>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99340.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-99340>
- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git>

---

Data as of 2026-12-05T03:56:41.451Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
