7.5Alta

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

Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 8; Red Hat Red Hat Ansible Automation Platform 2.4 for RHEL 9; Red Hat Red Hat Developer Tools; Red Ha… Publicada: (hace 2 años)

Descripción

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.

Debilidad (CWE): CWE-401

Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.

Productos y versiones afectados

Referencias y parches