Skip to content

i386/tcg: Protect SMM against malicious kernel via IPI & DR

YiFei Zhu qemu-devel 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2i386/cpu: Prevent delivering SIPI during SMM in TCG modetarget/i386/cpu.c+2 -12 replies
2/2i386/tcg/smm_helper: Properly apply DR values on SMM entry / exittarget/i386/tcg/system/smm_helper.c+5 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] i386/tcg: Protect SMM against malicious kernel via IPI & DR

These two patches are fixing two separate TCG-only SMM vulnerabilities. Neither of them are reproducible with KVM, and hence are limited to "Non-virtualization Use Case" [1].

The first patch's bug is found by myself, while developing SMM challenges for CrewCTF. The second patch's bug is found by unvariant, a participant of the said CTF.

[1] https://www.qemu.org/docs/master/system/security.html#non-virtualization-use-case

YiFei Zhu (2):
i386/cpu: Prevent delivering SIPI during SMM in TCG mode i386/tcg/smm_helper: Properly apply DR values on SMM entry / exit

 target/i386/cpu.c                   |  3 ++-
 target/i386/tcg/system/smm_helper.c | 10 +++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)
Signature · 1 line
2.51.0.536.g15c5d4f767-goog