GHSA-QW96-MW3Q-23QQ

Vulnerability from github – Published: 2026-11-19 15:31 – Updated: 2026-11-22 12:31
VLAI
Details

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

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99340"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-19T15:17:45Z",
    "severity": "HIGH"
  },
  "details": "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-\u003esrcu (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-\u003esrcu critical section is fine; the\nhelper uses a local index. Drop the now-redundant SRCU pair from\n__kvm_set_or_clear_apicv_inhibit().",
  "id": "GHSA-qw96-mw3q-23qq",
  "modified": "2026-11-22T12:31:12Z",
  "published": "2026-11-19T15:31:21Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99340"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9d119b4921ac74bc606917fd274c10c966fa5b72"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b59a87c1ba3c347e8aec5f932eb7abf13064fd62"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e34057e59ed784a37657835aac9f54eec0864342"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ec9df57c8e00f189d58d927cc9a1f49592f687af"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…