bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-106583

7.8high

openssh9.9p2in 4 of 4 releases

Reach openssh · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

In ssh in OpenSSH before 10.6, a $ or \ character can occur in a command-line username, leading to injection.

Published 2026-10-07NVD

CVSS 3.1Local · no privileges · user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required

What it costs

Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged

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

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

Fable 5.1 · medium confidence · 2026-11-18

The build is affected: ssh_valid_ruser() in output/build/openssh-9.9p2/readconf.c:3313-3332 (as rewritten by the applied CVE-2026-35386 patches) still accepts $ and non-trailing \ in usernames given on the ssh command line, which is exactly what OpenSSH 10.6 tightened. None of the 18 Buildroot patches in output/build/openssh-9.9p2/.applied_patches_list is the 10.6 change.

The ssh client is built and installed by default (output/.config:3430, buildroot/package/openssh/openssh.mk:146) and the product's own CLI invokes it with operator-supplied usernames without any configuration change: ssh user <name> <host> (src/klish-plugin-infix/xml/infix.xml:1200-1210, src/klish-plugin-infix/src/infix.c:708-714 passes it as -l <user>) and copy ... scp://user@host/path (src/bin/copy.c:242, :575). So the vulnerable code path runs in the factory-default configuration, which is case (a).

Practical impact on Infix is low: the operator who types the username is the same user the ssh process runs as (run_as_user), so no privilege boundary is crossed, and the shipped output/target/etc/ssh/ssh_config has no ProxyCommand/LocalCommand/Match exec directives, so there is no %r expansion sink by default. The client is not reachable by unauthenticated network peers; only authenticated admin sessions (SSH on port 22 is enabled by default, src/confd/share/factory.d/10-infix-services.json:8) or console can invoke it.

Evidence 11
  1. ssh_valid_ruser() rejects only '`";&<>|(){} and control chars; `$` and non-trailing `\` are still accepted (pre-10.6 behaviour)

    output/build/openssh-9.9p2/readconf.c:3313-3332

  2. Command-line usernames (-l, user@host) are validated solely by ssh_valid_ruser()

    output/build/openssh-9.9p2/ssh.c:1110, ssh.c:1401

  3. Only patches touching username validation; they add iscntrl() and move the check earlier, none adds `$`/`\` to the reject set

    buildroot/package/openssh/0003-CVE-2025-61984.patch, 0006-CVE-2026-35386-1.patch, 0007-CVE-2026-35386-2.patch

  4. 18 patches applied; none references CVE-2026-106583 or OpenSSH 10.6

    output/build/openssh-9.9p2/.applied_patches_list

  5. BR2_PACKAGE_OPENSSH=y and BR2_PACKAGE_OPENSSH_CLIENT=y selected for target

    output/.config:3429-3430; configs/x86_64_defconfig:93

  6. Installs the client as /usr/bin/ssh (present in output/target/usr/bin/ssh and scp)

    buildroot/package/openssh/openssh.mk:146

  7. CLI `ssh [user <name>] [port <n>] <host>` command with unrestricted /STRING username

    src/klish-plugin-infix/xml/infix.xml:1200-1210

  8. CLI username passed verbatim as `ssh -l <user> <host>`, executed as the CLI user

    src/klish-plugin-infix/src/infix.c:708-714

  9. CLI `copy` with scp:// or sftp:// URIs builds `user@host:path` and execs scp, which forwards the user to ssh

    src/klish-plugin-infix/xml/infix.xml:337-344; src/bin/copy.c:221-242, 575, 608

  10. Shipped client config has no active directives, so no %r-expanding ProxyCommand/LocalCommand/Match exec sink by default

    output/target/etc/ssh/ssh_config

  11. sshd enabled on 0.0.0.0:22 and [::]:22 in factory config; admin reaches CLI over the network after authentication

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

Version and patches

Upstream: ssh(1) in OpenSSH before 10.6 affected; fixed in 10.6 (release notes). This tree: 9.9p2 plus 18 Buildroot patches up to the April 2026 CVE-2026-35386 series; the 10.6 tightening of ssh_valid_ruser (rejecting $ and \) is not present in output/build/openssh-9.9p2/readconf.c.

Recommendation

Backport the OpenSSH 10.6 change to ssh_valid_ruser() (add $ and \ to the rejected character set) as an additional patch in buildroot/package/openssh/, or move to OpenSSH 10.6 or later. Urgency is low: on Infix the username is supplied by the already-authenticated operator running the command, the resulting ssh runs as that same user, and the shipped ssh_config has no %r-expanding command directives, so no privilege escalation path is configured by default.

Open questions

The OpenSSH 10.6 fix commit was not available offline; the conclusion that it extends the ssh_valid_ruser() reject set with $ and \ is inferred from the NVD description and the current state of the function. It was not fully traced whether a CLI-only user can create a ~/.ssh/config containing %r-expanded ProxyCommand/LocalCommand/Match exec directives, which is the precondition for the accepted characters to become an actual injection.

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