5.1

CVE-2025-24031: opensc pam_pkcs11 NULL Pointer Dereference

CVSS: 5.1v4.0MediumDeferred
AliasesUBUNTU-CVE-2025-24031DEBIAN-CVE-2025-24031
Published 10-02-2025Last modified 10-02-2025

Vulnerability summary

CVE-2025-24031 is a medium (CVSS 5.1) NULL Pointer Dereference vulnerability in opensc pam_pkcs11. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 3.2% of scored vulnerabilities.

Overall risk
20/100
0100
Low · default modelHow is this calculated?
CVSS score
5.1/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.14%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 10-02-2025
    PublishedVulnerability first disclosed.
  2. 10-02-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.14%

Chance of exploitation in the next 30 days

Percentile

3%

Versus all other CVEs

30-day change

0.00 pp

From 0.14% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.14%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • pam-pkcs11All versions (No fix recorded)
Opensc1 product
Ubuntu1 product
  • pam-pkcs11All versions (No fix recorded)

3 vendors · 3 products

References

6 links