CVE-2025-21872: Linux kernel · efi: Don't map the entire mokvar table to determine its size
Affects Linux kernelSource GCVE Database
Not known to be exploited.
Data as of 30 Oct 2026, 14:18 UTC
Rated Medium by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Thin evidence
One scorer or noneExploitation evidence
Disclosed: evidence found.
CVE published 27 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel by modifying the efi_mokvar_table_init() function. Users should apply the updated kernel version containing this fix. No additional mitigation steps are required beyond applying the official patch.
Description
A vulnerability in the Linux kernel's EFI mokvar table handling was fixed by changing how the table is mapped during initialization. Previously, the entire mokvar table was mapped repeatedly to determine its size, which could fail and cause kernel warnings and tracebacks when the table was large. The fix involves mapping only each entry header individually and enforcing NUL termination of variable names, avoiding the need to map the entire table.
References
- git.kernel.org/stable/c/46c0454ffb78ce9d3355a3cccac86383ea8ddd55 (opens in a new tab)
- git.kernel.org/stable/c/f17a72ac7dd6f9469c9e6185bdbb22dbb744dd74 (opens in a new tab)
- git.kernel.org/stable/c/ea3f0b362dfe4ef885ef812bfaf4088176422c91 (opens in a new tab)
- git.kernel.org/stable/c/65f4aebb8127708ba668dd938e83b8558abfc5cd (opens in a new tab)
- git.kernel.org/stable/c/97bd560b6cc4c26386a53b4881bf03e96f9ba03a (opens in a new tab)
- git.kernel.org/stable/c/2b90e7ace79774a3540ce569e000388f8d22c9e0 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00030.html (opens in a new tab)