r/linux • u/UniversityMammoth653 • 22d ago
Discussion SSHole: A long password could bypass SSH authentication on affected Alpine Linux systems
A recent OpenSSH security issue caught my attention, especially because of how unusual the authentication bypass is.
The vulnerability, known as SSHole (CVE-2026-123158), affects certain Linux systems running OpenSSH with musl libc and without PAM support.
What's happening?
Under specific conditions, an attacker with network access to the SSH service can authenticate to an account that has no password configured by sending an unusually long password.
The reported password length is between 257 and 1,024 bytes.
This is particularly concerning because some accounts are intentionally configured for SSH key-based authentication only.
Which systems are affected?
The issue is configuration-dependent. The main affected combination includes:
- Linux systems using musl libc.
- OpenSSH built without PAM, or configured with PAM disabled.
- Password authentication enabled.
- Accounts with no password set, alongside at least one account with a supported password hash.
Alpine Linux is a notable example because its standard OpenSSH server package uses this configuration.
Important: This does not affect every OpenSSH installation. Systems using glibc, non-Linux systems, and configurations using PAM for password authentication are not affected by this issue.
What has been done?
The OpenSSH project released version 10.6p2 on November 5, 2026, containing a security workaround.
Alpine Linux also released updated packages for affected branches, including older releases.
Administrators should:
- Update OpenSSH or the relevant Alpine package.
- Restart the SSH daemon after updating.
- If immediate patching isn't possible, disable password authentication using "PasswordAuthentication no".
- Review SSH authentication logs for unexpected access.
Why is this interesting?
A few things stand out:
- Authentication assumptions: An account intended for key-only access may still be exposed through an unexpected authentication path.
- Dependency interactions: The issue involves the interaction between OpenSSH, musl libc, and PAM configuration.
- Configuration matters: Having a secure authentication policy on paper doesn't guarantee that the underlying implementation enforces it correctly.
Question for the community
When hardening SSH servers, do you prefer completely disabling password authentication, or do you consider properly configured PAM-based authentication sufficient?
I'd be interested in hearing how others approach SSH hardening, particularly in Alpine-based containers and lightweight Linux deployments.
Sources
- "OpenSSH – Official 10.6p2 Release Notes" (https://www.openssh.org/releasenotes.html)
- "Alpine Linux – Official Security Advisory" (https://www.alpinelinux.org/posts/2026-11-05-openssh-password-authentication-bypass/)
- "The Hacker News – SSHole Vulnerability Report" (https://thehackernews.com/2026/11/openssh-issues-emergency-fix-for-flaw.html)
- "CVE-2026-123158 – Vulnerability Record" (https://www.cve.org/CVERecord?id=CVE-2026-123158)
Shared for defensive awareness. Only test systems you own or are explicitly authorized to assess.
17
u/STrRedWolf 22d ago
The big thing here is that it's the combination of musl libc not returning anything for a status in the
crypt()function (breaking standards) and OpenSSH not checking the return status value.Forehead slaps, everyone! 3! 2! 1!
34
u/ABotelho23 22d ago
I really hope a huge suite of tests were added to the affected software after this. This really should have be caught, it's barely an edge case.
7
u/sheeproomer 22d ago
You are late to the party, the bot networks are already banging at your door since about a week.
7
u/MatchingTurret 22d ago edited 22d ago
Old news that was posted and discussed a few days ago. See https://www.reddit.com/r/linux/s/VfnbTn7nTN
5
u/Z3t4 22d ago
So you are safe if your distro uses GNU's libc.
4
u/KlePu 21d ago
You're late
16
u/brainchillzZ 22d ago edited 22d ago •
It was easy for people to miss and not notice but this does not affect “Linux” or “openssh” generically at all… this only affects two very specific router and firewall versions of Linux called openwrt or alpine or spinoffs pretty much who built their OpenSSh with a very specific set of libraries …. So this cve really only affects the ten neophytes that opened their alpine or wrt based firewall/router ssh up to the internet …
And for the question posed by the ops ai agent …. When hardening ssh servers yes, key based authentication, but also, obvious things like fail2ban by default and also… unless you have absolutely no other choice never, ever, leave any port open and listening to the raw unwashed masses of the internet that isn’t explicitly required (obviously if you are running a web server port 80 tcp needs to be open but it doesn’t need port 22 open to the internet)…. Firewall it to lock it down to a source ip or narrowed down source network at very least
1
u/kansetsupanikku 21d ago
musl acts around pam as if it knew better, and it has security consequences? color me unsurprised
8
u/dbear496 22d ago
The combination of "password authentication enabled" and "account with no password set" just sounds like a recipe for disaster to me.
2
u/HarVVVy 21d ago edited 21d ago
Buddy, that's not "3.", that's not even 1. That should be the first sentence in your post. Why are we being intellectually dishonest? For few precious clicks? Long term, who wins from this?
Okay then, I've got a challenge, it's 2026 - I wanna hear from everyone here who's still rocking ssh pass auth over the internet (and please share why you didn't do away with it 20 years ago, like a sane person). Who's doing that and surviving the sheer amount of bots out there? Are you clinging at fail2ban for dear life? I wanna hear from the brave souls, share your experiences. Do you also enjoy diving with sharks wearing a bloody meat-suit? Or blindfold truck driving once in a while?
1
u/imwithn00b 20d ago
AI posting