What’s Vulnerable › Vulnerabilities

CVE-2024-1394: Golang-fips/openssl: memory leaks in code encrypting and decrypting rsa payloads

Description

A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled inputs​. The memory leak happens in github.com/golang-fips/openssl/openssl/rsa.go#L113. The objects leaked are pkey​ and ctx​. That function uses named return parameters to free pkey​ and ctx​ if there is an error initializing the context or setting the different properties. All return statements related to error cases follow the "return nil, nil, fail(...)" pattern, meaning that pkey​ and ctx​ will be nil inside the deferred function that should free them.

Affected products

How to fix

Upgrade to a fixed version: Red Hat Ansible Automation Platform 2.4 for RHEL 8 0:1.4.5-1.el8ap; Red Hat Ansible Automation Platform 2.4 for RHEL 9 0:1.4.5-1.el9ap; Red Hat Developer Tools 0:1.19.13-6.el7_9; Red Hat Enterprise Linux 8 8090020240313170136.26eb71ac; Red Hat Enterprise Linux 9 0:1.20.12-2.el9_3; Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions 2:4.2.0-4.el9_0; Red Hat Enterprise Linux 9.2 Extended Update Support 0:1.19.13-7.el9_2; Red Hat OpenShift Container Platform 4.12 1:1.23.4-5.2.rhaos4.12.el8; Red Hat OpenShift Container Platform 4.13 1:1.29.1-2.2.rhaos4.13.el8; Red Hat OpenShift Container Platform 4.14 0:0.19.0-1.3.rhaos4.14.el8; Red Hat OpenShift Container Platform 4.15 1:1.29.1-20.3.rhaos4.15.el8; Red Hat OpenStack Platform 16.2 0:3.3.23-16.el8ost. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-1394 or the next vulnerability affects your stack