{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99343",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99343"
  ],
  "published": "2026-11-19T15:08:37Z",
  "summary": "KVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86/mmu: Bug the VM if KVM attempts to walk more levels than the MMU has\n\nExtend the \"EFER.LMA && !CR4.PAE\" check, which exists largely to guard\nagainst KVM configuring a paging32 MMU with more than 2 levels of paging,\nwith a very explicit check for exactly that: that KVM isn't trying to walk\nmore levels of paging than the MMU template provides.  I.e. harden KVM\nagainst all bugs that would cause KVM to generates accesses beyond the\nbounds of guest_walker's arrays, regardless of how KVM ended up with the\nmisconfigured MMU.\n\nNote, don't use w->cpu_role.base.level directly as the paging64 template\nonly provides two levels of page tables for PAE paging on 32-bit hosts, and\nhandles the third level by manually emulating the PDPTR access.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.193",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99343"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/5e355f718d31145946fbe62d31f642eb990a0076"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/40730c48b8ec666cfa65522beaeca681583a0991"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/eb9ad548e9b269172ff83719f75ffdce4df2e7cf"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d6f3877eabf159167ee9972d627396412a04ac74"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/54afd548602bb96b3fbb0b4b11ccbbfeb5fb46fc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/73f427e5afd94edd5d0e7cdddc2ecc794f28c492"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/115f9405a2ed6d78ee7ad8436bdd638743f6d1d4"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.1,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - KVM_SET_NESTED_STATE in kvm_vcpu_ioctl calls svm_set_nested_state, which copies the L1 VMCB save area through svm_copy_vmrun_state into vmcb01. nested_svm_init_mmu_context passes that CR4 and EFER to kvm_init_shadow_npt_mmu, so the paging mode is chosen from ioctl payload.\nAC:L - The caller puts EFER.LMA=1, EFER.LME=0 and CR4.PAE=0 in that save area; nested_vmcb_check_save checks PAE only when LME and CR0.PG are both set. KVM_RUN then enters paging32_walk_addr_generic. Nested SVM and NPT both default on (svm.c nested=true, npt_enabled=true), and the caller supplies the VMCB, memslots and guest PTEs.\nPR:L - svm_set_nested_state runs from the KVM_SET_NESTED_STATE vCPU ioctl with no capability check. A process that can open /dev/kvm, create a VM, and set EFER.SVME in guest CPUID can issue it.\nUI:N - That same process writes the nested state and calls KVM_RUN, and paging32_walk_addr_generic runs on the vCPU it created.\nS:U - Only svm_copy_vmrun_state writes the illegal L1 EFER/CR4 into vmcb01. nested_svm_vmrun copies vcpu->arch.efer and vcpu->arch.cr4, which set_efer and kvm_set_cr4 keep consistent, so the bad role is a host-ioctl state. The overflow is in the host stack frame of paging32_walk_addr_generic.\nC:N - gpte_changed and update_accessed_dirty_bits reread out-of-range walker slots that alias prefetch_ptes, ptep_user and pt_access inside the same guest_walker, which hold the caller's PTE bytes and memslot HVA. walker.fault and the GPA returned by paging32_gva_to_gpa are filled from the faulting address and the leaf PTE.\nI:H - paging32_walk_addr_generic writes table_gfn, pte_gpa, ptep_user, ptes and pt_access at index cpu_role.base.level-1 (3 or 4) past PT_MAX_FULL_LEVELS (2). FNAME(fetch) passes the aliased table_gfn to kvm_mmu_get_shadow_page, which allocates a shadow page and write-tracks that attacker-chosen GFN.\nA:H - account_shadowed calls __kvm_write_track_add_gfn with __gfn_to_memslot's result, and update_gfn_write_track dereferences slot->arch.gfn_write_track with no NULL check, so a GFN in no memslot oopses the host. A gpte_changed mismatch instead returns RET_PF_RETRY and spins the vCPU thread."
    }
  }
}
