efi: fix panic in kdump kernel
JIRA: https://issues.redhat.com/browse/RHEL-36998
CVE: CVE-2024-35800
Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=61502393
Tested: Did sanity boot testing on Intel (intel-arrowlake-s-02) system.
commit 62b71cd73d41ddac6b1760402bbe8c4932e23531
Author: Oleksandr Tymoshenko ovt@google.com
Date: Sat Mar 23 06:33:33 2024 +0000
efi: fix panic in kdump kernel
Check if get_next_variable() is actually valid pointer before
calling it. In kdump kernel this method is set to NULL that causes
panic during the kexec-ed kernel boot.
Tested with QEMU and OVMF firmware.
Fixes: bad267f9e18f ("efi: verify that variable services are supported")
Signed-off-by: Oleksandr Tymoshenko <ovt@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Steve Best sbest@redhat.com