Name
squashfs-tools
Version
4.5
Type
library
Description
Tools for manipulating SquashFS filesystems
Licenses
GPL-2.0-only
PURL
-
CPE
cpe:2.3:*:squashfs_project:squashfs:4.5:*:*:*:*:*:*:*
Other Versions#
Patches#
#
Title
Author
Resolve
1
Avoid use of INSTALL_DIR for symlink targets
Patrick McCarty <patrick.mccarty@intel.com>
2
unsquashfs: dynamically allocate name
Phillip Lougher <phillip@squashfs.org.uk>
3
unsquashfs: use squashfs_closedir() to delete directory
Phillip Lougher <phillip@squashfs.org.uk>
4
unsquashfs: use linked list to store directory names
Phillip Lougher <phillip@squashfs.org.uk>
5
Unsquashfs: additional write outside destination directory
Phillip Lougher <phillip@squashfs.org.uk>
CVE-2021-41072
Vulnerabilities#
Name
Analysis
Description
Patched
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.
Exploitable
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.