Bug 1207536 (CVE-2023-0215) - VUL-0: CVE-2023-0215: openssl: Use-after-free following BIO_new_NDEF
Summary: VUL-0: CVE-2023-0215: openssl: Use-after-free following BIO_new_NDEF
Status: RESOLVED FIXED
Alias: CVE-2023-0215
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/354990/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-0215:5.9:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-25 14:38 UTC by Robert Frohl
Modified: 2024-05-03 10:43 UTC (History)
7 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 27 Robert Frohl 2023-02-07 16:31:08 UTC
CVE-2023-0215 Use-after-free following BIO_new_NDEF [MODERATE severity] 07 February 2023:

    The public API function BIO_new_NDEF is a helper function used for streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL to support the SMIME, CMS and PKCS7 streaming capabilities, but may also be called directly by end user applications. The function receives a BIO from the caller, prepends a new BIO_f_asn1 filter BIO onto the front of it to form a BIO chain, and then returns the new head of the BIO chain to the caller. Under certain conditions, for example if a CMS recipient public key is invalid, the new filter BIO is freed and the function returns a NULL result indicating a failure. However, in this case, the BIO chain is not properly cleaned up and the BIO passed by the caller still retains internal pointers to the previously freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO then a use-after-free will occur. This will most likely result in a crash. This scenario occurs directly in the internal function B64_write_ASN1() which may cause BIO_new_NDEF() to be called and will subsequently call BIO_pop() on the BIO. This internal function is in turn called by the public API functions PEM_write_bio_ASN1_stream, PEM_write_bio_CMS_stream, PEM_write_bio_PKCS7_stream, SMIME_write_ASN1, SMIME_write_CMS and SMIME_write_PKCS7. Other public API functions that may be impacted by this include i2d_ASN1_bio_stream, BIO_new_CMS, BIO_new_PKCS7, i2d_CMS_bio_stream and i2d_PKCS7_bio_stream. The OpenSSL cms and smime command line applications are similarly affected. Thanks to Octavio Galland (Max Planck Institute for Security and Privacy). Thanks to Marcel Böhme (Max Planck Institute for Security and Privacy). Fix developed by Viktor Dukhovni. Fix developed by Matt Caswell.

        Fixed in OpenSSL 3.0.8 (Affected since 3.0.0)
        Fixed in OpenSSL 1.1.1t (Affected since 1.1.1)
        Fixed in OpenSSL 1.0.2zg (Affected since 1.0.2)
Comment 29 Swamp Workflow Management 2023-02-07 20:21:34 UTC
SUSE-SU-2023:0312-1: An update that solves 8 vulnerabilities and has two fixes is now available.

Category: security (important)
Bug References: 1195149,1206222,1207533,1207534,1207535,1207536,1207538,1207539,1207540,1207541
CVE References: CVE-2022-4203,CVE-2022-4304,CVE-2022-4450,CVE-2023-0215,CVE-2023-0216,CVE-2023-0217,CVE-2023-0286,CVE-2023-0401
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    openssl-3-3.0.1-150400.4.17.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    openssl-3-3.0.1-150400.4.17.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 30 Swamp Workflow Management 2023-02-07 20:22:58 UTC
SUSE-SU-2023:0308-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 1207533,1207534,1207536
CVE References: CVE-2022-4304,CVE-2023-0215,CVE-2023-0286
JIRA References: 
Sources used:
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    openssl-1_1-1.1.0i-150100.14.42.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    openssl-1_1-1.1.0i-150100.14.42.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    openssl-1_1-1.1.0i-150100.14.42.1
SUSE CaaS Platform 4.0 (src):    openssl-1_1-1.1.0i-150100.14.42.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 31 Swamp Workflow Management 2023-02-07 20:23:47 UTC
SUSE-SU-2023:0307-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 1207533,1207534,1207536
CVE References: CVE-2022-4304,CVE-2023-0215,CVE-2023-0286
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 11-SP4-LTSS-EXTREME-CORE (src):    openssl1-1.0.1g-0.58.56.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 32 Swamp Workflow Management 2023-02-07 20:25:32 UTC
SUSE-SU-2023:0305-1: An update that fixes three vulnerabilities is now available.

