{"id":"CVE-2026-89913","aliases":["CVE-2026-89913"],"related":[],"kind":"vulnerability","state":"published","title":"KVM: arm64: vgic-v3: take an LPI reference in vgic_v3_save_pending_tables","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: arm64: vgic-v3: take an LPI reference in vgic_v3_save_pending_tables\n\nvgic_v3_save_pending_tables() iterates dist->lpi_xa using xa_for_each()\nand dereferences the returned struct vgic_irq in the loop body without\nholding a reference on the LPI.\n\nThe xarray iterator only provides temporary RCU coverage while looking up\nthe current entry. That is not sufficient for this loop body, which reads\nfields from struct vgic_irq and performs guest memory accesses before the\niteration completes.\n\nA concurrent path can trigger this race: the irqfd cached injection path\n(vgic_its_inject_cached_translation) obtains a transient LPI reference\nvia vgic_its_check_cache() without holding kvm->lock, vcpu->mutex,\nconfig_lock, or its_lock. If guest ITS DISCARD then drops the cache and\nITE references under its_lock, the transient inject reference may become\nthe final one. When vgic_put_irq() drops it, the LPI is erased from\nlpi_xa and freed via kfree_rcu(). Meanwhile, vgic_v3_save_pending_tables()\nmay still hold a stale pointer obtained from the xarray iterator and\ndereference it after the RCU grace period completes.\n\nFix this by re-fetching each iterated LPI via vgic_get_irq(), which takes\na stable reference, and dropping it with vgic_put_irq() on all paths.\nThis matches the pattern already used by other lpi_xa iterators in the\nvgic ITS code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: arm64: vgic-v3: take an LPI reference in vgic_v3_save_pending_tables\n\nvgic_v3_save_pending_tables() iterates dist->lpi_xa using xa_for_each()\nand dereferences the returned struct vgic_irq in the loop body without\nholding a reference on the LPI.\n\nThe xarray iterator only provides temporary RCU coverage while looking up\nthe current entry. That is not sufficient for this loop body, which reads\nfields from struct vgic_irq and performs guest memory accesses before the\niteration completes.\n\nA concurrent path can trigger this race: the irqfd cached injection path\n(vgic_its_inject_cached_translation) obtains a transient LPI reference\nvia vgic_its_check_cache() without holding kvm->lock, vcpu->mutex,\nconfig_lock, or its_lock. If guest ITS DISCARD then drops the cache and\nITE references under its_lock, the transient inject reference may become\nthe final one. When vgic_put_irq() drops it, the LPI is erased from\nlpi_xa and freed via kfree_rcu(). Meanwhile, vgic_v3_save_pending_tables()\nmay still hold a stale pointer obtained from the xarray iterator and\ndereference it after the RCU grace period completes.\n\nFix this by re-fetching each iterated LPI via vgic_get_irq(), which takes\na stable reference, and dropping it with vgic_put_irq() on all paths.\nThis matches the pattern already used by other lpi_xa iterators in the\nvgic ITS code.","source":"cvelist"}],"published":"2026-09-16T10:32:09.947Z","modified":"2026-10-21T13:20:31.833Z","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":"280771252c1bae0947215c59fb9ea6a8d9f8399d","fixed":"4000462866bc71f16d1bfb3cf8e969f95150cd64","status":"affected"},{"type":"git","introduced":"280771252c1bae0947215c59fb9ea6a8d9f8399d","fixed":"7631f95297560157d3a9283cb999e3be00103348","status":"affected"},{"type":"git","introduced":"280771252c1bae0947215c59fb9ea6a8d9f8399d","fixed":"d3a2d20b7248ea67465af1cf79c79f90ff70926c","status":"affected"},{"type":"git","introduced":"280771252c1bae0947215c59fb9ea6a8d9f8399d","fixed":"f5b8f203bfc07a5a257dff859e66d2c500f9f509","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.5","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/4000462866bc71f16d1bfb3cf8e969f95150cd64","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7631f95297560157d3a9283cb999e3be00103348","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3a2d20b7248ea67465af1cf79c79f90ff70926c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5b8f203bfc07a5a257dff859e66d2c500f9f509","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89913","url":"https://www.cve.org/CVERecord?id=CVE-2026-89913","licence":"CVE Terms of Use","modified":"2026-10-21T12:49:08.468Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89913","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89913","licence":"Public domain","modified":"2026-10-21T13:20:31.833Z"}],"updatedAt":"2026-11-25T22:59:38.976Z","epss":{"score":0.0019,"percentile":0.09099,"date":"2026-12-02T12:00:21.000Z"}}