GHSA-2R95-VJ92-8R98

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: nSVM: Reject KVM_SET_NESTED_STATE if L1 has EFER.LMA=1 && EFER.LME=0

Reject KVM_SET_NESTED_STATE if the incoming L1 host state has what is effectively an impossible EFER combination of LMA=1 but LME=0, i.e. if the state says long mode is active but not enabled. Unlike VMX, SVM doesn't have an explicit consistent check for the illegal combination; presumably hardware simply ignores EFER.LMA if EFER.LME=0.

Unfortunately, KVM doesn't ignore EFER.LMA in this case and consumes the illegal state when constructing the shadow MMU for L2. E.g. if userspace also clears CR4.PAE, then kvm_calc_cpu_role() will compute a role with 4 or 5 levels of paging, but shadow_mmu_init_context() will wire up the MMU to use the paging32 template, which maxes out its levels at 2.

Note, the "real badness" is effectively the same as what happened with the nVMX bug fixed by commit 112e66017bff ("KVM: nVMX: add missing consistency checks for CR0 and CR4"). Unfortunately, the sanity check added by commit 72e2fb24a0b0 ("KVM: x86/mmu: Bug the VM if a vCPU ends up in long mode without PAE enabled") doesn't work for this case, since L2 state is active at the time of the page fault, but it's L1 that has the bad state.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99345"
  ],
  "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: nSVM: Reject KVM_SET_NESTED_STATE if L1 has EFER.LMA=1 \u0026\u0026 EFER.LME=0\n\nReject KVM_SET_NESTED_STATE if the incoming L1 host state has what is\neffectively an impossible EFER combination of LMA=1 but LME=0, i.e. if the\nstate says long mode is active but not enabled.  Unlike VMX, SVM doesn\u0027t\nhave an explicit consistent check for the illegal combination; presumably\nhardware simply ignores EFER.LMA if EFER.LME=0.\n\nUnfortunately, KVM doesn\u0027t ignore EFER.LMA in this case and consumes the\nillegal state when constructing the shadow MMU for L2.  E.g. if userspace\nalso clears CR4.PAE, then kvm_calc_cpu_role() will compute a role with 4 or\n5 levels of paging, but shadow_mmu_init_context() will wire up the MMU to\nuse the paging32 template, which maxes out its levels at 2.\n\nNote, the \"real badness\" is effectively the same as what happened with the\nnVMX bug fixed by commit 112e66017bff (\"KVM: nVMX: add missing consistency\nchecks for CR0 and CR4\").  Unfortunately, the sanity check added by commit\n72e2fb24a0b0 (\"KVM: x86/mmu: Bug the VM if a vCPU ends up in long mode\nwithout PAE enabled\") doesn\u0027t work for this case, since L2 state is active\nat the time of the page fault, but it\u0027s L1 that has the bad state.",
  "id": "GHSA-2r95-vj92-8r98",
  "modified": "2026-11-22T12:31:13Z",
  "published": "2026-11-19T15:31:21Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99345"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5dc500a354cc8e109df678076ae3488094649468"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/81c460713ca62fa33ee1241fda1ddaf099facb32"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/98362865bb626bb5e76cede98555d7cd4fefc016"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c0b29d523ef363d1d7ccfb3199f0126b22a61f66"
    }
  ],
  "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…