Commit a72c682
x86/sev: Check for user-space IOIO pointing to kernel space
jira VULN-6719
cve CVE-2023-46813
commit-author Joerg Roedel <jroedel@suse.de>
commit 63e44bc
Check the memory operand of INS/OUTS before emulating the instruction.
The #VC exception can get raised from user-space, but the memory operand
can be manipulated to access kernel memory before the emulation actually
begins and after the exception handler has run.
[ bp: Massage commit message. ]
Fixes: 597cfe4 ("x86/boot/compressed/64: Setup a GHCB-based VC Exception handler")
Reported-by: Tom Dohrmann <erbse.13@gmx.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
(cherry picked from commit 63e44bc)
Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>1 parent 88cf2d1 commit a72c682
2 files changed
+34
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 | | |
112 | 117 | | |
113 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
602 | 619 | | |
603 | 620 | | |
604 | 621 | | |
605 | 622 | | |
606 | 623 | | |
607 | 624 | | |
608 | 625 | | |
609 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
610 | 632 | | |
611 | 633 | | |
612 | 634 | | |
| |||
627 | 649 | | |
628 | 650 | | |
629 | 651 | | |
630 | | - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
631 | 658 | | |
632 | 659 | | |
633 | 660 | | |
| |||
0 commit comments