CVE-2026-54411

MEDIUM

Linux-PAM < 1.7.2 - Observable Timing Discrepancy

Title source: rule
STIX 2.1

Description

Linux-PAM through 1.7.2 contains an observable timing discrepancy (CWE-208) in the pam_userdb module's plaintext-password comparison path in modules/pam_userdb/pam_userdb.c that allows a local or network-adjacent attacker able to repeatedly drive authentication through a calling service to recover the plaintext password of a target account by measuring response-timing differences. The comparison uses strncmp() (or strncasecmp() when PAM_ICASE_ARG is set) preceded by a length-equality check, so the time to reject a candidate depends on the index of the first differing byte and on whether the candidate's length matches the stored password, leaking the password length and individual prefix bytes. The vulnerable path is reached when the administrator configures pam_userdb with crypt=none, with an unrecognized crypt method, or without a crypt= argument, causing the module to store and compare credentials in plaintext.

References (4)

Core 4
Core References
Product product
Linux-PAM - upstream repository
https://github.com/linux-pam/linux-pam
Product product
Vulnerable plaintext-password comparison in pam_userdb.c (master)
https://github.com/linux-pam/linux-pam/blob/master/modules/pam_userdb/pam_userdb.c#L327
Product product
pam_consttime_streq helper available for the remediation
https://github.com/linux-pam/linux-pam/blob/master/libpam/include/pam_inline.h
Technical Description technical-description
CWE-208: Observable Timing Discrepancy
https://cwe.mitre.org/data/definitions/208.html

Scores

CVSS v3 5.9
EPSS 0.0032
EPSS Percentile 23.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-208
Status published
Products (1)
Linux-PAM/Linux-PAM < 1.7.2
Published Jun 14, 2026
Tracked Since Jun 14, 2026