CVE-2021-40153: 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. Patch: https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646
Please file a stablereq when ready. Patch is in 4.5.
Please cleanup.
cleanup done.
GLSA request filed
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/data/glsa.git/commit/?id=7c5aee9146a9230980d95e7d2037c660f20dd275 commit 7c5aee9146a9230980d95e7d2037c660f20dd275 Author: GLSAMaker <glsamaker@gentoo.org> AuthorDate: 2023-05-30 02:54:28 +0000 Commit: John Helmert III <ajak@gentoo.org> CommitDate: 2023-05-30 02:56:35 +0000 [ GLSA 202305-29 ] squashfs-tools: Multiple Vulnerabilities Bug: https://bugs.gentoo.org/810706 Bug: https://bugs.gentoo.org/813654 Signed-off-by: GLSAMaker <glsamaker@gentoo.org> Signed-off-by: John Helmert III <ajak@gentoo.org> glsa-202305-29.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
GLSA released, all done!