Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1ycDloLXJmN2ctaHdncs4ABBWz
s2n-tls has undefined behavior at process exit
Impact
s2n-tls uses the Linux atexit function to register functions that clean up the global state when the process exits. In multi-threaded environments, the atexit handler may clean up state which is still in use by other threads. When this occurs, the exiting process may experience a segmentation fault or other undefined behavior.
Customers of AWS services do not need to take action. Applications using s2n-tls should upgrade to the most recent release of s2n-tls.
Impacted versions: < v1.5.9.
Patches
The patch commit 493b771 is included in s2n-tls v1.5.9 [1]
Workarounds
The atexit handler may be disabled by calling s2n_disable_atexit()
prior to initializing s2n-tls. The atexit handler is off by default in the patched versions. For further details, refer to s2n-tls Usage Guide: Initialization and Teardown.
If you have any questions or comments about this advisory, we ask that you contact AWS/Amazon Security via our vulnerability reporting page [2] or directly via email to [email protected]. Please do not create a public GitHub issue.
[1] https://github.com/aws/s2n-tls/releases/tag/v1.5.9
[2] Vulnerability reporting page: https://aws.amazon.com/security/vulnerability-reporting
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ycDloLXJmN2ctaHdncs4ABBWz
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 7 days ago
Updated: 7 days ago
Identifiers: GHSA-rp9h-rf7g-hwgr
References:
- https://github.com/aws/s2n-tls/security/advisories/GHSA-rp9h-rf7g-hwgr
- https://github.com/aws/s2n-tls/commit/493b77167dc367c394de23cfe78a029298e2a254
- https://github.com/aws/s2n-tls/releases/tag/v1.5.9
- https://github.com/advisories/GHSA-rp9h-rf7g-hwgr
Blast Radius: 0.0
Affected Packages
cargo:s2n-tls
Dependent packages: 3Dependent repositories: 21
Downloads: 717,841 total
Affected Version Ranges: < 0.3.7
Fixed in: 0.3.7
All affected versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.0.20, 0.0.21, 0.0.22, 0.0.23, 0.0.24, 0.0.25, 0.0.26, 0.0.27, 0.0.28, 0.0.29, 0.0.30, 0.0.31, 0.0.32, 0.0.33, 0.0.34, 0.0.35, 0.0.36, 0.0.37, 0.0.38, 0.0.39, 0.0.40, 0.0.41, 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.2.11, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6
All unaffected versions: 0.3.7