Bug 1190531 (CVE-2021-41072) - VUL-0: CVE-2021-41072: squashfs: unvalidated symlinks allow writing outside of destination
Summary: VUL-0: CVE-2021-41072: squashfs: unvalidated symlinks allow writing outside o...
Status: RESOLVED FIXED
Alias: CVE-2021-41072
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Torsten Duwe
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/309949/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-15 14:36 UTC by Gabriele Sonnu
Modified: 2024-07-12 16:31 UTC (History)
6 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
thomas.leroy: needinfo? (duwe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriele Sonnu 2021-09-15 14:36:39 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-41072
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41072
https://github.com/plougher/squashfs-tools/issues/72#issuecomment-913833405
https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd
http://www.cvedetails.com/cve/CVE-2021-41072/
Comment 1 Gabriele Sonnu 2021-09-15 14:38:07 UTC
Affected Packages:
 - SUSE:Carwos:1/squashfs           4.3
 - SUSE:SLE-11-SP2:Update/squashfs  4.0
 - SUSE:SLE-12-SP2:Update/squashfs  4.3
 - SUSE:SLE-15-SP3:Update/squashfs  4.4
 - SUSE:SLE-15:Update/squashfs      4.3
 - openSUSE:Factory/squashfs        4.4

Upstream patch:

https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd
Comment 10 Maintenance Automation 2023-11-13 16:30:14 UTC
SUSE-SU-2023:4424-1: An update that solves four vulnerabilities and has one security fix can now be installed.

Category: security (important)
Bug References: 1133284, 1160294, 1189936, 1190531, 935380
CVE References: CVE-2015-4645, CVE-2015-4646, CVE-2021-40153, CVE-2021-41072
Sources used:
SUSE Linux Enterprise High Performance Computing 12 SP5 (src): squashfs-4.6.1-8.3.2
SUSE Linux Enterprise Server 12 SP5 (src): squashfs-4.6.1-8.3.2
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): squashfs-4.6.1-8.3.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Maintenance Automation 2023-11-27 16:30:01 UTC
SUSE-SU-2023:4591-1: An update that solves four vulnerabilities can now be installed.

Category: security (important)
Bug References: 1189936, 1190531, 935380
CVE References: CVE-2015-4645, CVE-2015-4646, CVE-2021-40153, CVE-2021-41072
Sources used:
openSUSE Leap 15.4 (src): squashfs-4.6.1-150300.3.3.1
openSUSE Leap 15.5 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro 5.3 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro 5.4 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro 5.5 (src): squashfs-4.6.1-150300.3.3.1
Basesystem Module 15-SP4 (src): squashfs-4.6.1-150300.3.3.1
Basesystem Module 15-SP5 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): squashfs-4.6.1-150300.3.3.1
SUSE Manager Proxy 4.2 (src): squashfs-4.6.1-150300.3.3.1
SUSE Manager Retail Branch Server 4.2 (src): squashfs-4.6.1-150300.3.3.1
SUSE Manager Server 4.2 (src): squashfs-4.6.1-150300.3.3.1
SUSE Enterprise Storage 7.1 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro 5.1 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro 5.2 (src): squashfs-4.6.1-150300.3.3.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src): squashfs-4.6.1-150300.3.3.1
openSUSE Leap 15.3 (src): squashfs-4.6.1-150300.3.3.1
openSUSE Leap Micro 5.3 (src): squashfs-4.6.1-150300.3.3.1
openSUSE Leap Micro 5.4 (src): squashfs-4.6.1-150300.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 12 Maintenance Automation 2024-07-12 16:31:39 UTC
SUSE-SU-2024:2463-1: An update that solves four vulnerabilities can now be installed.

Category: security (important)
Bug References: 1189936, 1190531, 935380
CVE References: CVE-2015-4645, CVE-2015-4646, CVE-2021-40153, CVE-2021-41072
Maintenance Incident: [SUSE:Maintenance:31321](https://smelt.suse.de/incident/31321/)
Sources used:
SUSE Linux Enterprise Micro 5.5 (src):
 squashfs-4.6.1-150300.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.