← Journal
Security

OpenSSH on musl: a password of 257 to 1024 characters opens access to accounts

XORit Editorial · Sources, AI assistance and corrections

OpenSSH на musl: пароль от 257 до 1024 символов открывает доступ к учётным записям
Фото: Larsnooden, CC BY-SA 4.0

On November 5, 2026, OpenSSH 10.6p2 was released, closing a vulnerability in builds for Linux that use the musl library instead of glibc. Researcher Özgün Kültekin, who found the problem, called it *sshole. On vulnerable systems, a password between 257 and 1024 characters long allows logging into accounts that are not permitted to log in with a password, including root.

The exploitation conditions are narrow. sshd is built without PAM, password authentication is enabled, the system has at least one account with a real password hash, and the target records have an asterisk in the password field. musl is widespread in embedded Linux, and Alpine Linux, where this library is standard, publishes official cloud images for AWS and Azure.

The vulnerability is dated to 2016, when OpenSSH added protection against username enumeration: for nonexistent accounts, sshd began performing a dummy hash to equalize response time. On systems with musl, this logic, together with the library's local specifics, made it possible to open asterisk records with a password longer than 256 bytes.

The roots go back to 1980: in BSD Unix, an asterisk in /etc/passwd was placed for a service account to disable password login for it. That practice has survived. The crypt() function may return NULL when it cannot compute a hash, and the musl developers return a single character for some errors, and that character is an asterisk. musl also added SHA-512-based hashing, which slows down as the password length grows, and limited passwords to 256 bytes.

The targets are service accounts used for key-based login and LDAP users, as well as root if direct login as root is allowed by the sshd settings. The fix is included in OpenSSH 10.6p2, and newer builds are also protected. If updating is not possible, password authentication should be disabled and sshd restarted. There is no data that the vulnerability has already been exploited; in his publication, Kültekin provides a command that lets you check whether the machine has accepted a password for accounts without a password.

Image: Larsnooden CC BY-SA 4.0 · License

Translation editors: Соловьев В., Пеков А.

Source: www.theregister.com ↗

← All newsRead XORit on Telegram ↗

Request a call
or contact us

Request a call

    How data is processed · SmartCaptcha data notice

    Your request has been successfully
    sent

    We will contact you shortly,
    to discuss cooperation details

    An error occurred
    while sending the form

    Please try again later
    or contact us directly: