Advisory

DEBIAN-CVE-2025-5351

Also known as: CVE-2025-5351

Summary

The record has no summary.

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2025-07-04 09:15 UTC
Modified
2026-11-06 09:47 UTC

Affected packages and fixes

libssh

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 0.10.6-0+deb12u2 (ecosystem)

Fixed versions

0.10.6-0+deb12u2

Fix

  • Fixed version 0.10.6-0+deb12u2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libssh

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 0.11.2-1 (ecosystem)

Fixed versions

0.11.2-1

Fix

  • Fixed version 0.11.2-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libssh

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 0.11.2-1 (ecosystem)

Fixed versions

0.11.2-1

Fix

  • Fixed version 0.11.2-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences