Bug 1206737 (CVE-2022-46174) - VUL-0: CVE-2022-46174: aws-efs-utils: race condition during concurrent TLS mounts in efs-utils and aws-efs-csi-driver
Summary: VUL-0: CVE-2022-46174: aws-efs-utils: race condition during concurrent TLS mo...
Status: RESOLVED FIXED
Alias: CVE-2022-46174
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/352036/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-46174:4.0:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-29 09:20 UTC by Thomas Leroy
Modified: 2024-05-03 09:37 UTC (History)
12 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Leroy 2022-12-29 09:20:23 UTC
CVE-2022-46174

efs-utils is a set of Utilities for Amazon Elastic File System (EFS). A potential race condition issue exists within the Amazon EFS mount helper in efs-utils versions v1.34.3 and below. When using TLS to mount file systems, the mount helper allocates a local port for stunnel to receive NFS connections prior to applying the TLS tunnel. In affected versions, concurrent mount operations can allocate the same local port, leading to either failed mount operations or an inappropriate mapping from an EFS customer’s local mount points to that customer’s EFS file systems. This issue is patched in version v1.34.4. There is no recommended work around. We recommend affected users update the installed version of efs-utils to v1.34.4 or later.

Upstream fix:
https://github.com/aws/efs-utils/commit/f3a8f88167d55caa2f78aeb72d4dc1987a9ed62d

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-46174
https://www.cve.org/CVERecord?id=CVE-2022-46174
https://github.com/aws/efs-utils/commit/f3a8f88167d55caa2f78aeb72d4dc1987a9ed62d
https://github.com/aws/efs-utils/issues/125
https://github.com/aws/efs-utils/security/advisories/GHSA-4fv8-w65m-3932
http://www.cvedetails.com/cve/CVE-2022-46174/
Comment 1 Thomas Leroy 2022-12-29 09:25:01 UTC
The code changed quite a bit since old versions (SLE12) but the philosophy of the port allocation is the same. Therefore, those codestreams should be affected:
- SUSE:SLE-12:Update
- SUSE:SLE-15-SP1:Update
- SUSE:SLE-15:Update
- openSUSE:Factory
Comment 5 John Paul Adrian Glaubitz 2023-01-25 10:11:31 UTC
Quick overview regarding the different codestreams.

- openSUSE:Factory has already had the fixed version since 2023-01-03
- SUSE:SLE-15-SP1:Update can be updated without problems to 1.34.4
- SUSE:SLE-15:Update cannot be easily updated due to build dependency issues
- SUSE:SLE-12:Update cannot be easily updated due to build dependency issues

The patch does not apply against older versions of the package (not even against the version in SUSE:SLE-15-SP1:Update), so it would have ported manually to the older versions.

For SUSE:SLE-15-SP1:Update, I would just update the package to 1.34.4 (or even 1.34.5) unless anyone objects. For SUSE:SLE-15:Update and SUSE:SLE-12:Update, I will start looking into porting the fix to the older codebase.
Comment 7 John Paul Adrian Glaubitz 2023-02-06 14:54:55 UTC
Fix for SLE-12-Update and SLE-15-Update will be realized through a backport of the fix.
Comment 8 Robert Schweikert 2023-02-06 16:44:04 UTC
There's nothing to do for SLE 15, it reached EOL on December 31 2022
Comment 9 Swamp Workflow Management 2023-02-15 20:53:57 UTC
SUSE-SU-2023:0423-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 1191055,1206737
CVE References: CVE-2022-46174
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    aws-efs-utils-1.34.5-150100.4.11.1
SUSE Linux Enterprise Module for Public Cloud 15-SP4 (src):    aws-efs-utils-1.34.5-150100.4.11.1
SUSE Linux Enterprise Module for Public Cloud 15-SP3 (src):    aws-efs-utils-1.34.5-150100.4.11.1
SUSE Linux Enterprise Module for Public Cloud 15-SP2 (src):    aws-efs-utils-1.34.5-150100.4.11.1
SUSE Linux Enterprise Module for Public Cloud 15-SP1 (src):    aws-efs-utils-1.34.5-150100.4.11.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 13 Sean Marlow 2023-03-31 14:17:37 UTC
Patched version for 12sp5 is in review https://build.suse.de/request/show/292418.
Comment 14 Maintenance Automation 2023-04-04 16:30:08 UTC
SUSE-SU-2023:1761-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1206737
CVE References: CVE-2022-46174
Sources used:
Public Cloud Module 12 (src): aws-efs-utils-1.7-1.6.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 15 Robert Frohl 2024-05-03 09:37:13 UTC
done, closing