CVE-2025-24031

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-24031
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-24031.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-24031
Aliases
  • GHSA-wvr3-c9x3-9mff
Downstream
Related
Published
2025-02-10T15:38:39Z
Modified
2025-10-20T20:30:14.219637Z
Severity
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-476"
    ]
}
References

Affected packages

Git / github.com/opensc/pam_pkcs11

Affected ranges

Type
GIT
Repo
https://github.com/opensc/pam_pkcs11
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected

Affected versions

pam_pkcs11-0.*

pam_pkcs11-0.5.2
pam_pkcs11-0.6.10
pam_pkcs11-0.6.11
pam_pkcs11-0.6.12
pam_pkcs11-0.6.7
pam_pkcs11-0.6.8
pam_pkcs11-0.6.9