CVE-2023-40546
NixOS vulnerability analysis and mitigation

Overview

A vulnerability was discovered in the Shim bootloader (CVE-2023-40546) that affects the error handling mechanism when creating new ESL variables. The issue was first reported on October 2, 2023, and affects versions up to (excluding) 15.8. The vulnerability impacts various versions of Red Hat Enterprise Linux, Fedora, and Debian systems using the Shim bootloader (NVD, Red Hat).

Technical details

The vulnerability is a NULL pointer dereference error that exists in the mirror_one_esl() function within mok.c. When Shim fails to create a new ESL variable, it attempts to log an error message, but the number of parameters used by the logging function doesn't match the format string, and one of the variables may be NULL. The issue has been assigned a CVSS v3.1 base score of 5.5 (Medium) by NIST and 6.2 (Medium) by Red Hat, with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD, Bugzilla).

Impact

A successful exploitation of this vulnerability can lead to a crash of the Shim bootloader, resulting in a Denial-of-Service condition. This could prevent the system from booting properly when Secure Boot is enabled (Bugzilla).

Mitigation and workarounds

The vulnerability has been fixed in Shim version 15.8. Users are strongly advised to upgrade to this version, especially on Secure Boot enabled systems, as older versions may eventually be blocked. For Red Hat Enterprise Linux users, it's crucial to note that the new Shim version revokes ALL PREVIOUS VERSIONS of GRUB2, requiring simultaneous updates of both Shim and GRUB2 to maintain system bootability (Debian, Red Hat).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026
CVE-2026-22184MEDIUM4.6
  • NixOSNixOS
  • java-1.8.0-openjdk-demo
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management