CVE-2025-24031

Source
https://cve.org/CVERecord?id=CVE-2025-24031
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24031.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-24031
Aliases
  • GHSA-wvr3-c9x3-9mff
Downstream
Related
Published
2025-02-10T15:38:39.876Z
Modified
2026-04-10T05:24:08.028850Z
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
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24031.json",
    "cna_assigner": "GitHub_M",
    "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
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.6.12"
        }
    ]
}

Affected versions

pam_pkcs11-0.*
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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-24031.json"