CVE-2025-24031 PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2025-24031 vendor-advisory
- https://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-wvr3-c9x3-9mff exploit
- https://github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c#L211
- Ubuntu CVE tracker vendor-advisory
- www.cve.org