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.
{ "vanir_signatures": [ { "signature_version": "v1", "target": { "file": "squashfs-tools/unsquash-4.c" }, "signature_type": "Line", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "line_hashes": [ "13826501275751200352062856063484710912", "310321498175082041215183790365799830598", "222252199053251366417172446049972134779" ], "threshold": 0.9 }, "id": "CVE-2021-41072-17bef277" }, { "signature_version": "v1", "target": { "function": "squashfs_opendir", "file": "squashfs-tools/unsquash-2.c" }, "signature_type": "Function", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "length": 2732.0, "function_hash": "18901525040218552686384788208234690139" }, "id": "CVE-2021-41072-17d236ac" }, { "signature_version": "v1", "target": { "function": "read_super_2", "file": "squashfs-tools/unsquash-2.c" }, "signature_type": "Function", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "length": 1204.0, "function_hash": "54792938322389362071123182180987984409" }, "id": "CVE-2021-41072-517a38af" }, { "signature_version": "v1", "target": { "function": "squashfs_opendir", "file": "squashfs-tools/unsquash-1.c" }, "signature_type": "Function", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "length": 2732.0, "function_hash": "18901525040218552686384788208234690139" }, "id": "CVE-2021-41072-8756ee07" }, { "signature_version": "v1", "target": { "file": "squashfs-tools/unsquashfs.h" }, "signature_type": "Line", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "line_hashes": [ "89582843057714310302560616203867031271", "49499559178388147018567964199199003077" ], "threshold": 0.9 }, "id": "CVE-2021-41072-930e8cbd" }, { "signature_version": "v1", "target": { "function": "squashfs_opendir", "file": "squashfs-tools/unsquash-3.c" }, "signature_type": "Function", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "length": 2736.0, "function_hash": "310221983440334615105753322885496648658" }, "id": "CVE-2021-41072-a593c95f" }, { "signature_version": "v1", "target": { "file": "squashfs-tools/unsquash-2.c" }, "signature_type": "Line", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "line_hashes": [ "321819792665477290116542811770824633115", "153109692933111748050391633369134751289", "200445461191816545489245548579996642577", "109435949105249211745989750370743912367", "13826501275751200352062856063484710912", "310321498175082041215183790365799830598", "222252199053251366417172446049972134779", "48309106085847685141102099689057574146", "301385753643948902204006603759959075192", "126113801197783751144936314844357774461", "184633766433689322390316538862612286887" ], "threshold": 0.9 }, "id": "CVE-2021-41072-bde9ce70" }, { "signature_version": "v1", "target": { "function": "squashfs_opendir", "file": "squashfs-tools/unsquash-4.c" }, "signature_type": "Function", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "length": 2502.0, "function_hash": "95133666285201796399228902473090162087" }, "id": "CVE-2021-41072-c792fca3" }, { "signature_version": "v1", "target": { "file": "squashfs-tools/unsquash-3.c" }, "signature_type": "Line", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "line_hashes": [ "13826501275751200352062856063484710912", "310321498175082041215183790365799830598", "222252199053251366417172446049972134779" ], "threshold": 0.9 }, "id": "CVE-2021-41072-e1b69ee7" }, { "signature_version": "v1", "target": { "file": "squashfs-tools/unsquash-1.c" }, "signature_type": "Line", "source": "https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd", "deprecated": false, "digest": { "line_hashes": [ "13826501275751200352062856063484710912", "310321498175082041215183790365799830598", "222252199053251366417172446049972134779" ], "threshold": 0.9 }, "id": "CVE-2021-41072-e8094c28" } ] }