Cloudanix VulnDB

CVE-2023-6129

Medium · 6.5

CVSS

6.5

EPSS

2.3%

Published

Jan 9, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in encryption software on certain PowerPC processors can cause programs to crash or produce wrong results when handling secure network connections, though the chance of serious harm is considered low.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
High
Impact
Other
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The POLY1305 MAC implementation on PowerPC CPUs supporting PowerISA 2.07 incorrectly restores vector register contents, corrupting non-volatile registers on return and potentially altering application state or control flow when the algorithm is invoked.

Why it matters to the business

Organizations running OpenSSL-based TLS services on affected PowerPC hardware face a low-probability risk of service crashes or incorrect cryptographic results that could disrupt encrypted communications or lead to application-specific failures; the issue has low exploit maturity and no known active campaigns.

How an attack unfolds

An attacker connects to a TLS server that supports CHACHA20-POLY1305 and forces negotiation of that cipher suite; the subsequent POLY1305 computation on the PowerPC server triggers the register restore bug, leaving corrupted state that may cause a crash or, in rare cases where pointers reside in the affected registers, arbitrary code execution.

How to fix it

Upgrade OpenSSL to the commit 050d26383d4e264966fb83428e72d5d48f402d35 or later releases that contain the corrected vector-register save/restore sequence; rebuild and redeploy all dependent applications and libraries; disable CHACHA20-POLY1305 on PowerPC systems if immediate patching is not feasible.

How to confirm the fix worked

Confirm the deployed OpenSSL binary or source contains commit 050d26383d4e264966fb83428e72d5d48f402d35; run regression tests exercising CHACHA20-POLY1305 on PowerPC hardware and verify absence of register corruption or crashes; monitor build logs for the corrected assembly routines.

Typical attack path

  1. Identify TLS servers advertising CHACHA20-POLY1305 support
  2. Initiate a handshake and steer cipher negotiation to CHACHA20-POLY1305
  3. Trigger POLY1305 processing during record encryption or authentication
  4. Observe resulting process crash, denial of service, or unexpected application behavior

How to detect it

Search application and TLS logs for unexpected crashes or authentication failures immediately after CHACHA20-POLY1305 handshakes on PowerPC systems; review core dumps or register traces for signs of vector-register corruption following POLY1305 calls.

What your security team should do

  • Prioritize patching PowerPC systems that expose TLS endpoints using OpenSSL
  • Inventory all applications linking against OpenSSL and schedule upgrades to the fixed commit
  • Temporarily disable CHACHA20-POLY1305 cipher suites on PowerPC hosts until patches are applied
  • Update vulnerability scanners and SBOM tools with the corrected OpenSSL version

The record

