CVE-2021-40153
Rocky Linux vulnerability analysis and mitigation

Overview

CVE-2021-40153 is a security vulnerability discovered in Squashfs-Tools 4.5, affecting the squashfs_opendir function in unsquash-1.c. The vulnerability was identified on August 27, 2021. The issue occurs because the filename in the directory entry is not validated for traversal outside of the destination directory during the unsquash process, allowing files to be written to locations outside of the intended destination (NVD, Ubuntu).

Technical details

The vulnerability has a CVSS v3.1 Base Score of 8.1 (High) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H. The issue specifically affects the squashfs_opendir function which stores filenames in directory entries without proper validation. This allows an attacker to create malicious squashfs images containing files with names that include path traversal sequences like '../' (Github Issue, NVD).

Impact

When exploited, this vulnerability allows an attacker to write files to arbitrary locations outside the intended destination directory. For example, an attacker could write to sensitive system files like /etc/crontab, potentially leading to code execution. The vulnerability affects both file integrity and availability of the system (Github Issue).

Mitigation and workarounds

The vulnerability was fixed in Squashfs-Tools 4.5 by adding validation checks for filenames. The fix includes checking for invalid characters and path traversal sequences in filenames. Multiple distributions have released security updates: Debian fixed it in version 1:4.3-12+deb10u1 for oldstable and 1:4.4-2+deb11u1 for stable, Fedora released version 4.5-2.fc34, and Ubuntu provided fixes across multiple versions (Debian Security, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Rocky Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-0891HIGH8.1
  • Mozilla FirefoxMozilla Firefox
  • MozillaFirefox-devel
NoYesJan 13, 2026
CVE-2025-24528HIGH7.1
  • KerberosKerberos
  • libkadm5
NoYesJan 16, 2026
CVE-2026-0890MEDIUM5.4
  • Mozilla FirefoxMozilla Firefox
  • MozillaFirefox-devel
NoYesJan 13, 2026
CVE-2026-0886MEDIUM5.3
  • Mozilla FirefoxMozilla Firefox
  • MozillaFirefox
NoYesJan 13, 2026
CVE-2026-0887MEDIUM4.3
  • Mozilla FirefoxMozilla Firefox
  • firefox
NoYesJan 13, 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