bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-106586

4.3medium

openssh9.9p2in 4 of 4 releases

Reach openssh · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

In sshd in OpenSSH before 10.6, the restrict keyword (in authorized_keys) was supposed to be applicable to tunnel forwarding but was not, a different vulnerability than CVE-2026-73283.

Published 2026-10-06NVD

CVSS 3.1Network · low privileges · no user interaction

How it is reached

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

References 1
Review Av26.10.0x86_64Not exposed✓ accepted by a member, 2026-11-18 · settles 8 of 8

Fable 5.1 · high confidence · 2026-11-05

The vulnerable code is present: in this tree's sshd, server_request_tun() (serverloop.c:501) gates tun@openssh.com channel requests only on the global PermitTunnel/DisableForwarding options and never consults auth_opts->permit_port_forwarding_flag or auth_opts->restricted, so an authorized_keys restrict option does not block tunnel forwarding; none of the 18 applied patches touch this (0001/0015 only fix DisableForwarding vs PermitTunnel).

sshd does run by default (factory config enables infix-services:ssh on 0.0.0.0:22 / [::]:22), but the vulnerable path requires both PermitTunnel yes (OpenSSH default is no, servconf.c:470-471; no shipped sshd_config fragment and no confd code ever sets it) and an authorized_keys entry carrying the restrict keyword, which the product's key management cannot produce: confd writes /var/run/sshd/%u.keys as plain "algorithm key-data name" lines from the YANG authorized-key list (name/algorithm/key-data only).

Reaching the flaw therefore requires a root shell to hand-edit /etc/ssh/sshd_config.d and the generated authorized_keys file, outside the product's management interfaces.

Evidence 10
  1. server_request_tun() rejects tunnels only if (options.permit_tun & mode)==0 || options.disable_forwarding; no check of auth_opts->permit_port_forwarding_flag/restricted — the CVE's missing check (vulnerable code present)

    output/build/openssh-9.9p2/serverloop.c:501

  2. `restrict` sets restricted=1 and permit_port_forwarding_flag=0, but that flag is only consulted for TCP forwarding (session.c:354, serverloop.c:422/467/760/794), not for tun

    output/build/openssh-9.9p2/auth-options.c:343-345

  3. 18 patches applied; 0001 and 0015 only fix DisableForwarding/PermitTunnel interaction, none add an auth_opts check to server_request_tun (no backport of the 10.6 fix)

    output/build/openssh-9.9p2/.applied_patches_list

  4. PermitTunnel defaults to SSH_TUNMODE_NO, so tun requests are rejected at serverloop.c:501 unless explicitly enabled

    output/build/openssh-9.9p2/servconf.c:470-471

  5. sshd is built into the target image

    output/.config (BR2_PACKAGE_OPENSSH=y, BR2_PACKAGE_OPENSSH_SERVER=y)

  6. infix-services:ssh enabled=true, listening on 0.0.0.0:22 and [::]:22 in the factory default config (sshd is network-reachable by default)

    src/confd/share/factory.d/10-infix-services.json

  7. Shipped sshd config contains no PermitTunnel directive; AuthorizedKeysFile /var/run/sshd/%u.keys

    board/common/rootfs/etc/ssh/sshd_config and sshd_config.d/{auth,banner,sftp,var-auth}.conf

  8. confd only writes HostKey, ListenAddress and a NETCONF Match block (ForceCommand/PermitTTY no/AllowTcpForwarding no); no YANG node maps to PermitTunnel

    src/confd/src/services.c:663-780 (ssh_change)

  9. authorized_keys lines are generated as "algorithm key-data name" only — the `restrict` option can never be emitted from YANG

    src/confd/src/system.c:1219-1233

  10. authorized-key list has only name, algorithm, key-data leaves; no key-options field

    src/confd/yang/confd/ietf-system@2014-08-06.yang:645-680

Version and patches

NVD: affected OpenSSH < 10.6, fixed in 10.6. This build is 9.9p2 with 18 Buildroot patches (CVE-2025-61984/61985, CVE-2026-35385..35414, CVE-2026-59995..60002, DisableForwarding fixes); none addresses CVE-2026-106586 and serverloop.c still lacks the auth_opts check in server_request_tun(). Version match is correct and the code is unfixed.

Recommendation

Document as not applicable in the shipped configuration (tunnel forwarding is disabled by default and neither PermitTunnel nor the restrict key option can be set via YANG/CLI/web). Pick up the fix with the next routine OpenSSH bump (>= 10.6) or add the small serverloop.c backport alongside the existing CVE patch series; no urgent action required.

Open questions

The exact upstream 10.6 fix commit was not available offline; the conclusion that the fix is absent rests on inspecting server_request_tun() directly, which clearly performs no per-key authorization check. Did not verify whether /etc/ssh/sshd_config.d is on a persistent overlay (irrelevant to the verdict since editing it requires a root shell either way).

Members of Kernel Kit decide. Sign in if you are one.