{"id":"CVE-2026-98283","aliases":["CVE-2026-98283"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: PPC: Book3S HV: fix use-after-free in kvmhv_emulate_tlbie_all_lpid()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: PPC: Book3S HV: fix use-after-free in kvmhv_emulate_tlbie_all_lpid()\n\nkvmhv_emulate_tlbie_all_lpid() iterates the nested-guest IDR and drops\nmmu_lock before calling kvmhv_emulate_tlbie_lpid(), but does not hold a\nreference on the kvm_nested_guest pointer obtained from the IDR.  A\nconcurrent vCPU issuing a single-LPID tlbie (is=2, ric=2) can race\nthrough kvmhv_flush_nested() -> kvmhv_remove_nested() -> idr_remove /\n--refcnt -> kvmhv_release_nested() -> kfree(gp) in that window, leaving\nthe iterating vCPU with a dangling pointer.  The subsequent\nmutex_lock(&gp->tlb_lock) and accesses to gp->shadow_pgtable,\ngp->shadow_lpid and gp->l1_host all touch freed memory.  The free path\nis fully L1-controlled.\n\nFix this by incrementing gp->refcnt inside the loop before dropping\nmmu_lock, mirroring what kvmhv_get_nested() does, and releasing the\nreference with kvmhv_put_nested() after the per-guest work completes.\nThis is the same get/put discipline already used at every other\ncall site that drops mmu_lock while holding a nested-guest pointer.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: PPC: Book3S HV: fix use-after-free in kvmhv_emulate_tlbie_all_lpid()\n\nkvmhv_emulate_tlbie_all_lpid() iterates the nested-guest IDR and drops\nmmu_lock before calling kvmhv_emulate_tlbie_lpid(), but does not hold a\nreference on the kvm_nested_guest pointer obtained from the IDR.  A\nconcurrent vCPU issuing a single-LPID tlbie (is=2, ric=2) can race\nthrough kvmhv_flush_nested() -> kvmhv_remove_nested() -> idr_remove /\n--refcnt -> kvmhv_release_nested() -> kfree(gp) in that window, leaving\nthe iterating vCPU with a dangling pointer.  The subsequent\nmutex_lock(&gp->tlb_lock) and accesses to gp->shadow_pgtable,\ngp->shadow_lpid and gp->l1_host all touch freed memory.  The free path\nis fully L1-controlled.\n\nFix this by incrementing gp->refcnt inside the loop before dropping\nmmu_lock, mirroring what kvmhv_get_nested() does, and releasing the\nreference with kvmhv_put_nested() after the per-guest work completes.\nThis is the same get/put discipline already used at every other\ncall site that drops mmu_lock while holding a nested-guest pointer.","source":"cvelist"}],"published":"2026-10-06T08:45:44.593Z","modified":"2026-10-19T10:18:29.817Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"e3b6b4661527e821ffbe3db83952fdb1e6e47c49","fixed":"4d8f7b1f586375df8bce23a0909566ad5e852259","status":"affected"},{"type":"git","introduced":"e3b6b4661527e821ffbe3db83952fdb1e6e47c49","fixed":"e37fba1ba69385cff2d0e60b371ee19e7d1852d1","status":"affected"},{"type":"git","introduced":"e3b6b4661527e821ffbe3db83952fdb1e6e47c49","fixed":"24b634852413229bb8340d908b115c3365f3a247","status":"affected"},{"type":"git","introduced":"e3b6b4661527e821ffbe3db83952fdb1e6e47c49","fixed":"fbf69b7d0555ee83c871f58750770f74b7179ad1","status":"affected"},{"type":"git","introduced":"e3b6b4661527e821ffbe3db83952fdb1e6e47c49","fixed":"ec2d7a52b3996ae81131617b4afc0af31583c1b4","status":"affected"},{"type":"git","introduced":"e3b6b4661527e821ffbe3db83952fdb1e6e47c49","fixed":"51938dfa8a51a4f85328413fca9b6e21f9d2d088","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.20","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.20","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/4d8f7b1f586375df8bce23a0909566ad5e852259","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e37fba1ba69385cff2d0e60b371ee19e7d1852d1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24b634852413229bb8340d908b115c3365f3a247","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbf69b7d0555ee83c871f58750770f74b7179ad1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec2d7a52b3996ae81131617b4afc0af31583c1b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51938dfa8a51a4f85328413fca9b6e21f9d2d088","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98283","url":"https://www.cve.org/CVERecord?id=CVE-2026-98283","licence":"CVE Terms of Use","modified":"2026-10-19T09:16:54.747Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98283","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98283","licence":"Public domain","modified":"2026-10-19T10:18:29.817Z"}],"updatedAt":"2026-11-25T22:59:42.316Z","epss":{"score":0.00126,"percentile":0.02429,"date":"2026-12-01T12:00:22.000Z"}}