Improper resource allocation In github.com/golang-fips/openssl/openssl
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
go | - | ||
go | - | ||
go | 2.0.1 | ||
go | 0.2.9 | ||
go | 0.2.9 | ||
rpm rhel9 | 0:5.1.1-2.el9_4 | ||
rpm rhel9.2 | 0:1.19.13-7.el9_2 | ||
rpm rhel7 | - | - | |
rpm rhel9 | 6:0.7.3-4.el9_4 | ||
rpm rhel9 | - | - |
1-10 of 29
10
Aliases
References