Skip to main content

BootHole GRUB2 Execution Vulnerability

BootHole is a buffer overflow vulnerability in the GRUB2 boot loader used by both Linux and Windows UEFI Secure Boot operating systems. It can be exploited by an attacker with administrative rights to execute arbitrary code on a system before the OS kernel is loaded.

Report a cyber attack: call 0300 303 5222 or email [email protected]

Summary

BootHole is a buffer overflow vulnerability in the GRUB2 boot loader used by both Linux and Windows UEFI Secure Boot operating systems. It can be exploited by an attacker with administrative rights to execute arbitrary code on a system before the OS kernel is loaded.


The following platforms are also known to be affected:

Any hardware root-of-trust mechanism using UEFI Secure Boot

Threat details

Introduction

Security researchers have released details of buffer overflow vulnerability affecting the GRUB2 boot loader called BootHole. They claim that a local authenticated attacker could exploit this vulnerability to gain arbitrary code execution (ACE) capability.

The Grand Unified Bootloader

The GRand Unified Bootloader 2, or GRUB2, is an open-source multiboot-capable boot loader. A boot loader is the first software program executed when a computer system is turned on, and is responsible for loading the operating system kernel.

GRUB2 is used by almost all Linux distributions as standard, and is the default loader specified for systems using Microsoft's UEFI Certificate Authority.


Vulnerability details

BotHole is a result of a flaw in the way GRUB2 parses information contained within its configuration file, grub.cfg. This file is typically located in the EFI system partition; an area of the hard disk used to store UEFI firmware, device drivers, kernel images, and system-level utilities, and can be accessed by administrative users.

An attacker with administrative rights is able to edit grub.cfg to cause GRUB2 to arbitrarily run any code they choose before the OS kernel, such as boot kits.


Remediation advice

Most operating systems vendors have, or are in the process of, produced preliminary updates to address BootHole in their products, Affected organisations are encouraged to contact their relevant suppliers to obtain and apply the necessary updates.

Vendor with available updates (note this list may not be comprehensive):

Please note that due to the importance of GRUB2 to any OS using it, it is likely vendors will be slower to address BootHole as they ensure any updates do not adversely affect their products.



Last edited: 5 August 2020 3:14 pm