CVE-2025-24031
published medium CVSS 4.0 · 5.1PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenSC | — | pam_pkcs11<= 0.6.12 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | pam_pkcs11x86_64 | Advisory build | 0.6.8-7.8.1 | SUSE-SU-2025:0688-1 |
| SUSE / openSUSE | SLE-15-SP6 | pam_pkcs11aarch64 | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | SLE-15-SP6 | pam_pkcs11ppc64le | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | SLE-15-SP6 | pam_pkcs11s390x | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | SLE-15-SP6 | pam_pkcs11x86_64 | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | SLE-5 | pam_pkcs11aarch64 | Advisory build | 0.6.10-150100.3.6.1 | SUSE-SU-2025:0712-1 |
Show 11 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-5 | pam_pkcs11ppc64le | Advisory build | 0.6.10-150100.3.6.1 | SUSE-SU-2025:0712-1 |
| SUSE / openSUSE | SLE-5 | pam_pkcs11s390x | Advisory build | 0.6.10-150100.3.6.1 | SUSE-SU-2025:0712-1 |
| SUSE / openSUSE | SLE-5 | pam_pkcs11x86_64 | Advisory build | 0.6.10-150100.3.6.1 | SUSE-SU-2025:0712-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | pam_pkcs11aarch64 | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | pam_pkcs11ppc64le | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | pam_pkcs11s390x | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | pam_pkcs11x86_64 | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | SLE-12-SP5 | pam_pkcs11-32bitx86_64 | Advisory build | 0.6.8-7.8.1 | SUSE-SU-2025:0688-1 |
| SUSE / openSUSE | SLE-15-SP6 | pam_pkcs11-32bitx86_64 | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | pam_pkcs11-32bitx86_64 | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | pam_pkcs11-devel-docnoarch | Advisory build | 0.6.10-150600.16.3.1 | SUSE-SU-2025:0689-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenSC | pam_pkcs11 | <= 0.6.12 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-476 CWE-476: NULL Pointer Dereference
References
3- 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://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-wvr3-c9x3-9mff
Provider assertions
2GitHub_M · cna
PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 152e9334d2501ef350b017f8502b86bbeb170aee8454192cfec0dd59c9f0746d
- Ingested
- 23 Sep 2026, 08:41:01 UTC
- Source record
- Official CVE record