GRUB2 and Secure Boot: a new vulnerability named BootHole is discovered

GRUB2 BootHole logo

Nothing out of the ordinary, no drama… But another vulnerability has been discovered , CVE-2020-10713, affecting the GRUB2 bootloader and Secure Boot . A publication from the Eclypsium research team is behind this discovery, which they've dubbed BootHole. Even Microsoft has published a post on its security portal warning about it and stating that there's no easy fix at the moment.

BootHole is a buffer overflow vulnerability affecting billions of devices running GRUB2, and even some non-GRUB2 devices using Secure Boot, such as Windows. It has a CVSS system score of 8.2 out of 10, indicating a high risk. An attacker could exploit this vulnerability to execute arbitrary code (including malware) introduced during the boot process, even with Secure Boot enabled.

Network devices , servers, workstations, desktops and laptops, as well as other devices such as SBCs, certain mobile devices, IoT devices, etc., would be affected.

Why have I started with zero dramas? Simple, these news alerts users, but you should not worry excessively. In the "real" world, this vulnerability is not so easy to exploit. It does not allow remote code execution, otherwise it would be critical and not serious. You must be more calm because in order for malicious code to be executed, the attacker would have to have physical access to the affected computer and also have privileges.

Furthermore, according to Eclypsium, it will be difficult to mitigate and a solution will take time to find. It will require a thorough overhaul of bootloaders, and vendors should release new versions of bootloaders signed by the UEFI CA. Coordinated efforts between developers in the open-source community and collaboration from Microsoft and other owners of affected systems will be required to eliminate BootHole.

In fact, they have compiled a list of tasks to fix BootHole in GRUB2, and it requires:

  • Patch to update GRUB2 and eliminate the vulnerability.
  • That the developers of Linux distributions and other vendors release the updates for their users. Both at the level of GRUB2, installers and shims.
  • The new shims have to be signed by the Microsoft UEFI CA for third parties.
  • Administrators of operating systems will obviously have to update. But it must include both the installed system, installer images and also recovery or boot media that they have created.
  • The UEFI Revocation List (dbx) will also need to be updated in the firmware of each affected system to prevent code execution during boot.

The worst part is that when it comes to firmware, you have to tread carefully and be cautious to avoid ending up with problems and having your computers "bricked".

Currently, companies like Red Hat, HP, Debian, SUSE, Canonical, Oracle, Microsoft, VMware, Citrix, the UEFI Security Response Team, and OEMs, as well as software vendors, are already working to fix it . However, we'll have to wait to see the first patches.

UPGRADE

But underestimating the effectiveness of the developers and the community would be foolish. Several patch candidates to mitigate this issue are already coming from companies like Red Hat, Canonical, and others. They've made this problem a top priority, and it's paying off.

The problem? The problem is that these patches are creating additional problems. It reminds me of what happened with the patches for Metldown and Spectre, where sometimes the cure is worse than the disease…


Add as preferred source in Google