OpenSSH “sshole” Flaw Lets Attackers Log Into Password‑Disabled musl‑Based Linux Accounts
What It Is — A newly disclosed vulnerability in OpenSSH, informally called sshole, enables an attacker to gain SSH access to Linux accounts that have deliberately disabled password authentication. The flaw only manifests on systems that use the musl C library (e.g., Alpine Linux, OpenWrt, Buildroot, Yocto) and have three specific settings: (1) OpenSSH is running, (2) PAM authentication is disabled (the default in Alpine’s openssh-server package), and (3) password authentication is enabled. When an attacker submits a password longer than 256 bytes, musl’s crypt() function returns an asterisk (). OpenSSH, after a 2016 patch that forced password‑hashing even for accounts without a usable hash (intended to mitigate username‑enumeration), compares that returned with the stored * in /etc/shadow. The comparison succeeds, granting the attacker a valid login.
The vulnerability does not affect accounts that have a proper password hash, nor does it impact systems built on glibc (Debian, Ubuntu, Fedora, etc.) or those that retain PAM authentication. It has existed since at least 2016, hidden by the interaction between the OpenSSH patch for CVE‑2016‑6210 and musl’s handling of oversized passwords.
Security researcher Ozgun Kultekin discovered the issue using AI‑driven fuzzing that performed roughly 17,600 authentication attempts across varied OpenSSH configurations. The researcher highlighted that default cloud images for Alpine Linux on AWS and Azure ship with an alpine account whose password field is but whose doas privileges allow root escalation. If an attacker exploits sshole* against that account, they can obtain full system control.
Affected Products — OpenSSH servers (any version prior to 10.6p2) running on musl‑based Linux distributions such as Alpine Linux, OpenWrt, Buildroot, and Yocto, with password authentication enabled and PAM disabled.
Why It Matters for Trust & Control Assurance — The flaw demonstrates how a mis‑aligned authentication control can bypass deliberately hardened accounts, undermining the “identity and access management” control objective that underpins many frameworks. Capability focus: ACCESS_CONTROLS.
Recommended Actions
- Patch immediately – Upgrade OpenSSH to version 10.6p2 or later (
apk upgrade openssh). - Disable password authentication if you cannot patch right away (
PasswordAuthentication noinsshd_config). - Audit SSH logs for “Accepted password” entries tied to accounts whose
/etc/shadowentry is*. - Verify PAM status – re‑enable PAM where feasible to add an additional authentication layer.
- Review cloud images – replace default Alpine images with patched versions or custom builds that enforce key‑based authentication.
Source: BleepingComputer