$RodHat_/search
MOTD

OpenSSH SSHole (CVE-2026-123158): a 2016 timing fix, a "*" hash, and root on Alpine

Published by

This article may contain Amazon affiliate links. I may earn a commission if you buy through them. Disclosure.

Editorial card for the OpenSSH SSHole flaw, CVE-2026-123158
Editorial card: RodHat

CVE-2026-123158, nicknamed SSHole, scores 8.1 and is fixed in OpenSSH 10.6p2. Per The Hacker News, Previdian saw the first exploitation attempt less than nine hours after the CVE was published and confirmed root on an Alpine honeypot.

The bug: on Linux with OpenSSH built against musl and PAM disabled, an unauthenticated attacker can send an oversized password and log in to an account whose password field is *. That includes Alpine’s default OpenSSH server configuration. Per the article, passwords between 257 and 1,024 bytes make the hash attempt fail, the failure comes back as the string *, and sshd compares that against the * stored in the account’s password field. Match. Come on in.

Read that again. The “this account has no usable password” marker and the “hashing blew up” return value are the same byte. That’s a sentinel collision, the oldest bug in the C book, and it’s been sitting there for ten years.

The ten years is the interesting part. The article traces it to the patch for CVE-2016-6210, a username enumeration bug. NVD describes that one as sshd using BLOWFISH hashing on a static password when the user doesn’t exist, so a long password gave a timing difference between real and fake accounts. The OpenSSH 7.3 notes say the mitigation was to make timing differences in password authentication harder to use for telling valid from invalid account names, and separately to refuse password authentication requests longer than 1024 characters. A medium-severity 5.9 info leak got fixed in 2016. The fix grew a hole that the article says wasn’t found until now. Fixing a side channel by being clever in the auth path is how you end up here.

Scope, because the headlines will be sloppy:

  1. You need an account with * as its hash. It does not bypass accounts with real password hashes. Key-only users, service accounts and a locked root all qualify.
  2. musl and no PAM. Per the article, Dropbear, glibc-based distributions, non-Linux systems and anything that checks passwords through PAM are not affected.
  3. Impact is whatever that account can do. Previdian’s attacker ran id, uname and hostname over non-interactive SSH sessions. Eight attempts, one source IP. Recon, not a rampage. Yet.

What to do: install 10.6p2 or your distro’s patched package, then restart sshd. Alpine’s guidance is to grep /var/log/messages for sshd lines reading “Accepted password for” on any account that shouldn’t take a password: alpine, root, any key-only user. Also look at doas use and recently created users, files and authorized keys. Their words, and I agree with them: if you can’t rule out a login, treat the machine as compromised.

Until you’ve patched, PasswordAuthentication no in sshd_config is the obvious thing to reach for. The article doesn’t list it as a mitigation, so I won’t claim it’s one. Test it on a box you can reach from a console before you rely on it.

I’ve written about OpenSSH shedding legacy code and about the host-key re-exchange bug. Those were the project cutting complexity. This one is the project paying for complexity it added in 2016. Every minimalist container image that picked musl and dropped PAM to save a few megabytes also dropped a code path that would have caught this. Small is fine. Small and untested on the weird input is how you get paged. More in the kernel and security hub.

Grudging credit: the response was fast. Patch, advisory and distro guidance all landed before most people had finished their coffee, and the researcher, Ozgun Kultekin, gets the credit. The attackers were just faster.

Sources

  1. CVE-2016-6210 (NIST National Vulnerability Database)
  2. OpenSSH 7.3 release notes (OpenSSH)
  3. Hackers Target OpenSSH SSHole Flaw Within Hours of Disclosure, Gain Root on Honeypot (The Hacker News)