Reach openssh · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
In sshd in OpenSSH before 10.5, the restrict keyword (in authorized_keys) was supposed to be applicable to tunnel forwarding but was not.
Published 2026-08-11NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
References 1
Fable 5.1 · high confidence · 2026-11-05
The vulnerable code is present: in this 9.9p2 tree the restrict authorized_keys option clears port/agent/X11/pty/user-rc permissions but not tunnel permission (auth-options.c:343-349), and sshd's tunnel-open handler only checks PermitTunnel and DisableForwarding (serverloop.c:501), so none of the 18 applied patches touch this.
However, the bug is only meaningful when PermitTunnel is enabled: this build leaves it at the compiled-in default no (servconf.c:470-471) and neither the shipped sshd_config nor the confd-generated fragments set PermitTunnel, so every tunnel request is rejected before restrict would matter.
Additionally, Infix's YANG authorized-key list has no options field — confd writes keys as algorithm key-data name (src/confd/src/system.c:1230-1233) — so an operator cannot even apply restrict through the management interface. Reaching the bug requires root-level edits to /etc/ssh/sshd_config and the key file outside the product.
Evidence 11
`restrict` sets restricted=1 and clears port/agent/X11/pty/user-rc flags only; no tunnel restriction — the vulnerable (pre-10.5) code
output/build/openssh-9.9p2/auth-options.c:343-349
server_request_tun() gates tunnels only on options.permit_tun and options.disable_forwarding, never on auth_opts->restricted
output/build/openssh-9.9p2/serverloop.c:501-517
18 patches (DisableForwarding fixes, CVE-2025-6198x, CVE-2026-35xxx/59xxx/600xx); none address restrict vs tunnel
output/build/openssh-9.9p2/.applied_patches_list
PermitTunnel defaults to SSH_TUNMODE_NO, so tunnel requests are rejected regardless of key options
output/build/openssh-9.9p2/servconf.c:470-471
Shipped sshd config sets AuthorizedKeysFile /var/run/sshd/%u.keys, sftp subsystem, PAM, banner; no PermitTunnel directive
board/common/rootfs/etc/ssh/sshd_config + sshd_config.d/*.conf
confd writes only HostKey, ListenAddress and a NETCONF Match block; never emits PermitTunnel
src/confd/src/services.c:704-776
confd generates authorized keys as `algorithm key-data name` from ietf-system; no field to carry the `restrict` option
src/confd/src/system.c:1219-1233
authorized-key list has only name/algorithm/key-data leaves
src/confd/yang/confd/ietf-system@2014-08-06.yang:645-680
sshd is enabled by factory default on 0.0.0.0:22 and :::22 (network-reachable), but without tunnel support
src/confd/share/factory.d/10-infix-services.json
SSH_TUN_LINUX compiled in, so tunnel code exists in binary (but inactive by config)
output/build/openssh-9.9p2/config.h:1908
openssh server, client, key utils and sandbox selected for target
output/.config:3429-3433
Version and patches
Affected: OpenSSH sshd < 10.5; fixed in 10.5 (restrict now also disables tunnel forwarding). This tree is 9.9p2 with 18 Buildroot patches, none of which backport the restrict/tunnel fix — the vulnerable hunk is still present in auth-options.c and serverloop.c.
Recommendation
Document as not applicable in the shipped configuration (PermitTunnel is off and restrict cannot be set via YANG/CLI). Pick up the fix with the next routine OpenSSH upgrade (≥10.5) or when the Buildroot package is bumped; no urgent backport needed.
Open questions
Only whether some board-specific overlay (outside board/common) or an operator with a root shell adds PermitTunnel to sshd_config; nothing in the common rootfs or confd does. The CLI/web UI were not separately inspected for a hidden sshd knob, but confd (which they drive) emits no PermitTunnel.
Members of Kernel Kit decide. Sign in if you are one.