CVEfocus › CVE database › CVE-2021-41072

CVE-2021-41072

EPSS 2.3% (higher than 84% of CVEs)Published 2021-09-14Updated 2024-08-04Assigner: mitre

squashfs_opendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153. A squashfs filesystem that has been crafted to include a symbolic link and then contents under the same filename in a filesystem can cause unsquashfs to first create the symbolic link pointing outside the expected directory, and then the subsequent write operation will cause the unsquashfs process to write through the symbolic link elsewhere in the filesystem.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

23Fixed
2Fix pending
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04squashfs-toolsFixed1:4.4-2ubuntu2UBUNTU-CVE-2021-41072
Ubuntu 20.04squashfs-toolsFixed1:4.4-1ubuntu0.3UBUNTU-CVE-2021-41072
Ubuntu 18.04squashfs-toolsFixed1:4.3-6ubuntu0.18.04.4UBUNTU-CVE-2021-41072
Ubuntu 16.04squashfs-toolsFix pending1:4.3-3ubuntu2.16.04.3+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-41072
Ubuntu 14.04squashfs-toolsFix pending
Debian 14squashfs-toolsFixed1:4.5-3DEBIAN-CVE-2021-41072
Debian 13squashfs-toolsFixed1:4.5-3DEBIAN-CVE-2021-41072
Debian 12squashfs-toolsFixed1:4.5-3DEBIAN-CVE-2021-41072
Red Hat Enterprise Linux 9squashfs-toolsFixed0:4.4-10.git1.el9RHSA-2024:2396
Red Hat Enterprise Linux 8squashfs-toolsFixed0:4.3-21.el8RHSA-2024:3139
Red Hat Enterprise Linux 7squashfs-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 6squashfs-toolsWill not fix
Out of support scope
AlmaLinux 9squashfs-toolsFixed4.4-10.git1.el9ALSA-2024:2396
AlmaLinux 8squashfs-toolsFixed4.3-21.el8ALSA-2024:3139
Rocky Linux 9squashfs-toolsFixed0:4.4-10.git1.el9RLSA-2024:2396
Rocky Linux 8squashfs-toolsFixed0:4.3-21.el8RLSA-2024:3139
Alpine Linux 3.24squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.23squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.22squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.21squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.20squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.19squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.18squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.17squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.16squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.15squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072
Alpine Linux 3.14squashfs-toolsFixed4.5-r1ALPINE-CVE-2021-41072

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.