cve.bz

CVE-2025-24031 opensc pam pkcs11: NULL Pointer Dereference

5.1 mediumEPSS 0.1%

Medium (5.1) in opensc pam pkcs11. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.1 medium
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
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-02-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-24031 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-24031?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-24031?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-24031 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSC pam_pkcs11<= 0.6.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14pam-pkcs11no fix listedDEBIAN-CVE-2025-24031
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 5 morepam-pkcs11no fix listedUBUNTU-CVE-2025-24031
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 2 morepam_pkcs110.6.10-150100.3.6.1SUSE-SU-2025:0712-1
SUSELinux Enterprise Module for Basesystem 15 SP6pam_pkcs110.6.10-150600.16.3.1SUSE-SU-2025:0689-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5pam_pkcs110.6.8-7.8.1SUSE-SU-2025:0688-1
SUSELinux Micro 6.0pam_pkcs110.6.12-3.1SUSE-SU-2025:20199-1
openSUSELeap 15.6pam_pkcs110.6.10-150600.16.3.1SUSE-SU-2025:0689-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6pam_pkcs11Out of support scope
Red Hat Enterprise Linux 7pam_pkcs11Out of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-24031.

References

Check your stackJSON