CVE-2025-26465

NameCVE-2025-26465
DescriptionA vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. A machine-in-the-middle attack can be performed by a malicious machine impersonating a legit server. This issue occurs due to how OpenSSH mishandles error codes in specific conditions when verifying the host key. For an attack to be considered successful, the attacker needs to manage to exhaust the client's memory resource first, turning the attack complexity high.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4057-1, DSA-5868-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
openssh (PTS)bullseye1:8.4p1-5+deb11u3vulnerable
bullseye (security)1:8.4p1-5+deb11u4fixed
bookworm1:9.2p1-2+deb12u4vulnerable
bookworm (security)1:9.2p1-2+deb12u5fixed
trixie1:9.9p1-3vulnerable
sid1:9.9p2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
opensshsourcebullseye1:8.4p1-5+deb11u4DLA-4057-1
opensshsourcebookworm1:9.2p1-2+deb12u5DSA-5868-1
opensshsource(unstable)1:9.9p2-1

Notes

https://www.openssh.com/releasenotes.html#9.9p2
https://www.qualys.com/2025/02/18/openssh-mitm-dos.txt
Introduced with: https://github.com/openssh/openssh-portable/commit/5e39a49930d885aac9c76af3129332b6e772cd75 (V_6_8_P1)
Fixed by: https://github.com/openssh/openssh-portable/commit/0832aac79517611dd4de93ad0a83577994d9c907 (V_9_9_P1)

Search for package or bug name: Reporting problems