Golang-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 Ansible Automation Platform 2.4 for RHEL 9、Red Hat Developer Tools、Red Hat Enterprise Linux 8、Red Hat Enterprise Linux 9、Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions +29
CVE 记录列出的受影响产品:Red Hat · Red Hat OpenShift Container Platform 4、Red Hat · Red Hat OpenShift Container Platform 4.12、Red Hat · Red Hat OpenShift Container Platform 4.13、Red Hat · Red Hat OpenShift Container Platform 4.14、Red Hat · Red Hat OpenShift Container Platform 4.15
CVE 记录列出的受影响产品:Red Hat · Red Hat Ansible Automation Platform 1.2、Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 8、Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 9
CVE 记录列出的受影响产品:Red Hat · Red Hat OpenShift Container Platform 4、Red Hat · Red Hat OpenShift Container Platform 4.12、Red Hat · Red Hat OpenShift Container Platform 4.13、Red Hat · Red Hat OpenShift Container Platform 4.14、Red Hat · Red Hat OpenShift Container Platform 4.15nday 产品登记表中 OpenShift 的产品类型
CVE 记录列出的受影响产品:Red Hat · Red Hat Ansible Automation Platform 1.2、Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 8、Red Hat · Red Hat Ansible Automation Platform 2.4 for RHEL 9nday 产品登记表中 Ansible 的产品类型
当前阶段
DIS
披露
CVSS
7.5 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
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.