CVE-2021-33910
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-33910 affects systemd prior to versions 246.15, 247.8, 248.5, and 249.1. The vulnerability involves a Memory Allocation with an Excessive Size Value in basic/unit-name.c, specifically in the unitnamepath_escape function that uses strdupa and alloca for pathname controlled by a local attacker. The issue was discovered by Qualys Research Labs and was introduced in systemd v220 (April 2015) (Qualys Advisory).

Technical details

The vulnerability exists in systemd's handling of mountpoint paths. When systemd monitors and parses /proc/self/mountinfo, it passes each mountpoint path through mountsetupunit(), which ultimately calls unitnamepathescape(). This function uses strdupa() to allocate memory on the stack for the pathname. If the total path length exceeds 8MB (the default RLIMITSTACK), it causes a stack exhaustion leading to a crash (Qualys Advisory).

Impact

When successfully exploited, this vulnerability results in a crash of systemd (PID 1) which leads to a kernel panic and brings down the entire operating system. Since systemd runs as the 'global init' process with PID 1, its crash forces the kernel to panic (Qualys Advisory).

Mitigation and workarounds

The vulnerability has been fixed in systemd versions 246.15, 247.8, 248.5, and 249.1. The fix involves replacing the use of strdupa() with strdup() to allocate memory on the heap instead of the stack. Users should upgrade to the fixed versions available through their distribution's package management system (Debian Advisory, Fedora Update).

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-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

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