CVE-2025-5351
CVE-2025-5351 · Libssh: double free vulnerability in libssh key export functions
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 6.5 · Medium · EPSS 0.6% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
libssh
- Versions
- ≥ 0.10.0, < 0.11.2: Affected (semver)
Update to 0.11.2
red hat enterprise linux 9
- Versions
- ≥ 0:0.10.4-18.el9: Not affected (rpm)
No fix published
red hat enterprise linux 10
No fix published
red hat enterprise linux 6
No fix published
red hat enterprise linux 7
No fix published
red hat enterprise linux 8
No fix published
red hat openshift container platform 4
No fix published
libssh Debian:12
- Versions
- 0.10.5-2
- 0.10.5-3
- 0.10.5-3+hurd.1
- 0.10.6-0+deb12u1
- Affected ranges
- ECOSYSTEM: < 0.10.6-0+deb12u2
Update to 0.10.6-0+deb12u2
libssh Debian:13
- Affected ranges
- ECOSYSTEM: < 0.11.2-1
Update to 0.11.2-1
libssh Debian:14
- Affected ranges
- ECOSYSTEM: < 0.11.2-1
Update to 0.11.2-1
libssh Ubuntu:24.04:LTS
- Versions
- 0.10.5-3ubuntu1
- 0.10.5-3ubuntu2
- 0.10.6-2
- 0.10.6-2build1
- 0.10.6-2build2
- Affected ranges
- ECOSYSTEM: < 0.10.6-2ubuntu0.1
Update to 0.10.6-2ubuntu0.1