Skip to content

CVE-2025-24531 pam_pkcs11: authentication bypass in error situations

MediumCVSS 6.7 EPSS 0.23%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

In OpenSC pam_pkcs11 before 0.6.13, pam_sm_authenticate() wrongly returns PAM_IGNORE in many error situations (such as an error triggered by a smartcard before login), allowing authentication bypass.

Upgrade path

5 packages: 5 fixed.

PackageAffectedFixed inStatus
debian/pam-pkcs11(Debian 12) < 0.6.12-1+deb12u1; = 0.6.12-1 0.6.12-1+deb12u1 Fixed
debian/pam-pkcs11(Debian 13) < 0.6.13-1 0.6.13-1 Fixed
debian/pam-pkcs11(Debian 14) < 0.6.13-1 0.6.13-1 Fixed
opensc project pam_pkcs11 >= 0.6.12, < 0.6.13 0.6.13 Fixed
ubuntu/pam-pkcs11(Ubuntu 24.04) < 0.6.12-2ubuntu0.24.04.1 0.6.12-2ubuntu0.24.04.1 Fixed

Affected products

ProductAffected versionsFixed in
debian/pam-pkcs11(Debian:12) < 0.6.12-1+deb12u1 0.6.12-1+deb12u1
debian/pam-pkcs11(Debian:12) = 0.6.12-1 No fix listed
debian/pam-pkcs11(Debian:13) < 0.6.13-1 0.6.13-1
debian/pam-pkcs11(Debian:14) < 0.6.13-1 0.6.13-1
opensc project pam_pkcs11 >= 0.6.12, < 0.6.13 0.6.13
ubuntu/pam-pkcs11(Ubuntu:24.04) < 0.6.12-2ubuntu0.24.04.1 0.6.12-2ubuntu0.24.04.1

References