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.
Détail CVSS 3.1
Vecteur CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitable à distance par le réseau, sans compte et sans action d’un utilisateur ; un attaquant peut compromettre gravement la confidentialité, l’intégrité ou la disponibilité.
- Vecteur d’attaque
- Réseau
- Complexité
- Faible
- Privilèges requis
- Aucun
- Interaction
- Aucune
- Portée
- Inchangée
- Confidentialité
- Aucun
- Intégrité
- Aucun
- Disponibilité
- Élevé
Produits et versions touchés
| Produit | Versions touchées | Corrigé en |
|---|---|---|
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | Versions non publiées | |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | Versions non publiées | |
| Red Hat Developer Tools | Versions non publiées | |
| Red Hat Enterprise Linux 8 | Versions non publiées | |
| Red Hat Enterprise Linux 9 | Versions non publiées | |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | Versions non publiées | |
| Red Hat Enterprise Linux 9.2 Extended Update Support | Versions non publiées | |
| Red Hat OpenShift Container Platform 4.12 | Versions non publiées | |
| Red Hat OpenShift Container Platform 4.13 | Versions non publiées |