Reach openssh · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
In sshd and ssh in OpenSSH before 10.6, there is no check for whether the maximum packet length is exceeded during decompression of highly compressed data.
Published 2026-10-06NVD
CVSS 3.1Network · no privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
- Scope
- Unchanged
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
References 1
Fable 5.1 · high confidence · 2026-11-05
OpenSSH 9.9p2 in this tree carries the unfixed uncompress_buffer() in packet.c: the inflate() loop appends to the output buffer with no bound against PACKET_MAX_SIZE, which is what OpenSSH 10.6 adds.
None of the 18 applied patches touch this (they are all other CVEs), and the build is compiled with WITH_ZLIB, so the server default Compression becomes COMP_DELAYED and the KEX proposal offers zlib@openssh.com.
sshd is started by confd from the factory config (/infix-services:ssh enabled=true, listening on 0.0.0.0:22 and :::22), so the vulnerable code is network-reachable on a shipped device.
Practical caveat: with delayed compression the server side only inflates after successful authentication, so the server-side trigger needs valid credentials; the ssh client (also built) is reachable if an operator connects to a hostile server.
Evidence 10
inflate() loop calls sshbuf_put(out, ...) on Z_OK with no check that sshbuf_len(out) stays under PACKET_MAX_SIZE; the 10.6 fix is absent
output/build/openssh-9.9p2/packet.c:uncompress_buffer
18 patches applied; all named for other CVEs (2025-61984/61985, 2026-35385..35414, 2026-59995..60002) plus DisableForwarding fix; none touch packet.c decompression
output/build/openssh-9.9p2/.applied_patches_list
zlib compression support compiled in
output/build/openssh-9.9p2/config.h:2010 (WITH_ZLIB 1), :894 (HAVE_LIBZ 1)
OPENSSH_DEPENDENCIES includes zlib; no --without-zlib
buildroot/package/openssh/openssh.mk:87
Server default Compression=-1 resolves to COMP_DELAYED when WITH_ZLIB
output/build/openssh-9.9p2/servconf.c:395-397
KEX_DEFAULT_COMP "none,zlib@openssh.com" offered by default
output/build/openssh-9.9p2/myproposal.h:93
Shipped sshd config does not set Compression no; default retained
board/common/rootfs/etc/ssh/sshd_config + sshd_config.d/
Factory default: infix-services:ssh enabled=true, listen 0.0.0.0:22 and :::22, hostkey genkey
src/confd/share/factory.d/10-infix-services.json
confd enables/reloads finit 'sshd' service whenever /infix-services:ssh/enabled is true
src/confd/src/services.c:664-687
BR2_PACKAGE_OPENSSH=y, _CLIENT=y, _SERVER=y selected for target
output/.config
Version and patches
Affected: OpenSSH before 10.6 (per NVD/release notes). This build: 9.9p2 (version.h SSH_VERSION "OpenSSH_9.9"), with 18 Buildroot patches, none of which is a backport of the 10.6 decompression bound check. Vulnerable code confirmed present in packet.c uncompress_buffer().
Recommendation
Upgrade openssh to 10.6 or backport the 10.6 packet.c change that bounds decompressed output at PACKET_MAX_SIZE in uncompress_buffer(). Interim mitigation if needed: ship "Compression no" in /etc/ssh/sshd_config.d (disables server-side decompression entirely); note this does not cover the ssh client. Impact on the server is limited to authenticated users (delayed compression), which may inform priority but not applicability.
Open questions
The exact upstream fix commit was not available in this tree; the analysis relies on the release-notes description and the observed absence of any output-size check in uncompress_buffer(). Whether the NETCONF SSH endpoint (netopeer2's libssh transport on port 830, factory.d/10-netconf-server.json) is a separate libssh code path or goes through sshd as a subsystem depends on HAVE_NETCONF_SUBSYSTEM; either way port 22 sshd is exposed by default.
Members of Kernel Kit decide. Sign in if you are one.