OpenSSH 10.6p2 Fixes a Password Bypass on Alpine and Other musl Linux Systems
Security / news
OpenSSH 10.6p2 Fixes a Password Bypass on Alpine and Other musl Linux Systems
A password of 257 to 1,024 bytes logs in as an account with no password, and CISA lists the flaw as exploited.
An attacker who can reach the SSH port of an affected Linux system can log in without a valid password by sending one of 257 to 1,024 bytes. The system must use musl libc without PAM, the sshd build must allow password authentication, and an account with no password must exist. OpenSSH fixed it in 10.6p2 on Nov. 5, and CISA added CVE-2026-123158 to its Known Exploited Vulnerabilities catalog on Nov. 9.
The OpenSSH release notes say the project considers "the root cause of this bug to be outside sshd, but it is exploitable via sshd and can be avoided there." They credit Özgün Kültekin of Wakefield with the report.
The mechanism
The Alpine Linux advisory explains it. Without PAM, sshd checks passwords with crypt(). For an account whose stored password field is too short to hold a salt, sshd borrows another account's salt. musl's crypt() returns * as its error value for keys longer than 256 bytes, and * is also what the shadow file stores for an account with no password. The comparison matches and the login succeeds.
That is why the preconditions stack up. Alpine lists four: password authentication enabled, a passwordless account such as root in a base image or a key-only user, at least one local account with a $5$ or $6$ hash, and the non-PAM openssh-server package (or openssh-server-pam with UsePAM no).
Who is affected
Alpine says releases 3.16 through 3.24 and edge are affected. Its official tiny-cloud images from 3.18.11 through 3.24.3 ship an alpine user with a * password and passwordless doas, and become exploitable once a $6$ hash is added to the machine.
| Alpine release | Fixed package |
|---|---|
| edge | 10.6_p2-r0 |
| 3.24 | 10.3_p1-r2 |
| 3.23 | 10.2_p1-r1 |
| 3.22 | 10.0_p1-r11 |
| 3.16 | 9.0_p1-r6 |
Alpine publishes fixed packages for every branch back to 3.16. Systems with UsePAM yes, disabled password authentication or locked accounts (!) are not affected, and containers without sshd are out of scope.
Embedded systems are the other population
Vidya Murthy of Medcrypt Product Security wrote on oss-security on Nov. 9 that Medcrypt reproduced the bypass independently on a stock Yocto image with no unusual configuration. Her combination of musl, no PAM, password authentication and locked service accounts is, in her words, a common hardened embedded baseline. Medcrypt's own blog post carries the field test, which I did not fetch.
One detail conflicts. Alpine says a single attempt with a long password logs in. The oss-security reply mentions a "two-attempt requirement" tied to the pick_salt() cache and explicit_bzero(). The text I read does not explain the difference, so it may reflect a different build or configuration.
The score understates the exposure it describes
The NVD record gives CVE-2026-123158 a CVSS 3.1 score of 8.1, with attack complexity High. The High rating reflects the preconditions, and for a typical Debian or Ubuntu host with glibc and PAM they mean there is no exposure at all. On Alpine-based images and Yocto firmware that match, complexity is low, and CISA lists the flaw as exploited. The alert does not say who is exploiting it.
The site has covered other flaws where preconditions decide the real risk, including Mitel MiCollab and the Cacti guest-account flaw. The practical instruction is in Alpine's advisory. Run apk upgrade -U -a, then restart sshd, because the upgrade alone does not replace the running daemon. Where upgrading is not possible, set PasswordAuthentication no and restart. The federal deadline was Nov. 12, and Alpine tells operators to search /var/log/messages for successful password logins to accounts that have no password.
Sources
More in Security
- 01Drupal Cuts Core Security Support to 8 Months as AI-Found Bugs Pile UpAnthropic's scanner found the Drupal installer bug. Drupal's PSA-2026-11-02 says the report volume exceeds what its team can sustain on current funding.
- 02An Open Database Held About 2 Billion Credential Records, With Session TokensResearcher Jeremiah Fowler found 8,471 folders of plaintext logins and 400,000 malware logs, but nobody knows who ran the server or how many people are in it.
- 03CISA Lists Synology, Axis 1 and REDCap Flaws Aged 2 Years, 59 Days and 12 DaysApache says it will not ship a fixed Axis 1.x release, so the only patch for the 12-day-old flaw is a commit you build yourself.
- 04GPUStack Trusted Loopback Requests as Admin, and Attackers Used It to Run Reverse ShellsCVE-2026-102895, a 9.8-rated bypass fixed in GPUStack 2.2.0, let any request that looked local run code on GPU worker hosts.