CVE-2026-98468 (GCVE-0-2026-98468)
Vulnerability from cvelistv5
Published
2026-10-18 15:15
Modified
2026-10-19 09:20
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Fix spurious warning for benign stage 2 teardown race kvmtool was used to establish an L1 guest with 8 CPUs and 8 GiB of RAM, an L2 guest with 4 CPUs and 4 GiB of RAM and an L3 guest with 2 CPUs and 2 GiB of RAM, all of which was then exited. Under memory pressure in the L0 host warnings were observed due to migration triggered by compaction: WARNING: arch/arm64/kvm/mmu.c:336 at __unmap_stage2_range+0x64/0x80, CPU#5: kcompactd0/66 Which was, in turn, triggered by an MMU notifier for the host invalidation: mmu_notifier_invalidate_range_start() -> ... -> kvm_mmu_notifier_invalidate_range_start() -> kvm_mmu_unmap_gfn_range() -> kvm_unmap_gfn_range() -> kvm_nested_s2_unmap() -> kvm_stage2_unmap_range() -> __unmap_stage2_range() -> stage2_apply_range() <- -EINVAL, triggering a WARN_ON() Racing with L0's teardown of stage 2 page tables: exit_mm() -> mmput() -> __mmput() -> exit_mmap() -> mmu_notifier_release() -> ... -> kvm_mmu_notifier_release() -> kvm_flush_shadow_all() -> kvm_arch_flush_shadow_all() -> kvm_free_stage2_pgd() -> [ acquire kvm->mmu_lock for write ] -> mmu->pgt = NULL [ among other tasks ] -> [ release kvm->mmu_lock for write ] It turns out there is a benign race resulting in a spurious warning: Thread A - notify: migration | Thread B - notify: release -------------------------------|--------------------------------- < kvm->mmu_lock held > | stage2_apply_range() | get mmu->pgt, check !NULL | ... | kvm_arch_flush_shadow_all() cond_resched_rwlock_write(); | < contend, sleep kvm->mmu_lock > < drop kvm->mmu_lock > | < acquire kvm->mmu_lock> | ... | kvm_free_stage2_pgd() | mmu->pgt = NULL | < invalidate MMU > | ... | < release kvm->mmu_lock > [ scheduled ] | stage2_apply_range() | < loop to next > | get, mmu->pgt, check !NULL | is NULL, return -EINVAL | __unmap_stage2_range() | WARN_ON(-EINVAL) <--- entirely spurious - the race was handled correctly. Fix the spurious warning by updating stage2_apply_range() to no longer treat concurrent PGT teardown on lock release as an error - whether the walker is tearing down page tables or doing something else this is a legitimate reason to abort the operation without error. This keeps the warning in place for all other circumstances. In practice only __unmap_stage2_range() actually does anything with the error so this only impacts that.
Impacted products
Vendor Product Version
Linux Linux Version: ec14c272408af43d392f65f55e66f3b94fc61921
Version: ec14c272408af43d392f65f55e66f3b94fc61921
Version: ec14c272408af43d392f65f55e66f3b94fc61921
Version: ec14c272408af43d392f65f55e66f3b94fc61921
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/arm64/kvm/mmu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "f44a92633136b409ebb9b7036fceb7e11de60a20",
              "status": "affected",
              "version": "ec14c272408af43d392f65f55e66f3b94fc61921",
              "versionType": "git"
            },
            {
              "lessThan": "c23ed110d27ba99cf3a881986514f79aacedf476",
              "status": "affected",
              "version": "ec14c272408af43d392f65f55e66f3b94fc61921",
              "versionType": "git"
            },
            {
              "lessThan": "330346dda3bf5f8a3b06723024f7d906326270cf",
              "status": "affected",
              "version": "ec14c272408af43d392f65f55e66f3b94fc61921",
              "versionType": "git"
            },
            {
              "lessThan": "38b70fc453c3112f1a62583b89903ae41116cc27",
              "status": "affected",
              "version": "ec14c272408af43d392f65f55e66f3b94fc61921",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/arm64/kvm/mmu.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.11"
            },
            {
              "lessThan": "6.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.112",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.55",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.112",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.55",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.9",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: arm64: Fix spurious warning for benign stage 2 teardown race\n\nkvmtool was used to establish an L1 guest with 8 CPUs and 8 GiB of RAM, an\nL2 guest with 4 CPUs and 4 GiB of RAM and an L3 guest with 2 CPUs and 2 GiB\nof RAM, all of which was then exited.\n\nUnder memory pressure in the L0 host warnings were observed due to\nmigration triggered by compaction:\n\nWARNING: arch/arm64/kvm/mmu.c:336 at __unmap_stage2_range+0x64/0x80,\nCPU#5: kcompactd0/66\n\nWhich was, in turn, triggered by an MMU notifier for the host invalidation:\n\nmmu_notifier_invalidate_range_start()\n  -\u003e ... -\u003e kvm_mmu_notifier_invalidate_range_start()\n    -\u003e kvm_mmu_unmap_gfn_range()\n      -\u003e kvm_unmap_gfn_range()\n        -\u003e kvm_nested_s2_unmap()\n          -\u003e kvm_stage2_unmap_range()\n            -\u003e __unmap_stage2_range()\n               -\u003e stage2_apply_range()\n       \t       \u003c- -EINVAL, triggering a WARN_ON()\n\nRacing with L0\u0027s teardown of stage 2 page tables:\n\nexit_mm()\n  -\u003e mmput()\n    -\u003e __mmput()\n      -\u003e exit_mmap()\n        -\u003e mmu_notifier_release()\n\t  -\u003e ... -\u003e kvm_mmu_notifier_release()\n            -\u003e kvm_flush_shadow_all()\n              -\u003e kvm_arch_flush_shadow_all()\n\t        -\u003e kvm_free_stage2_pgd()\n\t\t  -\u003e [ acquire kvm-\u003emmu_lock for write ]\n\t\t  -\u003e mmu-\u003epgt = NULL [ among other tasks ]\n\t\t  -\u003e [ release kvm-\u003emmu_lock for write ]\n\nIt turns out there is a benign race resulting in a spurious warning:\n\n\tThread A - notify: migration   | Thread B - notify: release\n\t-------------------------------|---------------------------------\n\t\u003c kvm-\u003emmu_lock held \u003e         |\n\tstage2_apply_range()           |\n\t  get mmu-\u003epgt, check !NULL    |\n\t  ...                          | kvm_arch_flush_shadow_all()\n\t  cond_resched_rwlock_write(); |   \u003c contend, sleep kvm-\u003emmu_lock \u003e\n\t\u003c drop kvm-\u003emmu_lock \u003e         |   \u003c acquire kvm-\u003emmu_lock\u003e\n                                       |   ...\n\t\t\t\t       |   kvm_free_stage2_pgd()\n                                       |     mmu-\u003epgt = NULL\n\t\t\t\t       |   \u003c invalidate MMU \u003e\n\t\t\t\t       |   ...\n\t\t\t\t       |   \u003c release kvm-\u003emmu_lock \u003e\n\t[ scheduled ]\t\t       |\n\tstage2_apply_range()           |\n\t  \u003c loop to next \u003e             |\n\t  get, mmu-\u003epgt, check !NULL   |\n\t  is NULL, return -EINVAL      |\n        __unmap_stage2_range()         |\n\t  WARN_ON(-EINVAL) \u003c--- entirely spurious - the race was handled\n                                 correctly.\n\nFix the spurious warning by updating stage2_apply_range() to no longer\ntreat concurrent PGT teardown on lock release as an error - whether the\nwalker is tearing down page tables or doing something else this is a\nlegitimate reason to abort the operation without error.\n\nThis keeps the warning in place for all other circumstances.\n\nIn practice only __unmap_stage2_range() actually does anything with the\nerror so this only impacts that."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-10-19T09:20:06.341Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/f44a92633136b409ebb9b7036fceb7e11de60a20"
        },
        {
          "url": "https://git.kernel.org/stable/c/c23ed110d27ba99cf3a881986514f79aacedf476"
        },
        {
          "url": "https://git.kernel.org/stable/c/330346dda3bf5f8a3b06723024f7d906326270cf"
        },
        {
          "url": "https://git.kernel.org/stable/c/38b70fc453c3112f1a62583b89903ae41116cc27"
        }
      ],
      "title": "KVM: arm64: Fix spurious warning for benign stage 2 teardown race",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-98468",
    "datePublished": "2026-10-18T15:15:20.882Z",
    "dateReserved": "2026-09-25T10:25:14.351Z",
    "dateUpdated": "2026-10-19T09:20:06.341Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…