Category: security (important)
Bug References: 1207533,1207534,1207536
CVE References: CVE-2022-4304,CVE-2023-0215,CVE-2023-0286
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server for SAP 15-SP3 (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server 15-SP3-LTSS (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Module for Legacy Software 15-SP4 (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise High Performance Computing 15-SP3-LTSS (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise High Performance Computing 15-SP3-ESPOS (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Enterprise Storage 7.1 (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Enterprise Storage 7 (src):    openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE CaaS Platform 4.0 (src):    openssl-1_0_0-1.0.2p-150000.3.65.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 33 Swamp Workflow Management 2023-02-07 20:26:49 UTC
SUSE-SU-2023:0311-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1207533,1207534,1207536,1207538
CVE References: CVE-2022-4304,CVE-2022-4450,CVE-2023-0215,CVE-2023-0286
JIRA References: 
Sources used:
openSUSE Leap Micro 5.3 (src):    openssl-1_1-1.1.1l-150400.7.22.1
openSUSE Leap 15.4 (src):    openssl-1_1-1.1.1l-150400.7.22.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    openssl-1_1-1.1.1l-150400.7.22.1
SUSE Linux Enterprise Micro 5.3 (src):    openssl-1_1-1.1.1l-150400.7.22.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 34 Swamp Workflow Management 2023-02-07 20:28:20 UTC
SUSE-SU-2023:0306-1: An update that solves three vulnerabilities and has one errata is now available.

Category: security (important)
Bug References: 1201627,1207533,1207534,1207536
CVE References: CVE-2022-4304,CVE-2023-0215,CVE-2023-0286
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    openssl-1_0_0-1.0.2p-3.64.1
SUSE OpenStack Cloud 9 (src):    openssl-1_0_0-1.0.2p-3.64.1
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    openssl-1_0_0-1.0.2p-3.64.1
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    openssl-1_0_0-1.0.2p-3.64.1
SUSE Linux Enterprise Server 12-SP5 (src):    openssl-1_0_0-1.0.2p-3.64.1
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    openssl-1_0_0-1.0.2p-3.64.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 35 Swamp Workflow Management 2023-02-07 20:32:56 UTC
SUSE-SU-2023:0310-1: An update that solves four vulnerabilities and has two fixes is now available.

Category: security (important)
Bug References: 1121365,1198472,1207533,1207534,1207536,1207538
CVE References: CVE-2022-4304,CVE-2022-4450,CVE-2023-0215,CVE-2023-0286
JIRA References: 
Sources used:
openSUSE Leap Micro 5.2 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Manager Server 4.2 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Manager Retail Branch Server 4.2 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Manager Proxy 4.2 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise Server for SAP 15-SP3 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise Server 15-SP3-LTSS (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise Realtime Extension 15-SP3 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise Micro 5.2 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise Micro 5.1 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise High Performance Computing 15-SP3-LTSS (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise High Performance Computing 15-SP3-ESPOS (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Enterprise Storage 7.1 (src):    openssl-1_1-1.1.1d-150200.11.57.1
SUSE Enterprise Storage 7 (src):    openssl-1_1-1.1.1d-150200.11.57.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 36 Swamp Workflow Management 2023-02-07 20:34:25 UTC
SUSE-SU-2023:0309-1: An update that fixes four vulnerabilities is now available.

Category: security (important)
Bug References: 1207533,1207534,1207536,1207538
CVE References: CVE-2022-4304,CVE-2022-4450,CVE-2023-0215,CVE-2023-0286
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    openssl-1_1-1.1.1d-2.75.1
SUSE OpenStack Cloud 9 (src):    openssl-1_1-1.1.1d-2.75.1
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    openssl-1_1-1.1.1d-2.75.1
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    openssl-1_1-1.1.1d-2.75.1
SUSE Linux Enterprise Server 12-SP5 (src):    openssl-1_1-1.1.1d-2.75.1
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    openssl-1_1-1.1.1d-2.75.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 39 Otto Hollmann 2023-02-08 14:18:09 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/289580
> SUSE:SLE-15-SP4:Update  openssl-3          https://build.suse.de/request/show/289268
> openSUSE:Factory        openssl-3          https://build.opensuse.org/request/show/1063740
> ------------------------------------------------------------------------------------
> SUSE:SLE-15-SP5:GA      openssl-1_1        https://build.suse.de/request/show/289512
> SUSE:SLE-15-SP4:Update  openssl-1_1        https://build.suse.de/request/show/289310
> SUSE:SLE-15-SP2:Update  openssl-1_1        https://build.suse.de/request/show/289308
> SUSE:SLE-15-SP1:Update  openssl-1_1        https://build.suse.de/request/show/289320
> SUSE:SLE-12-SP4:Update  openssl-1_1        https://build.suse.de/request/show/289309
> openSUSE:Factory        openssl-1_1        https://build.opensuse.org/request/show/1063743
> ------------------------------------------------------------------------------------
> SUSE:SLE-15:Update      openssl-1_0_0      https://build.suse.de/request/show/289382
> SUSE:SLE-12-SP4:Update  openssl-1_0_0      https://build.suse.de/request/show/289381
> SUSE:SLE-11-SP3:Update  openssl1           https://build.suse.de/request/show/289383
> openSUSE:Factory        openssl-1_0_0      https://build.opensuse.org/request/show/1063738
> ------------------------------------------------------------------------------------
> SUSE:SLE-12:Update      compat-openssl098  not affected
> SUSE:SLE-11-SP1:Update  openssl            not affected
Comment 45 Otto Hollmann 2023-03-03 10:05:01 UTC
Submitted here:
> SUSE:SLE-12-SP2:Update  openssl https://build.suse.de/request/show/291248
Comment 46 Maintenance Automation 2023-03-09 12:30:02 UTC
SUSE-SU-2023:0684-1: An update that solves three vulnerabilities and has two fixes can now be installed.

Category: security (important)
Bug References: 1201627, 1202062, 1207533, 1207534, 1207536
CVE References: CVE-2022-4304, CVE-2023-0215, CVE-2023-0286
Sources used:
SUSE Linux Enterprise Server 12 SP2 BCL 12-SP2 (src): openssl-1.0.2j-60.86.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 53 Maintenance Automation 2023-06-06 12:31:14 UTC
SUSE-SU-2023:0305-2: An update that solves three vulnerabilities can now be installed.

Category: security (important)
Bug References: 1207533, 1207534, 1207536
CVE References: CVE-2022-4304, CVE-2023-0215, CVE-2023-0286
Sources used:
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Enterprise Storage 7.1 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Enterprise Storage 7 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE CaaS Platform 4.0 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
openSUSE Leap 15.4 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
Legacy Module 15-SP4 (src): openssl-1_0_0-1.0.2p-150000.3.65.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): openssl-1_0_0-1.0.2p-150000.3.65.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 60 Robert Frohl 2024-05-03 10:43:43 UTC
done, closing