CVE-2021-3802
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-3802 is a vulnerability discovered in udisks2, a service used to access and manipulate storage devices. The vulnerability was disclosed on November 29, 2021. The flaw affects the mount helpers of various Linux distributions and desktop environments, including Linux kernel 5.13.4-arch1-1, gio glib2 2.68.3-1, kio 5.84.0-2, and udisks2 2.9.2-1 (SYSS Advisory).

Technical details

The vulnerability exists in the way ext2/3/4 file systems handle the 's_errors' flag in the superblock, which contains metadata about the file system. When this flag is set to trigger a kernel panic upon encountering errors, and combined with a manually introduced error in the file system image, it can lead to an automatic denial of service upon mounting. This behavior affects multiple desktop environments including KDE, XFCE, and GNOME, both through GUI/file manager and directly with 'gio(1)' or 'udisksctl(1)' (SYSS Advisory).

Impact

The vulnerability allows an attacker to cause a denial of service through a system crash by mounting a corrupted or specially crafted ext2/3/4 device or image. This is particularly concerning in environments where storage media like USB sticks are automatically mounted upon connection, or where unprivileged users can trigger mounts (Debian LTS).

Mitigation and workarounds

The issue has been fixed in udisks2 version 2.9.4. The recommended mitigation is to explicitly specify the mount option 'errors=' which overrides the field value set in the file system itself. For example, using 'errors=remount-ro' will cause the file system to be remounted read-only in case of errors instead of triggering a kernel panic. Users should also treat unknown file system images as unsafe and run 'fsck' before mounting to ensure they don't contain any errors (SYSS Advisory).

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