Linux-PAM maintainers have published an advisory about a local privilege-escalation risk that can arise when the pam_wheel module is used in a nonstandard configuration on a system using the musl C library. The advisory assigns a CVSS severity score of 8.2, while the maintainers describe the practical risk as minimal because the configuration is nonstandard and not normally the default. [1]
The issue involves how musl’s getlogin function obtains a user name and how pam_wheel can treat that value when configured to trust it. The advisory lists Alpine Linux 3.24.4 and Linux-PAM 1.7.3; it does not list a patched version. It says adding the use_uid option avoids the reported problem in the example configuration. [1]
A developer posting as Cassandrich disputed the characterization of the issue, arguing that reliance on getlogin for authentication is itself unsafe and describing the configuration as nondefault. That is the developer’s assessment; the advisory identifies a risk for systems using the combination described. [1][2]
The advisory says the standard glibc implementation does not have this particular problem. It does not establish that typical installations using default settings are exposed. [1]