SB2025091222 - openEuler 24.03 LTS SP1 update for libssh



SB2025091222 - openEuler 24.03 LTS SP1 update for libssh

Published: September 12, 2025 Updated: February 24, 2026

Security Bulletin ID SB2025091222
Severity
Low
Patch available
YES
Number of vulnerabilities 5
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

Low 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 5 secuirty vulnerabilities.


1) Integer overflow (CVE-ID: CVE-2025-4877)

The vulnerability allows a local user to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow within the bin_to_base64() function in base64.c. A local user can trigger an integer overflow and execute arbitrary code on the target system.

Note, the vulnerability can be exploited only via the ssh_get_fingerprint_hash() function on 32-bit builds in case the API is (mis)used and a libssh consumer passes in an unexpectedly large input buffer.


2) Use-after-free (CVE-ID: CVE-2025-4878)

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a use-after-free error within the privatekey_from_file() function. A local user can trigger a use-after-free error and execute arbitrary code with elevated privileges. 



3) Double free (CVE-ID: CVE-2025-5351)

The vulnerability allows a remote user to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error in the internal function responsible for converting cryptographic keys into serialized formats. A remote user can trigger a double free error and perform a denial of service attack in low-memory scenarios.


4) Incorrect calculation (CVE-ID: CVE-2025-5372)

The vulnerability allows a remote user to perform MitM attack.

The vulnerability exist due to incorrect calculation within the ssh_kdf() function responsible for key derivation when built with OpenSSL versions older than 3.0. A remote user can compromise the integrity of the SSH session. 


5) Return of Wrong Status Code (CVE-ID: CVE-2025-5987)

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to incorrect handling of the wrong status code returned by the OpenSSL within the chacha20_poly1305_set_key() function when using the ChaCha20 cipher with the OpenSSL library. A remote attacker can force the library to partially initialize cipher context, leading to an undefined application's behavior.


Remediation

Install update from vendor's website.