{"id":"CVE-2026-99340","aliases":["CVE-2026-99340"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: x86: Take SRCU in kvm_zap_gfn_range()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: Take SRCU in kvm_zap_gfn_range()\n\nkvm_zap_gfn_range() walks memslots and rmaps and may drop mmu_lock to\nreschedule. Callers that do not already hold kvm->srcu (or slots_lock)\ncan race with memslot deletion: synchronize_srcu_expedited() does not\nwait, kvm_free_memslot() frees the old slot and its rmap, and the zap\nresumes on freed memory.\n\nThe VFIO noncoherent-DMA path hits this by zapping the entire GPA\nspace without SRCU. KASAN reported:\n\n  BUG: KASAN: vmalloc-out-of-bounds in slot_rmap_walk_next+0x82/0x1c0\n  Read of size 8 at addr ffffc900005c1008\n  Call Trace:\n   slot_rmap_walk_next+0x82/0x1c0\n   __kvm_rmap_zap_gfn_range+0x17a/0x280\n   kvm_zap_gfn_range+0x2a6/0x6a0\n   kvm_vfio_set_attr+0x576/0x770\n   kvm_device_ioctl+0x1ff/0x3b0\n\nTake SRCU inside kvm_zap_gfn_range() so every caller is covered.\nNesting with an existing kvm->srcu critical section is fine; the\nhelper uses a local index. Drop the now-redundant SRCU pair from\n__kvm_set_or_clear_apicv_inhibit().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: Take SRCU in kvm_zap_gfn_range()\n\nkvm_zap_gfn_range() walks memslots and rmaps and may drop mmu_lock to\nreschedule. Callers that do not already hold kvm->srcu (or slots_lock)\ncan race with memslot deletion: synchronize_srcu_expedited() does not\nwait, kvm_free_memslot() frees the old slot and its rmap, and the zap\nresumes on freed memory.\n\nThe VFIO noncoherent-DMA path hits this by zapping the entire GPA\nspace without SRCU. KASAN reported:\n\n  BUG: KASAN: vmalloc-out-of-bounds in slot_rmap_walk_next+0x82/0x1c0\n  Read of size 8 at addr ffffc900005c1008\n  Call Trace:\n   slot_rmap_walk_next+0x82/0x1c0\n   __kvm_rmap_zap_gfn_range+0x17a/0x280\n   kvm_zap_gfn_range+0x2a6/0x6a0\n   kvm_vfio_set_attr+0x576/0x770\n   kvm_device_ioctl+0x1ff/0x3b0\n\nTake SRCU inside kvm_zap_gfn_range() so every caller is covered.\nNesting with an existing kvm->srcu critical section is fine; the\nhelper uses a local index. Drop the now-redundant SRCU pair from\n__kvm_set_or_clear_apicv_inhibit().","source":"cvelist"}],"published":"2026-11-19T14:21:48.075Z","modified":"2026-11-22T11:16:47.950Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"362ff6dca5416e20646badf09394b9a8bfc000db","fixed":"9d119b4921ac74bc606917fd274c10c966fa5b72","status":"affected"},{"type":"git","introduced":"362ff6dca5416e20646badf09394b9a8bfc000db","fixed":"ec9df57c8e00f189d58d927cc9a1f49592f687af","status":"affected"},{"type":"git","introduced":"362ff6dca5416e20646badf09394b9a8bfc000db","fixed":"e34057e59ed784a37657835aac9f54eec0864342","status":"affected"},{"type":"git","introduced":"362ff6dca5416e20646badf09394b9a8bfc000db","fixed":"b59a87c1ba3c347e8aec5f932eb7abf13064fd62","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.7","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9d119b4921ac74bc606917fd274c10c966fa5b72","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec9df57c8e00f189d58d927cc9a1f49592f687af","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e34057e59ed784a37657835aac9f54eec0864342","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b59a87c1ba3c347e8aec5f932eb7abf13064fd62","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99340","url":"https://www.cve.org/CVERecord?id=CVE-2026-99340","licence":"CVE Terms of Use","modified":"2026-11-22T11:07:44.543Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99340","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99340","licence":"Public domain","modified":"2026-11-22T11:16:47.950Z"}],"updatedAt":"2026-11-25T22:59:52.033Z","epss":{"score":0.00192,"percentile":0.09249,"date":"2026-12-01T12:00:22.000Z"}}