Reach openssh · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
In ssh-agent in OpenSSH before 10.5, some operations can occur remotely but were intended to occur only locally, including operations that add tokens or use keys. This is caused by misinteraction between agent locking and the session-bind@openssh.com extension.
Published 2026-08-11NVD
CVSS 3.1Network · low privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
- Scope
- Changed
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N
References 1
Fable 5.1 · high confidence · 2026-11-05
The vulnerable ssh-agent code is in this build: openssh 9.9p2 predates the 10.5 fix, none of the 18 Buildroot patches touch ssh-agent.c, and the pre-fix lock handling (a locked agent simply rejects a session-bind@openssh.com extension without recording the attempt, so a forwarded connection is later treated as local) is present in output/build/openssh-9.9p2/ssh-agent.c. The /usr/bin/ssh-agent binary is installed on the target.
However, nothing on the device starts an agent: no finit service, the sshd config, confd (services.c) and the YANG models expose no agent/forwarding option, and the CLI ssh command (infix.c:708) runs plain ssh with no -A.
Exploitation requires an operator to obtain a shell on the device, manually run ssh-agent, load keys, lock it, and forward it to an attacker-controlled host; the device's sshd is not the vulnerable component.
Evidence 11
18 patches applied; none touch ssh-agent.c or agent locking/session-bind (grep for ssh-agent/session-bind/locked in patches returns nothing)
output/build/openssh-9.9p2/.applied_patches_list
Pre-fix behaviour: when locked, every request except UNLOCK (including SSH_AGENTC_EXTENSION/session-bind) is dropped with send_status(e,0) before process_ext_session_bind runs, so session_bind_attempted is never set
output/build/openssh-9.9p2/ssh-agent.c:1837-1849
process_ext_session_bind / session-bind@openssh.com dispatch present, unpatched relative to 10.5
output/build/openssh-9.9p2/ssh-agent.c:1692,1785
ssh-agent and ssh-add installed to /usr/bin when BR2_PACKAGE_OPENSSH_CLIENT=y
buildroot/package/openssh/openssh.mk:149-150
binary is present in the target rootfs
output/target/usr/bin/ssh-agent
package selected for target image with client programs
output/.config (BR2_PACKAGE_OPENSSH=y, _CLIENT=y, _SERVER=y)
Only sshd is managed by finit (enabled by confd when ssh/netconf service is on); no service starts ssh-agent
output/target/etc/finit.d/available/sshd.conf; board/common/rootfs/etc/finit.d/enabled/
confd only enables/disables sshd from YANG infix-services; no node for agent or agent forwarding
src/confd/src/services.c:667-700
CLI `ssh` command execs ssh with only -l/-p/host; no -A, no agent started
src/klish-plugin-infix/src/infix.c:708-713
sshd config contains only AcceptEnv/AuthorizedKeysFile; sshd itself is not the vulnerable component
board/common/rootfs/etc/ssh/sshd_config, sshd_config.d/var-auth.conf
no references anywhere in product configuration or rootfs overlay
rg 'ssh-agent|SSH_AUTH_SOCK' across board/ src/ configs/ output/target/etc
Version and patches
Affected: OpenSSH < 10.5 (ssh-agent). Fixed: 10.5. This build: 9.9p2 with 18 Buildroot patches (CVE-2025-61984/61985, CVE-2026-35385..35388, 35414, 59995..60002, DisableForwarding fix); none address CVE-2026-73281 or modify ssh-agent.c. Vulnerable code confirmed present.
Recommendation
Document as not applicable in the shipped configuration (NOT_EXPOSED); pick up the fix with the next routine OpenSSH bump (>= 10.5) rather than backporting. Optionally drop ssh-agent/ssh-add from the image if client-side agent use is never intended.
Open questions
Whether an admin-level user with a login shell (infix-system.yang shell-type) could, outside the product's management model, start ssh-agent and forward it; this was treated as stepping outside the product since no management interface or default service does so.
Members of Kernel Kit decide. Sign in if you are one.