Bug 2223016 (CVE-2023-2975)

Summary: CVE-2023-2975 openssl: AES-SIV cipher implementation contains a bug that causes it to ignore empty associated data entries
Product: [Other] Security Response Reporter: Zack Miele <zmiele>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aazores, asoldano, bbaranow, berrange, bmaxwell, bootloader-eng-team, brian.stansberry, cdewolf, chazlett, cllang, csutherl, darran.lofthouse, dbelyavs, ddepaula, dhorak, dkreling, dosoudil, eaguilar, ebaron, fjuma, gzaronik, ivassile, iweiss, jclere, jferlan, jkang, jpallich, kraxel, kyoshida, lgao, mmadzin, mosmerov, msochure, mstefank, msvehla, nwallace, pbonzini, peholase, pjindal, plodge, pmackay, rh-spice-bugs, rstancel, sfroberg, smaestri, szappis, tom.jenkinson, virt-maint, ymankad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in OpenSSL. The AES-SIV cipher implementation contains a bug that causes it to ignore empty associated data entries, which are unauthenticated as a consequence. Applications that use the AES-SIV algorithm and want to authenticate empty data entries as associated data can be misled by removing, adding, or reordering such empty entries as these are ignored by the OpenSSL implementation. The AES-SIV algorithm allows for the authentication of multiple associated data entries and encryption. To authenticate empty data, the application has to call EVP_EncryptUpdate() (or EVP_CipherUpdate()) with a NULL pointer as the output buffer and 0 as the input buffer length. The AES-SIV implementation in OpenSSL returns success for such a call instead of performing the associated data authentication operation. Thus, the empty data will not be authenticated.
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: 2223017, 2223018, 2223019, 2223020, 2223021, 2223022, 2223023, 2223024, 2223025, 2223026, 2223820, 2223821, 2223822, 2223823, 2223824, 2223825, 2223826, 2223827    
Bug Blocks: 2223014    

Description Zack Miele 2023-07-14 21:01:37 UTC
Issue summary: The AES-SIV cipher implementation contains a bug that causes
it to ignore empty associated data entries which are unauthenticated as
a consequence.

Impact summary: Applications that use the AES-SIV algorithm and want to
authenticate empty data entries as associated data can be mislead by removing
adding or reordering such empty entries as these are ignored by the OpenSSL
implementation. We are currently unaware of any such applications.

The AES-SIV algorithm allows for authentication of multiple associated
data entries along with the encryption. To authenticate empty data the
application has to call EVP_EncryptUpdate() (or EVP_CipherUpdate()) with
NULL pointer as the output buffer and 0 as the input buffer length.
The AES-SIV implementation in OpenSSL just returns success for such a call
instead of performing the associated data authentication operation.
The empty data thus will not be authenticated.

As this issue does not affect non-empty associated data authentication and
we expect it to be rare for an application to use empty associated data
entries this is qualified as Low severity issue.

https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=6a83f0c958811f07e0d11dfc6b5a6a98edfd5bdc
https://www.openssl.org/news/secadv/20230714.txt
https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=00e2f5eea29994d19293ec4e8c8775ba73678598

This has not been included in a specific release but has been added to the master, 3.1, and 3.0 branches
https://github.com/openssl/openssl/pull/21384

Comment 2 Sandipan Roy 2023-07-19 04:35:45 UTC
Created mingw-openssl tracking bugs for this issue:

Affects: fedora-37 [bug 2223822]
Affects: fedora-38 [bug 2223825]


Created openssl tracking bugs for this issue:

Affects: fedora-37 [bug 2223823]
Affects: fedora-38 [bug 2223826]


Created openssl1.1 tracking bugs for this issue:

Affects: fedora-37 [bug 2223824]
Affects: fedora-38 [bug 2223827]


Created openssl11 tracking bugs for this issue:

Affects: epel-7 [bug 2223820]


Created openssl3 tracking bugs for this issue:

Affects: epel-8 [bug 2223821]

Comment 5 errata-xmlrpc 2024-04-30 10:52:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2447 https://access.redhat.com/errata/RHSA-2024:2447