r/linux • u/gainan • Nov 05 '26
Security SSH critical vulnerability (when built and run with PAM support disabled)
https://sshhole.com/tl;dr: https://news.ycombinator.com/item?id=50380029
- sshd compiled with musl
- not using PAM
- password logins enabled
- at least one account with '*' as the password "hash"
- at least one OTHER account with a valid password
https://www.openssh.org/releasenotes.html#10.6p2
558
Upvotes
View all comments
Show parent comment
2
u/SN4T14 29d ago
No, because many libc implementations support many different hashing algorithms with widely varying compute requirements. If you pass a random string into glibc for example, it falls back to descrypt, which is many orders of magnitude faster than yescrypt, scrypt, bcrypt etc. that are the default on most systems. The settings are also implementation specific and a valid random string in one libc implementation may be rejected as invalid for another and not trigger any hash computation at all.
The only safe, portable way to ensure it will take a realistic amount of time is to use a real hash.