CVE-2025-24031PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | pam-pkcs11 | Fix pending | UBUNTU-CVE-2025-24031 | |
| Ubuntu 26.04 | pam-pkcs11 | Under investigation | UBUNTU-CVE-2025-24031 | |
| Ubuntu 25.10 | pam-pkcs11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-24031 | |
| Ubuntu 24.04 | pam-pkcs11 | Under investigation | UBUNTU-CVE-2025-24031 | |
| Ubuntu 22.04 | pam-pkcs11 | Under investigation | UBUNTU-CVE-2025-24031 | |
| Ubuntu 20.04 | pam-pkcs11 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-24031 | |
| Ubuntu 18.04 | pam-pkcs11 | Fix pending | UBUNTU-CVE-2025-24031 | |
| Ubuntu 16.04 | pam-pkcs11 | Fix pending | UBUNTU-CVE-2025-24031 | |
| Debian 14 | pam-pkcs11 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-24031 | |
| Debian 13 | pam-pkcs11 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-24031 | |
| Debian 12 | pam-pkcs11 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-24031 | |
| Red Hat Enterprise Linux 7 | pam_pkcs11 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | pam_pkcs11 | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenSC pam_pkcs11: affected: <= 0.6.12
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.