CVE-2021-41072
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | squashfs-tools | Fixed | 1:4.4-2ubuntu2 | UBUNTU-CVE-2021-41072 |
| Ubuntu 20.04 | squashfs-tools | Fixed | 1:4.4-1ubuntu0.3 | UBUNTU-CVE-2021-41072 |
| Ubuntu 18.04 | squashfs-tools | Fixed | 1:4.3-6ubuntu0.18.04.4 | UBUNTU-CVE-2021-41072 |
| Ubuntu 16.04 | squashfs-tools | Fix pending | 1:4.3-3ubuntu2.16.04.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-41072 |
| Ubuntu 14.04 | squashfs-tools | Fix pending | ||
| Debian 14 | squashfs-tools | Fixed | 1:4.5-3 | DEBIAN-CVE-2021-41072 |
| Debian 13 | squashfs-tools | Fixed | 1:4.5-3 | DEBIAN-CVE-2021-41072 |
| Debian 12 | squashfs-tools | Fixed | 1:4.5-3 | DEBIAN-CVE-2021-41072 |
| Red Hat Enterprise Linux 9 | squashfs-tools | Fixed | 0:4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux 8 | squashfs-tools | Fixed | 0:4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux 7 | squashfs-tools | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | squashfs-tools | Will not fix Out of support scope | ||
| AlmaLinux 9 | squashfs-tools | Fixed | 4.4-10.git1.el9 | ALSA-2024:2396 |
| AlmaLinux 8 | squashfs-tools | Fixed | 4.3-21.el8 | ALSA-2024:3139 |
| Rocky Linux 9 | squashfs-tools | Fixed | 0:4.4-10.git1.el9 | RLSA-2024:2396 |
| Rocky Linux 8 | squashfs-tools | Fixed | 0:4.3-21.el8 | RLSA-2024:3139 |
| Alpine Linux 3.24 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.23 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.22 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.21 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.20 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.19 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.18 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.17 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.16 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.15 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine Linux 3.14 | squashfs-tools | Fixed | 4.5-r1 | ALPINE-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:
- https://www.debian.org/security/2021/dsa-4987 (vendor-advisory)
- https://security.gentoo.org/glsa/202305-29 (vendor-advisory)
References
- https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd
- https://github.com/plougher/squashfs-tools/issues/72#issuecomment-913833405
- https://www.debian.org/security/2021/dsa-4987
- https://lists.debian.org/debian-lts-announce/2021/10/msg00017.html
- https://security.gentoo.org/glsa/202305-29
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.