<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2025-0236</id>
    <title>An update for libssh is now available for HCE 2.0</title>
    <severity>Important</severity>
    <release>HCE 2.0</release>
    <issued date="2025-09-23 11:51:50"/>
    <updated date="2025-09-23 11:51:50"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-5318" id="CVE-2025-5318" title="CVE-2025-5318 Base Score: 5.4 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2025-5372" id="CVE-2025-5372" title="CVE-2025-5372 Base Score: 8.8 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

A flaw was found in the libssh library. An out-of-bounds read can be triggered in the sftp_handle function due to an incorrect comparison check that permits the function to access memory beyond the valid handle list and to return an invalid pointer, which is used in further processing. This vulnerability allows an authenticated remote attacker to potentially read unintended memory regions, exposing sensitive information or affect service behavior. (CVE-2025-5318)

A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions_x27; confidentiality, integrity, and availability. (CVE-2025-5372)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="libssh">
        <name>HCE 2.0</name>
        <package arch="aarch64" name="libssh" version="0.9.6" release="2.r14.hce2">
          <filename>libssh-0.9.6-2.r14.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="libssh-devel" version="0.9.6" release="2.r14.hce2">
          <filename>libssh-devel-0.9.6-2.r14.hce2.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="libssh-help" version="0.9.6" release="2.r14.hce2">
          <filename>libssh-help-0.9.6-2.r14.hce2.noarch.rpm</filename>
        </package>
        <package arch="x86_64" name="libssh" version="0.9.6" release="2.r14.hce2">
          <filename>libssh-0.9.6-2.r14.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="libssh-devel" version="0.9.6" release="2.r14.hce2">
          <filename>libssh-devel-0.9.6-2.r14.hce2.x86_64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
