Name | CVE-2021-40153 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-2752-1, DSA-4967-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
squashfs-tools (PTS) | bullseye (security), bullseye | 1:4.4-2+deb11u2 | fixed |
bookworm | 1:4.5.1-1 | fixed | |
sid, trixie | 1:4.6.1-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
squashfs-tools | source | experimental | 1:4.5-1 | |||
squashfs-tools | source | stretch | 1:4.3-3+deb9u2 | DLA-2752-1 | ||
squashfs-tools | source | buster | 1:4.3-12+deb10u1 | DSA-4967-1 | ||
squashfs-tools | source | bullseye | 1:4.4-2+deb11u1 | DSA-4967-1 | ||
squashfs-tools | source | (unstable) | 1:4.5-2 |
https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790
https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646 (4.5)
https://github.com/plougher/squashfs-tools/issues/72