Bug 1216163 (CVE-2023-5363) - VUL-0: CVE-2023-5363: openssl: Incorrect cipher key and IV length processing
Summary: VUL-0: CVE-2023-5363: openssl: Incorrect cipher key and IV length processing
Status: RESOLVED FIXED
Alias: CVE-2023-5363
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/381641/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-5363:7.5:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-12 07:07 UTC by Alexander Bergmann
Modified: 2024-06-07 15:01 UTC (History)
6 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 5 Otto Hollmann 2023-10-17 07:44:18 UTC
Upstream patch applies cleanly in SLE15-SP4 and SP5 codestream. Here are the requests:
> https://build.suse.de/request/show/310650
> https://build.suse.de/request/show/310651

Remaining codestreams (openSUSE:Factory, ALP, SLE15-SP6) will be fixed by version upgrade after CRD.
Comment 6 Marcus Meissner 2023-10-18 12:50:14 UTC
as far as I see the relevant code is very different in openssl 1.1, so I consider 1.1 and older not affected.
Comment 7 Gianluca Gabrielli 2023-10-24 15:24:26 UTC
Public
------

OpenSSL Security Advisory [24th October 2023]
=============================================

Incorrect cipher key & IV length processing (CVE-2023-5363)
===========================================================

Severity: Moderate

Issue summary: A bug has been identified in the processing of key and
initialisation vector (IV) lengths.  This can lead to potential truncation
or overruns during the initialisation of some symmetric ciphers.

Impact summary: A truncation in the IV can result in non-uniqueness,
which could result in loss of confidentiality for some cipher modes.

When calling EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or
EVP_CipherInit_ex2() the provided OSSL_PARAM array is processed after
the key and IV have been established.  Any alterations to the key length,
via the "keylen" parameter or the IV length, via the "ivlen" parameter,
within the OSSL_PARAM array will not take effect as intended, potentially
causing truncation or overreading of these values.  The following ciphers
and cipher modes are impacted: RC2, RC4, RC5, CCM, GCM and OCB.

For the CCM, GCM and OCB cipher modes, truncation of the IV can result in
loss of confidentiality.  For example, when following NIST's SP 800-38D
section 8.2.1 guidance for constructing a deterministic IV for AES in
GCM mode, truncation of the counter portion could lead to IV reuse.

Both truncations and overruns of the key and overruns of the IV will
produce incorrect results and could, in some cases, trigger a memory
exception.  However, these issues are not currently assessed as security
critical.

Changing the key and/or IV lengths is not considered to be a common operation
and the vulnerable API was recently introduced. Furthermore it is likely that
application developers will have spotted this problem during testing since
decryption would fail unless both peers in the communication were similarly
vulnerable. For these reasons we expect the probability of an application being
vulnerable to this to be quite low. However if an application is vulnerable then
this issue is considered very serious. For these reasons we have assessed this
issue as Moderate severity overall.

The OpenSSL SSL/TLS implementation is not affected by this issue.

The OpenSSL 3.0 and 3.1 FIPS providers are not affected by this because
the issue lies outside of the FIPS provider boundary.

OpenSSL 3.1 and 3.0 are vulnerable to this issue.

OpenSSL 3.0 users should upgrade to OpenSSL 3.0.12.
OpenSSL 3.1 users should upgrade to OpenSSL 3.1.4.

This issue was reported on 21st September 2023 by Tony Battersby of
Cybernetics.  The fix was developed by Dr Paul Dale.  This problem was
independently reported on the 3rd of December 2022 as part of issue
#19822, but it was not recognised as a security vulnerability at that
time.

General Advisory Notes
======================

URL for this Security Advisory:
https://www.openssl.org/news/secadv/20231024.txt

Note: the online version of the advisory may be updated with additional details
over time.

For details of OpenSSL severity classifications please see:
https://www.openssl.org/policies/general/security-policy.html

OpenSSL 1.1.1 is out of support and no longer receiving public updates. Extended
support is available for premium support customers:
https://www.openssl.org/support/contracts.html
Comment 8 OBSbugzilla Bot 2023-10-25 08:25:02 UTC
This is an autogenerated message for OBS integration:
This bug (1216163) was mentioned in
https://build.opensuse.org/request/show/1120189 Factory / openssl-3
Comment 9 Maintenance Automation 2023-10-25 08:30:06 UTC
SUSE-SU-2023:4190-1: An update that solves two vulnerabilities can now be installed.

Category: security (important)
Bug References: 1213853, 1216163
CVE References: CVE-2023-3817, CVE-2023-5363
Sources used:
openSUSE Leap 15.5 (src): openssl-3-3.0.8-150500.5.14.1
Basesystem Module 15-SP5 (src): openssl-3-3.0.8-150500.5.14.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 10 Maintenance Automation 2023-10-25 08:30:08 UTC
SUSE-SU-2023:4189-1: An update that solves two vulnerabilities can now be installed.

Category: security (important)
Bug References: 1213853, 1216163
CVE References: CVE-2023-3817, CVE-2023-5363
Sources used:
openSUSE Leap 15.4 (src): openssl-3-3.0.8-150400.4.37.1
openSUSE Leap Micro 5.3 (src): openssl-3-3.0.8-150400.4.37.1
openSUSE Leap Micro 5.4 (src): openssl-3-3.0.8-150400.4.37.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): openssl-3-3.0.8-150400.4.37.1
SUSE Linux Enterprise Micro 5.3 (src): openssl-3-3.0.8-150400.4.37.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): openssl-3-3.0.8-150400.4.37.1
SUSE Linux Enterprise Micro 5.4 (src): openssl-3-3.0.8-150400.4.37.1
Basesystem Module 15-SP4 (src): openssl-3-3.0.8-150400.4.37.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Otto Hollmann 2023-10-30 08:35:58 UTC
All affected codestreams fixed, assigning back to security team.

> Codestream                   Package    Request
> ---------------------------------------------------------------------------------
> SUSE:SLE-15-SP5:Update       openssl-3  https://build.suse.de/request/show/310651
> SUSE:SLE-15-SP4:Update       openssl-3  https://build.suse.de/request/show/310650
> SUSE:ALP:Source:Standard:1.0 openssl-3  https://build.suse.de/request/show/311778
> openSUSE:Factory             openssl-3  https://build.opensuse.org/request/show/1120189
> ---------------------------------------------------------------------------------
> SUSE:ALP:Source:Standard:1.0 openssl    https://build.suse.de/request/show/311777
> openSUSE:Factory             openssl    https://build.opensuse.org/request/show/1120188

Package in SLE15-SP6 is right now inherited from SLE15-SP5 but will be upgraded to the latest version that contains this fix (PED-6570)
Comment 20 Robert Frohl 2024-06-07 15:01:39 UTC
done, closing