Skip to content

KVM: SVM: Fix AVIC Physical ID table UAF

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 5 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: SVM: Add paranoid helper for checking if vCPU is AVIC-addressablearch/x86/kvm/svm/avic.c+6 -21 reply
2/3KVM: SVM: Use "is AVIC-addressable" helper to sanity check load()/put()arch/x86/kvm/svm/avic.c+2 -41 reply
3/3KVM: SVM: Clear AVIC Physical ID table entry if vCPU creation failsarch/x86/kvm/svm/avic.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+14 -12 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAtish PatraNaveen N Rao (AMD)
1/3R-b
2/3R-b
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] KVM: SVM: Fix AVIC Physical ID table UAF

Naveen's fix to clear AVIC Physical ID table entries if vCPU creation fails, to ensure the CPU doesn't access the freed virtual APIC state.

v2: Add prep patches to consolidate the table bounds checks.

v1: https://lore.kernel.org/all/[email protected]

Naveen N Rao (1):
KVM: SVM: Clear AVIC Physical ID table entry if vCPU creation fails

Sean Christopherson (2):
KVM: SVM: Add paranoid helper for checking if vCPU is AVIC-addressable
KVM: SVM: Use "is AVIC-addressable" helper to sanity check

    load()/put()
 arch/x86/kvm/svm/avic.c | 22 ++++++++++++++++------
 arch/x86/kvm/svm/svm.c  |  6 +++++-
 arch/x86/kvm/svm/svm.h  |  1 +
 3 files changed, 22 insertions(+), 7 deletions(-)

base-commit: d4b7fb647204f0c81dfeae2d1a708e4d858e0c94

Signature · 1 line
2.55.0.1082.g2b9226bbc0-goog