Issue summary: The POLY1305 MAC (message authentication code) implementation contains a bug that might corrupt the internal state of applications running on PowerPC CPU based platforms if the CPU provides vector instructions. Impact summary: If an attacker can influence whether the POLY1305 MAC algorithm is used, the application state might be corrupted with various application dependent consequences. The POLY1305 MAC (message authentication code) implementation in OpenSSL for PowerPC CPUs restores the contents of vector registers in a different order than they are saved. Thus the contents of some of these vector registers are corrupted when returning to the caller. The vulnerable code is used only on newer PowerPC processors supporting the PowerISA 2.07 instructions. The consequences of this kind of internal application state corruption can be various - from no consequences, if the calling application does not depend on the contents of non-volatile XMM registers at all, to the worst consequences, where the attacker could get complete control of the application process. However unless the compiler uses the vector registers for storing pointers, the most likely consequence, if any, would be an incorrect result of some application dependent calculations or a crash leading to a denial of service. The POLY1305 MAC algorithm is most frequently used as part of the CHACHA20-POLY1305 AEAD (authenticated encryption with associated data) algorithm. The most common usage of this AEAD cipher is with TLS protocol versions 1.2 and 1.3. If this cipher is enabled on the server a malicious client can influence whether this AEAD cipher is used. This implies that TLS server applications using OpenSSL can be potentially impacted. However we are currently not aware of any concrete application that would be affected by this issue therefore we consider this a Low severity security issue.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:9 edk2-aarch64 0 20240524-6.el9_5
AlmaLinux:9 edk2-ovmf 0 20240524-6.el9_5
AlmaLinux:9 edk2-tools 0 20240524-6.el9_5
AlmaLinux:9 edk2-tools-doc 0 20240524-6.el9_5
AlmaLinux:9 openssl 0 1:3.0.7-27.el9
AlmaLinux:9 openssl-devel 0 1:3.0.7-27.el9
AlmaLinux:9 openssl-libs 0 1:3.0.7-27.el9
AlmaLinux:9 openssl-perl 0 1:3.0.7-27.el9
Alpine:v3.17 openssl 0 3.0.12-r2
Alpine:v3.18 openssl 0 3.1.4-r3
Alpine:v3.19 openssl 0 3.1.4-r3
Alpine:v3.20 openssl 0 3.1.4-r3
Alpine:v3.21 openssl 0 3.1.4-r3
Alpine:v3.22 openssl 0 3.1.4-r3
Chainguard libcrypto3 0 0
Chainguard libssl3 0 0
Chainguard openssl 0 0
Chainguard openssl-config 0 0
Chainguard openssl-dbg 0 0
Chainguard openssl-dev 0 0
Chainguard openssl-doc 0 0
Chainguard openssl-engine-afalg 0 0
Chainguard openssl-engine-capi 0 0
Chainguard openssl-engine-loader-attic 0 0
Chainguard openssl-engine-padlock 0 0
Chainguard openssl-provider-fips 0 0
Chainguard openssl-provider-fips-3.1.2 0 0
Chainguard openssl-provider-fips-3.1.2-dbg 0 0
Chainguard openssl-provider-legacy 0 0
Debian:12 openssl 0 3.0.13-1~deb12u1
Debian:13 openssl 0 3.1.5-1
Mageia:9 openssl 0 3.0.12-1.1.mga9
Mageia:9 quictls 0 3.0.12-1.1.mga9
Mageia:9 quictls 0 3.0.14-1.1.mga9
Red Hat:enterprise_linux:9::appstream edk2 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::appstream edk2-aarch64 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::appstream edk2-debugsource 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::appstream edk2-ovmf 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::appstream edk2-tools 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::appstream edk2-tools-debuginfo 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::appstream edk2-tools-doc 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::appstream openssl 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::appstream openssl-debuginfo 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::appstream openssl-debugsource 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::appstream openssl-devel 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::appstream openssl-libs 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::appstream openssl-libs-debuginfo 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::appstream openssl-perl 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::baseos openssl 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::baseos openssl-debuginfo 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::baseos openssl-debugsource 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::baseos openssl-devel 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::baseos openssl-libs 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::baseos openssl-libs-debuginfo 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::baseos openssl-perl 0 1:3.0.7-27.el9
Red Hat:enterprise_linux:9::crb edk2 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::crb edk2-aarch64 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::crb edk2-debugsource 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::crb edk2-ovmf 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::crb edk2-tools 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::crb edk2-tools-debuginfo 0 0:20240524-6.el9_5
Red Hat:enterprise_linux:9::crb edk2-tools-doc 0 0:20240524-6.el9_5
Rocky Linux:9 edk2 0 0:20240524-6.el9_5.3
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS openssl-3 0 3.0.8-150400.4.49.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS openssl-3 0 3.0.8-150400.4.49.1
SUSE:Linux Enterprise Micro 5.3 openssl-3 0 3.0.8-150400.4.49.1
SUSE:Linux Enterprise Micro 5.4 openssl-3 0 3.0.8-150400.4.49.1
SUSE:Linux Enterprise Module for Basesystem 15 SP5 openssl-3 0 3.0.8-150500.5.24.1
SUSE:Linux Enterprise Server 15 SP4-LTSS openssl-3 0 3.0.8-150400.4.49.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 openssl-3 0 3.0.8-150400.4.49.1
SUSE:Manager Proxy 4.3 openssl-3 0 3.0.8-150400.4.49.1
SUSE:Manager Server 4.3 openssl-3 0 3.0.8-150400.4.49.1
Ubuntu:20.04:LTS openssl 0 1.1.1f-1ubuntu2.21
Ubuntu:22.04:LTS nodejs 0 No fix
Ubuntu:22.04:LTS openssl 0 3.0.2-0ubuntu1.14
Ubuntu:23.10 openssl 0 3.0.10-1ubuntu2.2
Ubuntu:24.04:LTS edk2 0 No fix
Ubuntu:24.04:LTS openssl 0 3.0.10-1ubuntu4
Ubuntu:24.10 edk2 0 No fix
Ubuntu:Pro:16.04:LTS nodejs 0 No fix
Ubuntu:Pro:18.04:LTS nodejs 0 No fix
Ubuntu:Pro:22.04:LTS nodejs 0 No fix
Ubuntu:Pro:FIPS-preview:22.04:LTS openssl 0 No fix
Ubuntu:Pro:FIPS-updates:22.04:LTS openssl 0 3.0.2-0ubuntu1.14+Fips1
Wolfi libcrypto3 0 0
Wolfi libssl3 0 0
Wolfi openssl 0 0
Wolfi openssl-config 0 0
Wolfi openssl-dbg 0 0
Wolfi openssl-dev 0 0
Wolfi openssl-doc 0 0
Wolfi openssl-engine-afalg 0 0
Wolfi openssl-engine-capi 0 0
Wolfi openssl-engine-loader-attic 0 0
Wolfi openssl-engine-padlock 0 0
Wolfi openssl-provider-legacy 0 0
conan openssl 3.0.0 No fix
conan openssl 3.1.0 No fix
conan openssl 3.2.0 No fix
openSUSE:Leap 15.5 openssl-3 0 3.0.8-150500.5.24.1
openSUSE:Leap Micro 5.3 openssl-3 0 3.0.8-150400.4.49.1
openSUSE:Leap Micro 5.4 openssl-3 0 3.0.8-150400.4.49.1
openSUSE:Tumbleweed openssl-3 0 3.1.4-3.1

Related vulnerabilities