CVE-2025-24031
CVE-2025-24031 · PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN
CVSS 5.1 · Medium · EPSS 0.2%
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- pam_pkcs11No fix published
- pam-pkcs11 Debian 12No fix published
- pam-pkcs11 Debian 13No fix published
- pam-pkcs11 Debian 14No fix published
- and 8 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="pam-pkcs11"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2025:20199-1 · SUSE Linux Micro 6.0 ·
- SUSE-SU-2025:0712-1 · SUSE Linux Enterprise Micro 5.1, SUSE Linux Enterprise Micro 5.2, SUSE Linux Enterprise Micro 5.3, SUSE Linux Enterprise Micro 5.4, SUSE Linux Enterprise Micro 5.5 ·
- SUSE-SU-2025:0689-1 · openSUSE Leap 15.6, SUSE Linux Enterprise Module for Basesystem 15 SP6 ·
- SUSE-SU-2025:0688-1 · SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 ·
Stack: system
Affected products and versions
pam_pkcs11
- Versions
- <= 0.6.12: Affected
No fix published
pam-pkcs11 Debian 12
- Versions
- 0.6.12-1
- 0.6.12-1+deb12u1
- 0.6.12-2
- 0.6.13-1
- 0.6.13-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Debian 13
- Versions
- 0.6.13-1
- 0.6.13-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Debian 14
- Versions
- 0.6.13-1
- 0.6.13-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu Pro 16.04 LTS
- Versions
- 0.6.8-4
- 0.6.8-4ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu Pro 18.04 LTS
- Versions
- 0.6.9-1
- 0.6.9-2
- 0.6.9-2build1
- 0.6.9-2build2
- 0.6.9-2ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu 20.04 LTS
- Versions
- 0.6.11-2
- 0.6.11-2ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu 22.04 LTS
- Versions
- 0.6.11-4build1
- 0.6.11-4build2
- 0.6.11-4ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu 24.04 LTS
- Versions
- 0.6.12-1
- 0.6.12-2
- 0.6.12-2build2
- 0.6.12-2build3
- 0.6.12-2ubuntu0.24.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu 25.10
- Versions
- 0.6.13-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu 26.10
- Versions
- 0.6.13-1build1
- 0.6.13-2
- 0.6.13-2ubuntu1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
pam-pkcs11 Ubuntu 26.04 LTS
- Versions
- 0.6.13-1
- 0.6.13-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-wvr3-c9x3-9mff
- https://github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c#L211
- https://github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c#L797
- https://nvd.nist.gov/vuln/detail/CVE-2025-24031