CVE-2024-1394
highA memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled…
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/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://access.redhat.com/errata/RHSA-2024:1462 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1468 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1472 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1501 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1502 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1561 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1563 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1566 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1567 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1574 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1640 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1644 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1646 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1763 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:1897 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:2562 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:2568 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:2569 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:2729 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:2730 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:2767 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:3265 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:3352 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:4146 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2024:4371 secalert@redhat.com
