]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/efi/chainloader: Use grub_loader_set_ex()
authorChris Coulson <chris.coulson@canonical.com>
Tue, 5 Apr 2022 10:48:58 +0000 (11:48 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 7 Jun 2022 14:39:31 +0000 (16:39 +0200)
commit04c86e0bb7b58fc2f913f798cdb18934933e532d
treed125ceeacb30b21caee834e03bfcfe82d8647cb7
parent14ceb3b3ff6db664649138442b6562c114dcf56e
loader/efi/chainloader: Use grub_loader_set_ex()

This ports the EFI chainloader to use grub_loader_set_ex() in order to fix
a use-after-free bug that occurs when grub_cmd_chainloader() is executed
more than once before a boot attempt is performed.

Fixes: CVE-2022-28736
Signed-off-by: Chris Coulson <chris.coulson@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/efi/chainloader.c