Vulnerability · Published Sep 14, 2021 · Assigned by mitre
CVE-2021-41072
High 8.1
In plain English
A high-severity security flaw in the squashfs-tools package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | squashfs-tools | 4.3-21.el8 | ALSA-2024:3139 |
| AlmaLinux:9 | squashfs-tools | 4.4-10.git1.el9 | ALSA-2024:2396 |
| Alpine:v3.20 | squashfs-tools | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine:v3.21 | squashfs-tools | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine:v3.22 | squashfs-tools | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine:v3.23 | squashfs-tools | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Alpine:v3.24 | squashfs-tools | 4.5-r1 | ALPINE-CVE-2021-41072 |
| Debian:12 | squashfs-tools | 1:4.5-3 | DEBIAN-CVE-2021-41072 |
| Debian:13 | squashfs-tools | 1:4.5-3 | DEBIAN-CVE-2021-41072 |
| Debian:14 | squashfs-tools | 1:4.5-3 | DEBIAN-CVE-2021-41072 |
| Rocky Linux:8 | squashfs-tools | 0:4.3-21.el8 | RLSA-2024:3139 |
| Rocky Linux:9 | squashfs-tools | 0:4.4-10.git1.el9 | RLSA-2024:2396 |
| Ubuntu:22.04:LTS | squashfs-tools | 1:4.4-2ubuntu2 | UBUNTU-CVE-2021-41072 |
Affected products (as reported)
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