Skip to content

KVM: fixes for CVE-2026-46113 and related issues

Kenta Akagi kvm lkml stable 2 versions – Applied

Status from this message: Queued the series for 5.15, thanks. Patches 07 and 08 are David

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 2 repliesApplied
  2. v37 patches 5 repliesSuperseded

Changes in v4 from the cover letter

- Added patches 3-6 to backport the change from gpte_is_8_bytes to has_4_byte_gpte.
- Adjusted patches 7-8 (patches 3/7 and 4/7 in v3) accordingly.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/11KVM: x86/mmu: Use a bool for directarch/x86/kvm/mmu/mmu.c+2 -20 replies
2/11KVM: x86/mmu: Stop passing "direct" to mmu_alloc_root()arch/x86/kvm/mmu/mmu.c+6 -50 replies
3/11KVM: MMU: update comment on the number of page role combinationsarch/x86/include/asm/kvm_host.h+18 -120 replies
4/11KVM: X86: Remove useless code to set role.gpte_is_8_bytes when role.directarch/x86/kvm/mmu/mmu.c+0 -20 replies
5/11KVM: X86: Calculate quadrant when !role.gpte_is_8_bytesarch/x86/kvm/mmu/mmu.c+1 -10 replies
6/11KVM: X86: Rename gpte_is_8_bytes to has_4_byte_gpte and invert the directionDocumentation/virt/kvm/mmu.rst arch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c +2 more+16 -160 replies
7/11KVM: x86/mmu: Derive shadow MMU page role from parentarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+71 -350 replies
8/11KVM: x86/mmu: Always pass 0 for @quadrant when gptes are 8 bytesarch/x86/kvm/mmu/mmu.c+14 -60 replies
9/11KVM: x86/mmu: pull call to drop_large_spte() into __link_shadow_page()arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+40 -380 replies
10/11KVM: x86: Fix shadow paging use-after-free due to unexpected GFNarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/spte.h+19 -190 replies
11/11KVM: x86: Fix shadow paging use-after-free due to unexpected rolearch/x86/kvm/mmu/mmu.c+6 -40 replies

Reviews trailers per patch

3 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLai JiangshanSean ChristophersonPeter Xu
SeriesA-b
1/11R-b R-b
2/11
3/11
4/11
5/11
6/11
7/11R-b
8/11
9/11R-b
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH 5.15.y v4 00/11] KVM: fixes for CVE-2026-46113 and related issues

This is a backport of the CVE-2026-46113 and CVE-2026-53359 fixes to 5.15.y.

v2: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/stable/[email protected]/

Changes from v3:
- Added patches 3-6 to backport the change from gpte_is_8_bytes to has_4_byte_gpte.
- Adjusted patches 7-8 (patches 3/7 and 4/7 in v3) accordingly.

A regression has been reported in the backport of commit 0cb2af2ea66a ("KVM: x86: Fix shadow paging use-after-free due to unexpected GFN") [1], but the corresponding fix has already been merged into 5.15.218 [2].

[1] https://lore.kernel.org/kvm/[email protected]/
[2] https://lore.kernel.org/stable/[email protected]/

David Matlack (2):
KVM: x86/mmu: Use a bool for direct
KVM: x86/mmu: Stop passing "direct" to mmu_alloc_root()

Lai Jiangshan (3):
KVM: X86: Remove useless code to set role.gpte_is_8_bytes when
role.direct
KVM: X86: Calculate quadrant when !role.gpte_is_8_bytes
KVM: X86: Rename gpte_is_8_bytes to has_4_byte_gpte and invert the
direction

Paolo Bonzini (5):
KVM: MMU: update comment on the number of page role combinations
KVM: x86/mmu: Derive shadow MMU page role from parent
KVM: x86/mmu: Always pass 0 for @quadrant when gptes are 8 bytes
KVM: x86/mmu: pull call to drop_large_spte() into __link_shadow_page()
KVM: x86: Fix shadow paging use-after-free due to unexpected role

Sean Christopherson (1):
KVM: x86: Fix shadow paging use-after-free due to unexpected GFN

 Documentation/virt/kvm/mmu.rst  |   8 +-
 arch/x86/include/asm/kvm_host.h |  32 +++---
 arch/x86/kvm/mmu/mmu.c          | 184 ++++++++++++++++++++------------
 arch/x86/kvm/mmu/mmutrace.h     |   2 +-
 arch/x86/kvm/mmu/paging_tmpl.h  |  32 +++---
 arch/x86/kvm/mmu/spte.h         |   5 +
 arch/x86/kvm/mmu/tdp_mmu.c      |   2 +-
 7 files changed, 159 insertions(+), 106 deletions(-)
Signature · 1 line
2.53.0