Bug 2223355 (CVE-2023-24532)

Summary: CVE-2023-24532 golang: crypto/internal/nistec: specific unreduced P-256 scalars produce incorrect results
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, abenaiss, aileenc, amasferr, amctagga, aoconnor, asm, bniver, bodavis, chazlett, dbenoit, dcadzow, dfreiber, dhughes, dkenigsb, dsimansk, dymurray, eaguilar, ebaron, eglynn, ellin, emachado, eric.wittmann, fdeutsch, flucifre, gmeno, gparvin, ibolton, janstey, jburrell, jcantril, jjoyce, jkang, jkoehler, jmatthew, jmontleo, jpallich, jwendell, lball, lhh, lmadsen, matzew, mbenjamin, mburns, mgarciac, mhackett, mkudlej, mnewsome, mrunge, mwringe, nboldt, njean, nobody, oramraz, owatkins, pahickey, pantinor, peholase, pgrist, pjindal, rcernich, rhos-maint, rhuss, rjohnson, rogbas, scorneli, sfroberg, shbose, sipoyare, slucidi, smullick, sostapov, sseago, stcannon, teagle, tjochec, tstellar, twalsh, vereddy, vkumar, whayutin
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Go 1.20.2 and Go 1.19.7 Doc Type: ---
Doc Text:
A flaw was found in the crypto/internal/nistec golang library. The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect result if called with some specific unreduced scalars, such as a scalar larger than the order of the curve. This does not impact usages of crypto/ecdsa or crypto/ecdh.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2223364, 2223365, 2223366, 2223367, 2223368, 2223369, 2223370, 2223371, 2223372, 2223373, 2223374, 2223375, 2223376, 2224011    
Bug Blocks: 2223394    

Description Avinash Hanwate 2023-07-17 13:16:33 UTC
The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect result if called with some specific unreduced scalars (a scalar larger than the order of the curve). This does not impact usages of crypto/ecdsa or crypto/ecdh.

https://go.dev/cl/471255
https://pkg.go.dev/vuln/GO-2023-1621
https://groups.google.com/g/golang-announce/c/3-TpUx48iQY
https://go.dev/issue/58647

Comment 1 Avinash Hanwate 2023-07-17 13:53:13 UTC
Created golang tracking bugs for this issue:

Affects: epel-all [bug 2223364]
Affects: fedora-all [bug 2223365]

Comment 6 errata-xmlrpc 2023-08-14 01:03:05 UTC
This issue has been addressed in the following products:

  MTA-6.2-RHEL-9
  MTA-6.2-RHEL-8

Via RHSA-2023:4627 https://access.redhat.com/errata/RHSA-2023:4627

Comment 7 errata-xmlrpc 2023-08-23 00:18:09 UTC
This issue has been addressed in the following products:

  OSSO-1.1-RHEL-8

Via RHSA-2023:4657 https://access.redhat.com/errata/RHSA-2023:4657

Comment 8 errata-xmlrpc 2023-08-31 00:59:12 UTC
This issue has been addressed in the following products:

  Red Hat Migration Toolkit for Containers 1.7

Via RHSA-2023:4892 https://access.redhat.com/errata/RHSA-2023:4892

Comment 9 errata-xmlrpc 2023-09-20 15:43:14 UTC
This issue has been addressed in the following products:

  OADP-1.1-RHEL-8

Via RHSA-2023:5314 https://access.redhat.com/errata/RHSA-2023:5314

Comment 10 errata-xmlrpc 2023-10-19 16:50:22 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 16.2

Via RHSA-2023:5935 https://access.redhat.com/errata/RHSA-2023:5935

Comment 11 errata-xmlrpc 2023-10-20 17:18:40 UTC
This issue has been addressed in the following products:

  STF-1.5-RHEL-8

Via RHSA-2023:5976 https://access.redhat.com/errata/RHSA-2023:5976

Comment 12 errata-xmlrpc 2023-10-26 00:47:49 UTC
This issue has been addressed in the following products:

  RODOO-1.0-RHEL-8

Via RHSA-2023:5947 https://access.redhat.com/errata/RHSA-2023:5947