Skip to content

CVE-2025-24031 PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN

MediumCVSS 5.1 EPSS 0.14%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

PAM-PKCS#11 is a Linux-PAM login module that allows a X.509 certificate based user login. In versions 0.6.12 and prior, the pam_pkcs11 module segfaults when a user presses ctrl-c/ctrl-d when they are asked for a PIN. When a user enters no PIN at all, pam_get_pwd will never initialize the password buffer pointer and as such cleanse will try to dereference an uninitialized pointer. On my system this pointer happens to have the value 3 most of the time when running sudo and as such it will segfault. The most likely impact to a system affected by this issue is an availability impact due to a daemon that uses PAM crashing. As of time of publication, a patch for the issue is unavailable.

Upgrade path

8 packages: 0 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/pam-pkcs11(Debian 12) = 0.6.12-1; = 0.6.12-1+deb12u1; = 0.6.12-2; = 0.6.13-1 +2 more No fix listed No fix yet
debian/pam-pkcs11(Debian 13) = 0.6.13-1; = 0.6.13-2; All versions No fix listed No fix yet
debian/pam-pkcs11(Debian 14) = 0.6.13-1; = 0.6.13-2; All versions No fix listed No fix yet
ubuntu/pam-pkcs11(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/pam-pkcs11(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/pam-pkcs11(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/pam-pkcs11(Ubuntu 26.10) All versions No fix listed No fix yet
opensc pam_pkcs11 = <= 0.6.12 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/pam-pkcs11(Debian:12) All versions No fix listed
debian/pam-pkcs11(Debian:12) = 0.6.12-1 No fix listed
debian/pam-pkcs11(Debian:12) = 0.6.12-1+deb12u1 No fix listed
debian/pam-pkcs11(Debian:12) = 0.6.12-2 No fix listed
debian/pam-pkcs11(Debian:12) = 0.6.13-1 No fix listed
debian/pam-pkcs11(Debian:12) = 0.6.13-2 No fix listed
debian/pam-pkcs11(Debian:13) All versions No fix listed
debian/pam-pkcs11(Debian:13) = 0.6.13-1 No fix listed
debian/pam-pkcs11(Debian:13) = 0.6.13-2 No fix listed
debian/pam-pkcs11(Debian:14) All versions No fix listed
debian/pam-pkcs11(Debian:14) = 0.6.13-1 No fix listed
debian/pam-pkcs11(Debian:14) = 0.6.13-2 No fix listed
opensc pam_pkcs11 = <= 0.6.12 No fix listed
ubuntu/pam-pkcs11(Ubuntu:22.04) All versions No fix listed
ubuntu/pam-pkcs11(Ubuntu:24.04) All versions No fix listed
ubuntu/pam-pkcs11(Ubuntu:26.04) All versions No fix listed
ubuntu/pam-pkcs11(Ubuntu:26.10) All versions No fix listed

References