Skip to main content

This post is a translation of the Spanish original.

Debian 13.8 and the GRUB serial command that bypassed Secure Boot

Debian 13.8 brings around 150 security updates, but I'm sticking with one: a Secure Boot bypass in GRUB through a command almost nobody uses. And no, it's not a reason to turn Secure Boot off.

3 min read

Debian 13.8 and the GRUB serial command that bypassed Secure Boot

A command to configure the serial port. That's all it took for GRUB to load an unsigned module with Secure Boot enabled, while still claiming lockdown mode was on. Debian fixes it in 13.8, released on 21 November, and out of the whole changelog it's the thing that made me think the most.

What 13.8 brings

It's the eighth update of Debian 13 "trixie". It's not a new version: it bundles patches that were mostly already in the security repository and refreshes the installation images. According to 9to5Linux there are 150 security updates and 122 bug fixes. Other outlets count 139 unique advisories because the kernel shows up repeated per architecture. The exact number doesn't matter: it's a lot.

Among what lands there are patches for glibc, new Intel microcode with fixes for several processor vulnerabilities, and the installer moves to kernel 6.12.117+deb13. Debian insists that old trixie installation media is still fine. If your machine is already installed, just update:

bash
sudo apt update && sudo apt full-upgrade

And reboot, because with a new kernel, microcode and bootloader it's not optional.

The GRUB bug

CVE-2026-97876 affects GRUB 2.12 and versions before 2.16. The serial command accepts an MMIO base address for the port, and GRUB didn't check that the address actually belonged to a UART. The result: anyone who can edit the GRUB configuration can write to a memory address of their choice, for example the verifier list, and from then on modules load without signature checks. GRUB keeps reporting that lockdown is active.

The CVSS score is 6.4 and NVD lists no public exploit. It's not something to rush on a Sunday. Debian fixes it in the signed GRUB packages and bumps the SBAT revision, which is the mechanism that, over time, makes vulnerable versions of the bootloader stop being trusted even if they're signed. If you can't update yet, the suggested mitigation is to remove the serial command from the configuration when you use Secure Boot.

My take: the problem is the corners

What strikes me isn't the bug itself, but where it was. Not in signature verification, which is where everyone looks, but in a command for serial consoles that most desktop machines have never used. The secure boot chain is only as strong as the most forgotten command that's still loaded.

I know what more than one homelab person is going to think: "Secure Boot only gives me trouble with DKMS, ZFS or the NVIDIA drivers, and now on top of that it gets bypassed. I'm turning it off". I understand the argument, and it's the best one on the other side: if attacking it requires being able to edit the GRUB configuration, you almost always already have root or physical access, and at that point the game is lost.

I see it differently. Secure Boot isn't there to stop whoever is root today, but so that root doesn't settle in underneath the operating system after a reboot or a reinstall. A bug like this doesn't invalidate the idea; it shows you have to keep it up to date, the same way a firewall with a badly placed rule doesn't convince you to remove the firewall. Signing your modules with a MOK key is a bit of work, once. Regaining trust in a server with a bootkit has no reasonable fix.

What I am noting down is to check what's in my grub.cfg files that I don't need. If a machine has no serial console, it makes no sense for the bootloader to be ready to configure one.

How many of you running Debian at home have Secure Boot enabled, and how many turned it off on day one and never looked again?

Sources

David González Lombraña

Apuntes, laboratorio y proyectos de IA, Linux y redes.