Alerts This Week
Warning Icon 1 916
Alerts This Week
Warning Icon 1 916

Mageia 8: 2022-0010 Critical: Squashfs-Tools Directory Traversal

mageia
Calendar Grey January 11, 2022
Dist Mageia Esm H88
The latest squashfs-tools updates resolve significant security vulnerabilities that impact file management and overall system stability in Mageia.
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

Summary

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. (CVE-2021-40153) 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. (CVE-2021-41072)

References

- https://bugs.mageia.org/show_bug.cgi?id=29429

- https://ubuntu.com/security/notices/USN-5057-1

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/RAOZ4BKWAC4Y3U2K5MMW3S77HWWXHQDL/

- https://lists.debian.org/debian-security-announce/2021/msg00152.html

- https://ubuntu.com/security/notices/USN-5078-1

- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/RGPPMRX4FP3CLIZKZFB2DODGNHXHPYD6/

- https://lists.debian.org/debian-security-announce/2021/msg00172.html

- https://ubuntu.com/security/notices/USN-5078-3

- https://www.cve.org/CVERecord?id=CVE-2021-40153

- https://www.cve.org/CVERecord?id=CVE-2021-41072

Resolution

SRPMS

- 8/core/squashfs-tools-4.5-1.git5ae723.1.mga8

Severity
critical
Lowest
Low
Medium
High
Critical

Publication date: 11 Jan 2022
URL: https://advisories.mageia.org/MGASA-2022-0010.html
Type: security
CVE: CVE-2021-40153, CVE-2021-41072

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Your message here