Bug 2342757 (CVE-2024-12797)

Summary: CVE-2024-12797 openssl: RFC7250 handshakes with unauthenticated servers don't abort as expected
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: adudiak, akostadi, amasferr, cbartlet, chazlett, crizzo, csutherl, dbelyavs, dfreiber, dmayorov, drow, jburrell, jcantril, jclere, jlledo, jmitchel, jtanner, jvasik, kaycoth, kshier, mmakovy, omaciel, pjindal, plodge, rblanco, rojacob, saroy, security-response-team, stcannon, szappis, tjochec, vkumar, vmugicag, yguenane
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 flaw was found in OpenSSL's RFC7250 Raw Public Key (RPK) authentication. This vulnerability allows man-in-the-middle (MITM) attacks via failure to abort TLS/DTLS handshakes when the server's RPK does not match the expected key despite the SSL_VERIFY_PEER verification mode being set.
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: 2345072, 2345070, 2345071, 2345073    
Bug Blocks:    
Deadline: 2025-02-11   

Description OSIDB Bzimport 2025-01-29 09:28:12 UTC
Severity: (High)
Issue summary: Clients using RFC7250 Raw Public Keys (RPKs) to authenticate a
server may fail to notice that the server was not authenticated, because
handshakes don't abort as expected when the SSL_VERIFY_PEER verification mode
is set.
Impact summary: TLS and DTLS connections using raw public keys may be
vulnerable to man-in-middle attacks when server authentication failure is not
detected by clients.
RPKs are disabled by default in both TLS clients and TLS servers. The issue
only arises when TLS clients explicitly enable RPK use by the server, and the
server, likewise, enables sending of an RPK instead of an X.509 certificate
chain. The affected clients are those that then rely on the handshake to
fail when the server's RPK fails to match one of the expected public keys,
by setting the verification mode to SSL_VERIFY_PEER.
Clients that enable server-side raw public keys can still find out that raw
public key verification failed by calling SSL_get_verify_result(), and those
that do, and take appropriate action, are not affected. This issue was
introduced in the initial implementation of RPK support in OpenSSL 3.2.
The FIPS modules in 3.3, 3.2, 3.1 and 3.0 are not affected by this issue.
OpenSSL 3.4, 3.3 and 3.2 are vulnerable to this issue.
OpenSSL 3.4 users should upgrade to OpenSSL 3.4.1 once it is released.
OpenSSL 3.3 users should upgrade to OpenSSL 3.3.2 once it is released.
OpenSSL 3.2 users should upgrade to OpenSSL 3.2.4 once it is released.
This issue was reported on 18th December 2024 by Apple Inc.
The fix was developed by Viktor Dukhovni.

Comment 2 errata-xmlrpc 2025-02-11 16:38:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:1330 https://access.redhat.com/errata/RHSA-2025:1330

Comment 3 errata-xmlrpc 2025-02-13 20:14:54 UTC
This issue has been addressed in the following products:

  Discovery 1 for RHEL 9

Via RHSA-2025:1487 https://access.redhat.com/errata/RHSA-2025:1487

Comment 4 errata-xmlrpc 2025-02-27 15:19:50 UTC
This issue has been addressed in the following products:

  Service Interconnect 1 for RHEL 9

Via RHSA-2025:1925 https://access.redhat.com/errata/RHSA-2025:1925

Comment 8 errata-xmlrpc 2025-06-30 09:59:46 UTC
This issue has been addressed in the following products:

  Service Interconnect 1.4 for RHEL 9

Via RHSA-2025:9895 https://access.redhat.com/errata/RHSA-2025:9895