We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Zendesk (Helpdesk and Chat)
Bugpilot (Bug tracking)

Ok

THREATINT CVE Home CVE Diag Help
PUBLISHED

CVE-2024-1394

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

Reserved:2024-02-09
Published:2024-03-21
Updated:2024-04-18

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.



HIGH: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Problem types

Missing Release of Memory after Effective Lifetime

Product status

Default status
affected

0:1.4.5-1.el8ap before *
unaffected

Default status
affected

0:1.4.5-1.el9ap before *
unaffected

Default status
affected

0:1.19.13-6.el7_9 before *
unaffected

Default status
affected

8090020240313170136.26eb71ac before *
unaffected

Default status
affected

0:5.1.1-2.el8_9 before *
unaffected

Default status
affected

0:9.2.10-8.el8_9 before *
unaffected

Default status
affected

0:1.20.12-2.el9_3 before *
unaffected

Default status
affected

0:9.2.10-8.el9_3 before *
unaffected

Default status
affected

0:5.1.1-2.el9_3 before *
unaffected

Default status
affected

1:1.23.4-5.2.rhaos4.12.el9 before *
unaffected

Default status
affected

0:0.16.0-2.2.rhaos4.12.el8 before *
unaffected

Default status
affected

1:1.4.0-1.1.rhaos4.12.el8 before *
unaffected

Default status
affected

0:1.25.5-13.1.rhaos4.12.git76343da.el8 before *
unaffected

Default status
affected

0:1.25.0-2.2.el9 before *
unaffected

Default status
affected

0:2.14.0-5.2.rhaos4.12.el9 before *
unaffected

Default status
affected

0:4.12.0-202403251017.p0.gd4c9e3c.assembly.stream.el9 before *
unaffected

Default status
affected

3:4.4.1-2.1.rhaos4.12.el8 before *
unaffected

Default status
affected

3:1.1.6-5.2.rhaos4.12.el8 before *
unaffected

Default status
affected

2:1.9.4-3.2.rhaos4.12.el8 before *
unaffected

Default status
affected

0:0.19.0-1.3.rhaos4.14.el8 before *
unaffected

Default status
affected

1:1.4.0-1.2.rhaos4.14.el8 before *
unaffected

Default status
affected

0:1.27.4-6.1.rhaos4.14.gitd09e4c0.el9 before *
unaffected

Default status
affected

0:1.27.0-3.1.el8 before *
unaffected

Default status
affected

0:2.16.2-2.1.rhaos4.14.el9 before *
unaffected

Default status
affected

0:4.14.0-202403261640.p0.gf7b14a9.assembly.stream.el8 before *
unaffected

Default status
affected

0:4.14.0-202403251040.p0.g607e2dd.assembly.stream.el8 before *
unaffected

Default status
affected

3:4.4.1-11.3.rhaos4.14.el8 before *
unaffected

Default status
affected

2:1.11.2-10.3.rhaos4.14.el9 before *
unaffected

Default status
affected

0:4.14.19-202403280926.p0.gc1f8861.assembly.4.14.19.el9 before *
unaffected

Default status
affected

1:1.29.1-20.3.rhaos4.15.el8 before *
unaffected

Default status
affected

0:0.20.0-1.1.rhaos4.15.el8 before *
unaffected

Default status
affected

1:1.4.0-1.2.rhaos4.15.el8 before *
unaffected

Default status
affected

0:1.28.4-8.rhaos4.15.git24f50b9.el9 before *
unaffected

Default status
affected

0:1.28.0-3.1.el9 before *
unaffected

Default status
affected

0:2.16.2-2.1.rhaos4.15.el9 before *
unaffected

Default status
affected

0:4.15.0-202403211240.p0.g62c4d45.assembly.stream.el8 before *
unaffected

Default status
affected

0:4.15.0-202403211549.p0.g2e3cca1.assembly.stream.el8 before *
unaffected

Default status
affected

3:4.4.1-21.1.rhaos4.15.el8 before *
unaffected

Default status
affected

4:1.1.12-1.1.rhaos4.15.el8 before *
unaffected

Default status
affected

2:1.11.2-21.2.rhaos4.15.el9 before *
unaffected

Default status
affected

0:4.15.6-202403280951.p0.g94b1c2a.assembly.4.15.6.el9 before *
unaffected

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Default status
unknown

Default status
affected

Default status
affected

Default status
affected

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unaffected

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unaffected

Default status
unaffected

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unaffected

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unaffected

Default status
unknown

Default status
unaffected

Default status
unaffected

Default status
unaffected

Default status
unaffected

Default status
unaffected

Default status
unknown

Default status
unaffected

Default status
unaffected

Default status
unknown

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Default status
affected

Default status
unaffected

Default status
affected

Default status
affected

Default status
affected

Default status
unaffected

Default status
affected

Default status
affected

Default status
affected

Default status
unaffected

Default status
unknown

Default status
unknown

Default status
unknown

Default status
unaffected

Default status
unknown

Timeline

2024-02-06:Reported to Red Hat.
2024-03-20:Made public.

Credits

Red Hat would like to thank @qmuntal and @r3kumar for reporting this issue.

References

https://access.redhat.com/errata/RHSA-2024:1462 (RHSA-2024:1462) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1468 (RHSA-2024:1468) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1472 (RHSA-2024:1472) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1501 (RHSA-2024:1501) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1502 (RHSA-2024:1502) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1561 (RHSA-2024:1561) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1563 (RHSA-2024:1563) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1566 (RHSA-2024:1566) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1567 (RHSA-2024:1567) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1574 (RHSA-2024:1574) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1640 (RHSA-2024:1640) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1644 (RHSA-2024:1644) vendor-advisory

https://access.redhat.com/errata/RHSA-2024:1646 (RHSA-2024:1646) vendor-advisory

https://access.redhat.com/security/cve/CVE-2024-1394 vdb-entry

https://bugzilla.redhat.com/show_bug.cgi?id=2262921 (RHBZ#2262921) issue-tracking

https://github.com/golang-fips/openssl/commit/85d31d0d257ce842c8a1e63c4d230ae850348136

https://github.com/golang-fips/openssl/security/advisories/GHSA-78hx-gp6g-7mj6

https://github.com/microsoft/go-crypto-openssl/commit/104fe7f6912788d2ad44602f77a0a0a62f1f259f

https://pkg.go.dev/vuln/GO-2024-2660

https://vuln.go.dev/ID/GO-2024-2660.json

cve.org CVE-2024-1394

nvd.nist.gov CVE-2024-1394

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-1394