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.
CVSS 3.1 detail
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitable remotely over the network, without an account and without any user action; an attacker can seriously compromise confidentiality, integrity or availability.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- Interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Affected products and versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | Versions not published | |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | Versions not published | |
| Red Hat Developer Tools | Versions not published | |
| Red Hat Enterprise Linux 8 | Versions not published | |
| Red Hat Enterprise Linux 9 | Versions not published | |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | Versions not published | |
| Red Hat Enterprise Linux 9.2 Extended Update Support | Versions not published | |
| Red Hat OpenShift Container Platform 4.12 | Versions not published | |
| Red Hat OpenShift Container Platform 4.13 | Versions not published |
Show the 26 other branches Hide the 26 other branches
References
- RHSA-2024:1462 access.redhat.com
- RHSA-2024:1468 access.redhat.com
- RHSA-2024:1472 access.redhat.com
- RHSA-2024:1501 access.redhat.com
- RHSA-2024:1502 access.redhat.com
- RHSA-2024:1561 access.redhat.com
- RHSA-2024:1563 access.redhat.com
- RHSA-2024:1566 access.redhat.com
- RHSA-2024:1567 access.redhat.com
- RHSA-2024:1574 access.redhat.com
- RHSA-2024:1640 access.redhat.com
- RHSA-2024:1644 access.redhat.com
- RHSA-2024:1646 access.redhat.com
- RHSA-2024:1763 access.redhat.com
- RHSA-2024:1897 access.redhat.com
- RHSA-2024:2562 access.redhat.com
- RHSA-2024:2568 access.redhat.com
- RHSA-2024:2569 access.redhat.com
- RHSA-2024:2729 access.redhat.com
- RHSA-2024:2730 access.redhat.com
- RHSA-2024:2767 access.redhat.com
- RHSA-2024:3265 access.redhat.com
- RHSA-2024:3352 access.redhat.com
- RHSA-2024:4146 access.redhat.com
- RHSA-2024:4371 access.redhat.com
- RHSA-2024:4378 access.redhat.com
- RHSA-2024:4379 access.redhat.com
- RHSA-2024:4502 access.redhat.com
- RHSA-2024:4581 access.redhat.com
- RHSA-2024:4591 access.redhat.com
- RHSA-2024:4672 access.redhat.com
- RHSA-2024:4699 access.redhat.com
- RHSA-2024:4761 access.redhat.com
- RHSA-2024:4762 access.redhat.com
- RHSA-2024:4960 access.redhat.com
- RHSA-2024:5258 access.redhat.com
- RHSA-2024:5634 access.redhat.com
- RHSA-2024:7262 access.redhat.com
- RHSA-2025:7118 access.redhat.com
- access.redhat.com access.redhat.com
- RHBZ#2262921 bugzilla.redhat.com
- github.com github.com
- github.com github.com
- github.com github.com
- pkg.go.dev pkg.go.dev
- vuln.go.dev vuln.go.dev
Timeline
- Published
- Last modified