Path traversal in squashfs-tools - CVE-2021-40153
Published: September 5, 2021 / Updated: March 18, 2022
Vulnerability details
The vulnerability allows a remote user to compromise the affected system.
The vulnerability exists due to input validation error when processing directory traversal sequences within the squashfs_opendir in unsquash-1.c. A remote user can store the filename in the directory entry, which later is used by unsquashfs to create the new file during the unsquash. As a result, it is possible to write files to locations outside of the destination.
Affected software
Gentoo Linux
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
openSUSE Leap Micro
SUSE Enterprise Storage
Red Hat Enterprise Linux for ARM 64
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
SUSE Linux Enterprise Server 15 SP3 LTSS
Basesystem Module
openSUSE Leap
Ubuntu
openEuler
Fedora
squashfs-tools (Debian package)
squashfs-tools (Ubuntu package)
squashfs-tools
squashfs-tools (Red Hat package)
squashfs-tools-debuginfo
squashfs-tools-debugsource
squashfs-tools-doc
squashfs-debugsource
squashfs-debuginfo
squashfs
Juniper Secure Analytics (JSA)
Red Hat OpenShift Container Platform
How to mitigate CVE-2021-40153
squashfs-tools (Debian package) - addressed in versions 1:4.3-12+deb10u1, 1:4.4-2+deb11u1
Juniper Secure Analytics (JSA) - update to 7.5.0 UP9 IF02
squashfs-tools (Ubuntu package) - addressed in versions 1:4.3-6ubuntu0.18.04.3, 1:4.4-1ubuntu0.1, 1:4.4-2ubuntu0.1, 1:4.33ubuntu2.16.04.3+esm1
squashfs-tools - addressed in versions 4.3-20.0.3, 4.6.1-1
squashfs-tools (Red Hat package) - addressed in versions 4.3-21.el8, 4.4-10.git1.el9
squashfs-tools - update to 4.4-5
squashfs-tools-debuginfo - update to 4.4-5
squashfs-tools-debugsource - update to 4.4-5
squashfs-tools - addressed in versions 4.5-2.fc33, 4.5-2.fc34, 4.5-3.20210913gite048580.fc33
squashfs-tools-doc - update to 4.6.1-1
squashfs-debugsource - addressed in versions 4.6.1-8.3.2, 4.6.1-150300.3.3.1
squashfs-debuginfo - addressed in versions 4.6.1-8.3.2, 4.6.1-150300.3.3.1
squashfs - addressed in versions 4.6.1-8.3.2, 4.6.1-150300.3.3.1
Red Hat OpenShift Container Platform - addressed in versions 4.16.15, 4.17.0
External References
- https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790
- https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646
- https://github.com/plougher/squashfs-tools/issues/72
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RAOZ4BKWAC4Y3U2K5MMW3S77HWWXHQDL/
- https://lists.debian.org/debian-lts-announce/2021/08/msg00030.html
- https://www.debian.org/security/2021/dsa-4967
Related Security Bulletins
- Multiple vulnerabilities in Squashfs-Tools
- Debian update for squashfs-tools
- Ubuntu update for squashfs-tools
- Ubuntu update for squashfs-tools
- Gentoo update for squashfs-tools
- SUSE update for squashfs
- SUSE update for squashfs
- openEuler update for squashfs-tools
- Red Hat Enterprise Linux 9 update for squashfs-tools
- Red Hat Enterprise Linux 8 update for squashfs-tools
- Multiple vulnerabilities in Juniper Secure Analytics (JSA)
- Multiple vulnerabilities in Red Hat OpenShift Container Platform 4.16
- Multiple vulnerabilities in Red Hat OpenShift Container Platform 4.17
- Fedora 34 update for squashfs-tools
- Fedora 33 update for squashfs-tools
- Fedora 33 update for squashfs-tools
- Anolis OS update for squashfs-tools
- Anolis OS update for squashfs-tools