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.
Vulnerable Products
red hat:red hat openshift container platform 4.14
red hat:red hat openstack platform 16.1
red hat:red hat ansible automation platform 2.4 for rhel 8
red hat:red hat enterprise linux 8
red hat:red hat enterprise linux 9.0 update services for sap solutions
red hat:red hat openshift dev spaces
red hat:red hat developer tools
red hat:nbde tang server
red hat:red hat certification program for red hat enterprise linux 9
red hat:red hat enterprise linux 7
red hat:red hat openstack platform 17.1
red hat:red hat openshift container platform 4.13
red hat:red hat software collections
red hat:rhodf-4.16-rhel-9
red hat:red hat enterprise linux 9.2 extended update support
red hat:red hat service interconnect 1
red hat:red hat openshift virtualization 4
red hat:red hat openshift gitops
red hat:red hat certification for red hat enterprise linux 8
red hat:red hat openstack platform 16.2
red hat:red hat openstack platform 18.0
red hat:openshift pipelines
red hat:red hat storage 3
red hat:red hat enterprise linux 9
red hat:openshift serverless
red hat:red hat ansible automation platform 1.2
red hat:red hat openshift container storage 4
red hat:red hat openshift container platform 4.12
red hat:red hat ansible automation platform 2.4 for rhel 9
red hat:red hat openstack platform 17.1 for rhel 9
red hat:red hat openshift container platform 4.15
red hat:red hat openshift container platform 4
red hat:openshift developer tools and services
red hat:red hat openshift on aws
red hat:red hat openstack platform 17.1 for rhel 8