Description
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.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | squashfs-tools | 1:4.5-3 | — |
| Debian 13 | squashfs-tools | 1:4.5-3 | — |
| Debian 12 | squashfs-tools | 1:4.5-3 | — |
| Debian 11 | squashfs-tools | 1:4.4-2+deb11u2 | DSA-4987-1 |
| Debian 10 | squashfs-tools | 1:4.3-12+deb10u2 | DSA-4987-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | squashfs-tools | 1:4.3-3+deb9u3 | DLA-2789-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | squashfs-tools | 1:4.4-2ubuntu2 | — |
| Ubuntu 20.04 LTS | squashfs-tools | 1:4.4-1ubuntu0.3 | USN-5078-3, USN-5078-1 |
| Ubuntu 18.04 LTS | squashfs-tools | 1:4.3-6ubuntu0.18.04.4 | USN-5078-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | squashfs-tools | 1:4.3-3ubuntu2.16.04.3+esm1 | USN-5078-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | squashfs | 4.5.1-1.1 | openSUSE-SU-2024:11986-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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.23 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.22 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.21 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.20 | squashfs-tools | 4.5-r1 | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.18 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.17 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.16 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.15 | squashfs-tools | 4.5-r1 | — |
| Alpine v3.14 | squashfs-tools | 4.5-r1 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | squashfs-tools | 4.3-0.21.gitaae0aff4.amzn2.0.2 | ALAS2-2023-2152 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | squashfs-tools | 4.5.1-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 20
- ALSA-2024:2396 Moderate: squashfs-tools security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:3139 Moderate: squashfs-tools security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-5078-2 squashfs-tools vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- RHSA-2024:2396 Red Hat Security Advisory: squashfs-tools security update Red Hat Security Advisories (RHSA) · Mar 18, 2026
- DSA-4987-1 squashfs-tools - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2789-1 squashfs-tools - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-5078-3 squashfs-tools vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- USN-5078-1 squashfs-tools vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2024:3139 Moderate: squashfs-tools security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2023:4591-1 Security update for squashfs SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4424-1 Security update for squashfs SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11986-1 squashfs-4.5.1-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2463-1 Security update for squashfs SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2024:3139 Red Hat Security Advisory: squashfs-tools security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- WID-SEC-2024-0995 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 17, 2025
- RLSA-2024:2396 Moderate: squashfs-tools security update Rocky Linux Security Advisories · Oct 7, 2025
- VDE-2024-073 Phoenix Contact: Multiple Vulnerabilities in PLCnext Firmware CERT@VDE · May 22, 2025
- ELSA-2024-3139 Moderate: squashfs-tools security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 23, 2024
- ELSA-2024-2396 Moderate: squashfs-tools security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 2, 2024
- ALAS2-2023-2152 Moderate: squashfs-tools security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 19, 2023
References
- https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd
- https://github.com/plougher/squashfs-tools/issues/72#issuecomment-913833405
- DSA-4987 vendor-advisory
- [debian-lts-announce] 20211020 [SECURITY] [DLA 2789-1] squashfs-tools security update mailing-list
- GLSA-202305-29 vendor-advisory