CVEfocus › CVE database › CVE-2025-24031

CVE-2025-24031PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN

CVSS 5.1 MediumEPSS 0.2% (higher than 5% of CVEs)Published 2025-02-10Updated 2025-02-10Assigner: GitHub_M

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.

CWE-476

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

3Fix pending
3Under investigation
7Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pam-pkcs11Fix pendingUBUNTU-CVE-2025-24031
Ubuntu 26.04pam-pkcs11Under investigationUBUNTU-CVE-2025-24031
Ubuntu 25.10pam-pkcs11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-24031
Ubuntu 24.04pam-pkcs11Under investigationUBUNTU-CVE-2025-24031
Ubuntu 22.04pam-pkcs11Under investigationUBUNTU-CVE-2025-24031
Ubuntu 20.04pam-pkcs11Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-24031
Ubuntu 18.04pam-pkcs11Fix pendingUBUNTU-CVE-2025-24031
Ubuntu 16.04pam-pkcs11Fix pendingUBUNTU-CVE-2025-24031
Debian 14pam-pkcs11Will 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 13pam-pkcs11Will 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 12pam-pkcs11Will 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 7pam_pkcs11Will not fix
Out of support scope
Red Hat Enterprise Linux 6pam_pkcs11Will 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.

References

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.