UBUNTU-CVE-2025-5351

Source
https://ubuntu.com/security/CVE-2025-5351
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5351.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-5351
Upstream
Downstream
Related
Published
2025-06-25T00:00:00Z
Modified
2025-07-16T05:22:09Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.

References

Affected packages

Ubuntu:24.04:LTS / libssh

Package

Name
libssh
Purl
pkg:deb/ubuntu/libssh@0.10.6-2ubuntu0.1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.10.6-2ubuntu0.1

Affected versions

0.*

0.10.5-3ubuntu1
0.10.5-3ubuntu2
0.10.6-2
0.10.6-2build1
0.10.6-2build2

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "0.10.6-2ubuntu0.1",
            "binary_name": "libssh-4"
        },
        {
            "binary_version": "0.10.6-2ubuntu0.1",
            "binary_name": "libssh-4-dbgsym"
        },
        {
            "binary_version": "0.10.6-2ubuntu0.1",
            "binary_name": "libssh-dev"
        },
        {
            "binary_version": "0.10.6-2ubuntu0.1",
            "binary_name": "libssh-doc"
        },
        {
            "binary_version": "0.10.6-2ubuntu0.1",
            "binary_name": "libssh-gcrypt-4"
        },
        {
            "binary_version": "0.10.6-2ubuntu0.1",
            "binary_name": "libssh-gcrypt-4-dbgsym"
        },
        {
            "binary_version": "0.10.6-2ubuntu0.1",
            "binary_name": "libssh-gcrypt-dev"
        }
    ]
}

Ubuntu:25.04 / libssh

Package

Name
libssh
Purl
pkg:deb/ubuntu/libssh@0.11.1-1ubuntu0.1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.11.1-1ubuntu0.1

Affected versions

0.*

0.10.6-3ubuntu1
0.11.1-1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_version": "0.11.1-1ubuntu0.1",
            "binary_name": "libssh-4"
        },
        {
            "binary_version": "0.11.1-1ubuntu0.1",
            "binary_name": "libssh-4-dbgsym"
        },
        {
            "binary_version": "0.11.1-1ubuntu0.1",
            "binary_name": "libssh-dev"
        },
        {
            "binary_version": "0.11.1-1ubuntu0.1",
            "binary_name": "libssh-doc"
        }
    ]
}