NewsCrawler.org

sshhole: on musl without PAM, sshd accepts logins for accounts locked with *

Update · : OpenSSH 10.6p2, released on 5 November 2026, is the release that fixes the password authentication bypass in sshd on musl systems built without PAM, reported by Özgün Kültekin of Wakefield. The OpenSSH team regards the root cause as lying outside sshd, but says the bug can be avoided in sshd itself, and the release also adds the ssh-mldsa44-ed25519 CA signature algorithm and fixes a CPU spin with ChannelTimeout.

sshd built against musl[1] without PAM[2] allows logins for accounts locked with a bare * in the password field — the OpenSSH bug documented on sshhole.com. The author built sshd in every configuration they could think of (glibc, musl, with and without PAM, with and without a shadow file) and threw around 17,600 unusual logins at it, covering malformed hashes, broken accounts and passwords far too long, with large swarms of agents doing the work. Every build agreed on every login except musl without PAM, which said yes to things it shouldn't.

The ingredients are old: since 1980, a * in the password field has meant a locked account, after Bill Joy put one on the daemon account in /etc/passwd — since * is not a hash, no password can match it. In 2012, musl changed crypt()[3] to return the single character * on failure instead of NULL, because many programs never check for NULL and crash comparing it. Three weeks later musl added sha512 crypt and capped passwords at 256 bytes, since longer passwords made hashing slow enough that one giant password could keep a server busy; past that cap crypt() fails and returns *, which can then match the * of a locked account. In 2016, after CVE-2016-6210[4] let attackers tell existing users from nonexistent ones by response time, sshd was changed to hash a submitted password with another account's salt for invalid users, to waste the same amount of time — a path that also runs for real users locked with *.

In 2019, Alpine's docker images turned out to ship with no root password at all (CVE-2019-5021); locking root with ! also breaks ssh key logins without PAM, so in 2022 Alpine 3.16 switched root to *, keeping the account locked while keys worked again. The bug then went unnoticed for about ten years: OpenSSH is tested on OpenBSD and glibc, musl does not test sshd, most distributions go through PAM, which never calls crypt() for a *, a * in shadow needs a wrong attempt first, and a fresh box with no passwords set is not affected. Near misses include a 2013 Debian request to copy musl's *, closed six years later when Debian moved to libxcrypt, which returns *0; a December 2024 musl mailing list thread about busybox passwd breaking on a 257-character password, with no mention of sshd; and a 30 October 2026 security review that fixed pick_salt() while the bug sat four lines below, four days before the author found it.

Read the original sshhole.comDiscussion

Discussion

Commenters mostly praise the write-up, the site design and the name, though some criticize the AI-assisted, all-lowercase style. One asks what real deployments actually run musl without PAM with password authentication enabled, and another links the OpenSSH maintainer's note that updating or setting PasswordAuthentication=no remediates the issue.

Sources

Published: First seen: Updated: Читать по-русски

Open as a page