Skip to content
OpenAdvisories
Unscored CVE-2021-40153 EUVD-2021-27338GHSA-98f5-57cr-27p7

squashfs_opendir in unsquash-1.c in Squashfs-Tools 4.5 stores the filename in the directory entry; this is then used by unsquashfs to creat…

Published Aug 27, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

squashfs_opendir in unsquash-1.c in Squashfs-Tools 4.5 stores the filename in the directory entry; this is then used by unsquashfs to create the new file during the unsquash. The filename is not validated for traversal outside of the destination directory, and thus allows writing to locations outside of the destination.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 squashfs-tools 1:4.5-2 —
Debian 13 squashfs-tools 1:4.5-2 —
Debian 12 squashfs-tools 1:4.5-2 —
Debian 11 squashfs-tools 1:4.4-2+deb11u1 DSA-4967-1
Debian 10 squashfs-tools 1:4.3-12+deb10u1 DSA-4967-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 squashfs-tools 1:4.3-3+deb9u2 DLA-2752-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS squashfs-tools 1:4.4-1ubuntu0.1 USN-5057-1
Ubuntu 18.04 LTS squashfs-tools 1:4.3-6ubuntu0.18.04.3 USN-5057-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS squashfs-tools 1:4.3-3ubuntu2.16.04.3+esm1 USN-5078-2
ReleasePackageFixed inAdvisory
RHEL 9 squashfs-tools 4.4-10.git1.el9 RHSA-2024:2396
RHEL 8 squashfs-tools 4.3-21.el8 RHSA-2024:3139

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 squashfs-tools 4.4-10.git1.el9 ALSA-2024:2396
AlmaLinux 8 squashfs-tools 4.3-21.el8 ALSA-2024:3139

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 squashfs-tools 4.4-10.git1.el9 RLSA-2024:2396
Rocky Linux 8 squashfs-tools 4.3-21.el8 RLSA-2024:3139
ReleasePackageFixed inAdvisory
SLES 15 SP5 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLES 15 SP4 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLES 15 SP3 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLES 12 SP5 squashfs 4.6.1-8.3.2 SUSE-SU-2023:4424-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLES for SAP 12 SP5 squashfs 4.6.1-8.3.2 SUSE-SU-2023:4424-1
SLE Micro 5.5 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2024:2463-1, SUSE-SU-2023:4591-1
SLE Micro 5.4 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLE Micro 5.3 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLE Micro 5.2 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLE Micro 5.1 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SLE HPC 15 SP3 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SUSE Manager Server 4.2 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SUSE Manager Proxy 4.2 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
SUSE Enterprise Storage 7.1 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed squashfs 4.6.1-2.1 openSUSE-SU-2024:13035-1
openSUSE Leap 15.5 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
openSUSE Leap 15.4 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.4 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
openSUSE Leap Micro 5.3 squashfs 4.6.1-150300.3.3.1 SUSE-SU-2023:4591-1
ReleasePackageFixed inAdvisory
Alpine v3.24 squashfs-tools 4.5-r0 —
Alpine v3.23 squashfs-tools 4.5-r0 —
Alpine v3.22 squashfs-tools 4.5-r0 —
Alpine v3.21 squashfs-tools 4.5-r0 —
Alpine v3.20 squashfs-tools 4.5-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 squashfs-tools 4.5-r0 —
Alpine v3.18 squashfs-tools 4.5-r0 —
Alpine v3.17 squashfs-tools 4.5-r0 —
Alpine v3.16 squashfs-tools 4.5-r0 —
Alpine v3.15 squashfs-tools 4.5-r0 —
Alpine v3.14 squashfs-tools 4.5-r0 —
Alpine v3.13 squashfs-tools 4.5-r0 —
Alpine v3.12 squashfs-tools 4.5-r0 —
Alpine v3.11 squashfs-tools 4.5-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 squashfs-tools 4.3-0.21.gitaae0aff4.amzn2.0.2 ALAS2-2023-2152

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) squashfs-tools 4.5.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 squashfs-tools 4.4-10.git1.el9 ELSA-2024-2396
Oracle Linux 8 squashfs-tools 4.3-21.el8 ELSA-2024-3139

Advisories 18

References