data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2025-21872 in the interactive tracker

CVE-2025-21872

efi: Don't map the entire mokvar table to determine its size

EPSS 0.2%

Published 2025-03-27 (19 months ago) by the Linux kernel CNA. Subsystem drivers/firmware. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2025-21872 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixiefixed6.12.19-1Update the kernel and reboot. Fixed in 6.12.19-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed6.12.19-1Update the kernel and reboot. Fixed in 6.12.19-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed6.12.19-1Update the kernel and reboot. Fixed in 6.12.19-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

Currently, when validating the mokvar table, we (re)map the entire table on each iteration of the loop, adding space as we discover new entries. If the table grows over a certain size, this fails due to limitations of early_memmap(), and we get a failure and traceback: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 0 at mm/early_ioremap.c:139 __early_ioremap+0xef/0x220 ... Call Trace: <TASK> ? __early_ioremap+0xef/0x220 ? __warn.cold+0x93/0xfa ? __early_ioremap+0xef/0x220 ? report_bug+0xff/0x140 ? early_fixup_exception+0x5d/0xb0 ? early_idt_handler_common+0x2f/0x3a ? __early_ioremap+0xef/0x220 ? efi_mokvar_table_init+0xce/0x1d0 ? setup_arch+0x864/0xc10 ? start_kernel+0x6b/0xa10 ? x86_64_start_reservations+0x24/0x30 ? x86_64_start_kernel+0xed/0xf0 ? common_startup_64+0x13e/0x141 </TASK> ---[ end trace 0000000000000000 ]--- mokvar: Failed to map EFI MOKvar config table pa=0x7c4c3000, size=265187. Mapping the entire structure isn't actually necessary, as we don't ever need more than one entry header mapped at once. Changes efi_mokvar_table_init() to only map each entry header, not the entire table, when determining the table size. Since we're not mapping any data past the variable name, it also changes the code to enforce that each variable name is NUL terminated, rather than attempting to verify it in place.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

drivers/firmware/efi/mokvar-table.c

What this is
EXTENSIBLE FIRMWARE INTERFACE (EFI)MAINTAINERS section matched on drivers/firmware/efi/ · linux-efi@vger.kernel.org · Maintained

Check it on the machine

grep -w CONFIG_LOAD_UEFI_KEYS /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

Show whether Debian builds this, per release

Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed.

  • bookwormYnot built on ppc64el/powerpc64le
  • trixieYnot built on armel/rpi, ppc64el/powerpc64le, ppc64el/powerpc64le-64k, s390x/s390x
  • forky, sidYnot built on ppc64el/powerpc64le, ppc64el/powerpc64le-64k, s390x/s390x
Y
built in where it is built at all; some flavours do not build it
Build switch
CONFIG_LOAD_UEFI_KEYS

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2025-03-27 (19 months ago)source
CVSS
no vector published, unrated
Attack vector
not published
EPSS
0.20%, higher than 9.7% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
drivers/firmware

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
5.105.10.23546c0454ffb78
5.106.6.83ea3f0b362dfe
5.106.12.1865f4aebb8127
5.106.13.697bd560b6cc4
5.106.142b90e7ace797

Debian advisories

AdvisoryDateShipped toDebian
DLA-4178-12025-05-25bullseye 5.10.237-1tracker

Why the CNA scored it this way

The kernel CNA published no CVSS vector and no reasoning for CVE-2025-21872, which is why it is shown as unrated rather than given an invented score. 6,405 of the 20,413 CVEs here carry reasoning; this is not one of them.