Vulnerability · Published Mar 21, 2024 · Assigned by redhat

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

High 7.5

In plain English

A high-severity memory leak in Red Hat Ansible Automation Platform 2.4 for RHEL 8 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 25.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8buildah2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9buildah2:1.33.7-3.el9_4ALSA-2024:4371
AlmaLinux:8buildah-tests2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9buildah-tests2:1.33.7-3.el9_4ALSA-2024:4371
AlmaLinux:8cockpit-podman84.1-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8container-selinux2:2.229.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9containernetworking-plugins1:1.4.0-4.el9_4ALSA-2024:4761
AlmaLinux:8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crit3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8crit3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8delve1.20.2-1.module_el8.9.0+3642+43318da8ALSA-2024:1472
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3859+6ae70a0eALSA-2024:5258
AlmaLinux:8go-toolset1.20.12-1.module_el8.9.0+3728+f1d47c6fALSA-2024:1472
AlmaLinux:9go-toolset1.20.12-2.el9_3ALSA-2024:1462
AlmaLinux:9go-toolset1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang1.20.12-3.module_el8.9.0+3750+10f4110dALSA-2024:1472
AlmaLinux:9golang1.20.12-2.el9_3ALSA-2024:1462
AlmaLinux:9golang1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang-bin1.20.12-3.module_el8.9.0+3750+10f4110dALSA-2024:1472
AlmaLinux:9golang-bin1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:9golang-bin1.20.12-2.el9_3ALSA-2024:1462
AlmaLinux:8golang-docs1.20.12-3.module_el8.9.0+3750+10f4110dALSA-2024:1472
AlmaLinux:9golang-docs1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:9golang-docs1.20.12-2.el9_3ALSA-2024:1462
AlmaLinux:8golang-misc1.20.12-3.module_el8.9.0+3750+10f4110dALSA-2024:1472
AlmaLinux:9golang-misc1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:9golang-misc1.20.12-2.el9_3ALSA-2024:1462
AlmaLinux:8golang-src1.20.12-3.module_el8.9.0+3750+10f4110dALSA-2024:1472
AlmaLinux:9golang-src1.20.12-2.el9_3ALSA-2024:1462
AlmaLinux:9golang-src1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:8golang-tests1.20.12-3.module_el8.9.0+3750+10f4110dALSA-2024:1472
AlmaLinux:9golang-tests1.21.9-2.el9_4ALSA-2024:2562
AlmaLinux:9golang-tests1.20.12-2.el9_3ALSA-2024:1462
AlmaLinux:8grafana9.2.10-8.el8_9.alma.1ALSA-2024:1646
AlmaLinux:8grafana9.2.10-16.el8_10ALSA-2024:3265
AlmaLinux:9grafana9.2.10-8.el9_3.alma.1ALSA-2024:1501
AlmaLinux:9grafana9.2.10-16.el9_4.alma.1ALSA-2024:2568
AlmaLinux:8grafana-pcp5.1.1-2.el8_9.alma.1ALSA-2024:1644
AlmaLinux:9grafana-pcp5.1.1-2.el9_3.alma.1ALSA-2024:1502
AlmaLinux:9grafana-pcp5.1.1-2.el9_4.alma.1ALSA-2024:2569
AlmaLinux:8grafana-selinux9.2.10-16.el8_10ALSA-2024:3265
AlmaLinux:9grafana-selinux9.2.10-16.el9_4.alma.1ALSA-2024:2568
AlmaLinux:9gvisor-tap-vsock6:0.7.3-4.el9_4.alma.1ALSA-2024:4379
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:9osbuild141-1.el9.alma.1ALSA-2025:7118
AlmaLinux:8osbuild-composer101-2.el8_10.alma.1ALSA-2024:7262
AlmaLinux:9osbuild-composer132-1.el9.alma.1ALSA-2025:7118
AlmaLinux:8osbuild-composer-core101-2.el8_10.alma.1ALSA-2024:7262
AlmaLinux:9osbuild-composer-core132-1.el9.alma.1ALSA-2025:7118
AlmaLinux:8osbuild-composer-worker101-2.el8_10.alma.1ALSA-2024:7262
AlmaLinux:9osbuild-composer-worker132-1.el9.alma.1ALSA-2025:7118
AlmaLinux:9osbuild-depsolve-dnf141-1.el9.alma.1ALSA-2025:7118
AlmaLinux:9osbuild-luks2141-1.el9.alma.1ALSA-2025:7118
AlmaLinux:9osbuild-lvm2141-1.el9.alma.1ALSA-2025:7118
AlmaLinux:9osbuild-ostree141-1.el9.alma.1ALSA-2025:7118
AlmaLinux:9osbuild-selinux141-1.el9.alma.1ALSA-2025:7118
AlmaLinux:8podman4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman4:4.9.4-5.el9_4ALSA-2024:4378
AlmaLinux:8podman-catatonit4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-docker4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-docker4:4.9.4-5.el9_4ALSA-2024:4378
AlmaLinux:8podman-gvproxy4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-plugins4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-plugins4:4.9.4-5.el9_4ALSA-2024:4378
AlmaLinux:8podman-remote4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-remote4:4.9.4-5.el9_4ALSA-2024:4378
AlmaLinux:8podman-tests4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-tests4:4.9.4-5.el9_4ALSA-2024:4378
AlmaLinux:8python3-criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9python3-osbuild141-1.el9.alma.1ALSA-2025:7118
AlmaLinux:8python3-podman4.9.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8runc1:1.1.12-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9runc4:1.1.12-3.el9_4ALSA-2024:4762
AlmaLinux:8skopeo2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9skopeo2:1.14.3-3.el9_4ALSA-2024:4502
AlmaLinux:8skopeo-tests2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9skopeo-tests2:1.14.3-3.el9_4ALSA-2024:4502
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8udica0.2.6-21.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
Gogithub.com/golang-fips/gono fix listedGHSA-78hx-gp6g-7mj6
Gogithub.com/golang-fips/openssl/v22.0.1GO-2024-2660
Gogithub.com/golang-fips/openssl/v22.0.1GHSA-78hx-gp6g-7mj6
Gogithub.com/microsoft/go-crypto-openssl0.2.9GO-2024-2660
Gogithub.com/microsoft/go-crypto-opensslno fix listedGHSA-78hx-gp6g-7mj6
Gogithub.com/microsoft/go-crypto-openssl/openssl0.2.9GHSA-78hx-gp6g-7mj6
Rocky Linux:8aardvark-dns2:1.10.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8buildah2:1.33.8-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8conmon3:2.1.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8container-selinux2:2.229.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8containernetworking-plugins1:1.4.0-5.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8containers-common2:1-82.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8criu0:3.18-5.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8crun0:1.14.3-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8delve0:1.20.2-1.module+el8.9.0+1392+c9f6376aRLSA-2024:1472
Rocky Linux:8fuse-overlayfs0:1.13-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8go-toolset0:1.20.12-1.module+el8.9.0+1725+0ed4fa7fRLSA-2024:1472
Rocky Linux:8golang0:1.20.12-3.module+el8.9.0+1764+12d15796RLSA-2024:1472
Rocky Linux:8grafana0:9.2.10-16.el8_10RLSA-2024:3265
Rocky Linux:8grafana0:9.2.10-8.el8_9RLSA-2024:1646
Rocky Linux:9grafana0:9.2.10-16.el9_4RLSA-2024:2568
Rocky Linux:8grafana-pcp0:5.1.1-2.el8_9RLSA-2024:1644
Rocky Linux:9grafana-pcp0:5.1.1-2.el9_3RLSA-2024:1502
Rocky Linux:9grafana-pcp0:5.1.1-2.el9_3RLSA-2024:2569
Rocky Linux:8libslirp0:4.4.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8netavark2:1.10.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8oci-seccomp-bpf-hook0:1.2.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8osbuild-composer0:101-2.el8_10.rocky.0.6RLSA-2024:7262
Rocky Linux:8podman4:4.9.4-12.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8python-podman0:4.9.0-2.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8runc1:1.1.12-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8skopeo2:1.14.5-3.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:9skopeo2:1.14.3-3.el9_4RLSA-2024:4502
Rocky Linux:8slirp4netns0:1.2.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8toolbox0:0.0.99.5-2.module+el8.10.0+1815+5fe7415e.rocky.0.2.rocky.0.2RLSA-2024:5258
Rocky Linux:8udica0:0.2.6-21.module+el8.10.0+1815+5fe7415eRLSA-2024:5258

Affected products (as reported)

VendorProductVersions
Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8 see references
Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8 see references
Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8 see references
Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9 see references
Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9 see references
Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9 see references
Red Hat Red Hat Developer Tools see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions see references
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support see references
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support see references

Weakness: CWE-401 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References