Bug 1868931 (CVE-2020-12403)

Summary: CVE-2020-12403 nss: CHACHA20-POLY1305 decryption with undersized tag leads to out-of-bounds read
Product: [Other] Security Response Reporter: Huzaifa S. Sidhpurwala <huzaifas>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: crypto-team, dueno, elio.maldonado.batiz, kdudka, kengert, nss-nspr-maint, tvainio
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nss 3.55 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the way CHACHA20-POLY1305 was implemented in NSS. When using multi-part Chacha20, it could cause out-of-bounds reads. This issue was fixed by explicitly disabling multi-part ChaCha20 (which was not functioning correctly) and strictly enforcing tag length. The highest threat from this vulnerability is to confidentiality and system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-30 03:57:20 UTC 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: 1868932, 1868934, 1869064, 1898925, 1898926, 1898934, 1905153    
Bug Blocks: 1868933    

Description Huzaifa S. Sidhpurwala 2020-08-14 12:59:14 UTC
As per upstream:

Bug 1636771 (CVE-2020-12403) - Explicitly disable multi-part ChaCha20 (which was not functioning correctly) and more strictly enforce tag length. This was fixed in nss-3.55

Upstream bug: (currently private) https://bugzilla.mozilla.org/show_bug.cgi?id=1636771

Upstream patchset:
https://hg.mozilla.org/projects/nss/rev/f282556e6cc7715f5754aeaadda6f902590e7e38
https://hg.mozilla.org/projects/nss/rev/c25adfdfab34ddb08d3262aac3242e3399de1095

Comment 1 Huzaifa S. Sidhpurwala 2020-08-14 12:59:19 UTC
Acknowledgments:

Name: the Mozilla Project

Comment 2 Huzaifa S. Sidhpurwala 2020-08-14 12:59:23 UTC
External References:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/NSS_3.55_release_notes

Comment 3 Huzaifa S. Sidhpurwala 2020-08-14 12:59:54 UTC
Created nss tracking bugs for this issue:

Affects: fedora-all [bug 1868932]

Comment 7 errata-xmlrpc 2020-09-29 20:58:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:4076 https://access.redhat.com/errata/RHSA-2020:4076

Comment 8 Product Security DevOps Team 2020-09-30 03:57:20 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-12403

Comment 9 errata-xmlrpc 2021-02-16 14:26:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:0538 https://access.redhat.com/errata/RHSA-2021:0538

Comment 10 errata-xmlrpc 2021-03-09 09:17:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.4 Advanced Update Support
  Red Hat Enterprise Linux 7.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 7.4 Telco Extended Update Support

Via RHSA-2021:0758 https://access.redhat.com/errata/RHSA-2021:0758

Comment 11 errata-xmlrpc 2021-03-16 14:52:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.6 Extended Update Support

Via RHSA-2021:0876 https://access.redhat.com/errata/RHSA-2021:0876

Comment 12 errata-xmlrpc 2021-03-30 09:27:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.7 Extended Update Support

Via RHSA-2021:1026 https://access.redhat.com/errata/RHSA-2021:1026