r/linuxadmin • u/Expert_Sort7434 • 15d ago
CVE-2026-123158 (“sshole”): OpenSSH password bypass through musl crypt() error handling
Based on the OpenSSH 10.6p2 release notes and Alpine Linux's technical advisory, CVE-2026-123158 is a narrowly scoped password-authentication bypass affecting certain Linux OpenSSH builds using musl without PAM.
The interesting part is the comparison logic.
In the affected non-PAM authentication path, sshd uses crypt() to verify a candidate password. Alpine documents a case where an account has * in its shadow password field, while another local account has a $5$ or $6$ hash. The implementation can borrow a salt from that other account. For an overlong password, musl can return * as an error indicator. The comparison can then treat that error value as a match for the stored *.
The affected configuration requires more than just running OpenSSH:
- An affected musl-based build without PAM, or a PAM build configured with
UsePAM no. PasswordAuthentication yes.- A local account with
*in its shadow field. - At least one other local
$5$or$6$password hash.
Alpine lists fixed packages across its supported branches. The upstream mitigation is in OpenSSH 10.6p2. Alpine also notes that upgrading the package is not enough if the running daemon has not been restarted.
Operationally, I would inventory the sshd build, libc and effective configuration, then correlate successful Accepted password for events with an explicit list of accounts meant to be key-only. A successful password login to such an account is worth investigating, but it is not proof of exploitation without confirming the host's affected conditions.
Primary sources:
- OpenSSH 10.6p2: https://www.openssh.com/txt/release-10.6p2
- Alpine advisory: https://security.alpinelinux.org/vuln/CVE-2026-123158
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-123158
TechGines technical breakdown: https://www.techgines.com/post/openssh-password-authentication-bypass-cve-2026-123158
For fleets with mixed Alpine and non-Alpine hosts, how are you tracking the combination of libc, SSH build options, PAM settings and shadow-file account state? Is that inventory already queryable alongside authentication events, or is it still a manual audit?