{"id":"CVE-2025-24031","aliases":["DEBIAN-CVE-2025-24031","EUVD-2025-3601","GHSA-wvr3-c9x3-9mff","SUSE-SU-2025:0688-1","SUSE-SU-2025:0689-1","SUSE-SU-2025:0712-1","SUSE-SU-2025:20199-1","UBUNTU-CVE-2025-24031"],"status":"published","title":"PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN","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.","severity":{"version":"4.0","score":5.1,"vector":"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00143,"percentile":0.03613,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-476"],"published":"2025-02-10T15:38:39Z","modified":"2026-10-28T02:30:42Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.12-1","0.6.12-1+deb12u1","0.6.12-2","0.6.13-1","0.6.13-2"]},{"source":"osv","ecosystem":"Debian:13","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.13-1","0.6.13-2"]},{"source":"osv","ecosystem":"Debian:14","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.13-1","0.6.13-2"]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.8-7.8.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.10-150600.16.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.6","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.10-150600.16.3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.3","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.10-150100.3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.4","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.10-150100.3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.5","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.10-150100.3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.1","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.10-150100.3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Micro 5.2","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.10-150100.3.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Micro 6.0","package":"pam_pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.12-3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.8-4","0.6.8-4ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.9-1","0.6.9-2","0.6.9-2build1","0.6.9-2build2","0.6.9-2ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.11-2","0.6.11-2ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.11-4build1","0.6.11-4build2","0.6.11-4ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.12-1","0.6.12-2","0.6.12-2build2","0.6.12-2build3","0.6.12-2ubuntu0.24.04.1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.13-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.13-1build1","0.6.13-2","0.6.13-2ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"pam-pkcs11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.6.13-1","0.6.13-1build1"]}],"products":[{"vendor":"opensc","product":"pam_pkcs11"},{"vendor":"opensc project","product":"pam_pkcs11"}],"references":[{"url":"https://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-wvr3-c9x3-9mff","tags":["x_refsource_CONFIRM","exploit","advisory","report"]},{"url":"https://github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c#L211","tags":["x_refsource_MISC","web","report"]},{"url":"https://github.com/OpenSC/pam_pkcs11/blob/bb2e3f3a95e44fdf44b0d5a4b377db3179021380/src/pam_pkcs11/pam_pkcs11.c#L797","tags":["x_refsource_MISC","web","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24031.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24031","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-24031","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2025/suse-su-20250688-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1237058","tags":["report"]},{"url":"https://bugzilla.suse.com/1237062","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2025-24031","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-24032","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2025/suse-su-20250689-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2025/suse-su-20250712-1/","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2025/suse-su-202520199-1/","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-24031","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-24031","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-24031","title":"PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN","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.","status":"published","published":"2025-02-10T15:38:39.876Z","modified":"2025-02-10T15:50:52.981Z","cvss":[{"version":"4.0","score":5.1,"vector":"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","level":"medium","assessor":"cna"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:32:43.770144Z"}],"euvd":[{"id":"EUVD-2025-3601","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.","status":"published","published":"2025-02-10T15:38:39Z","modified":"2025-02-10T15:50:52Z","cvss":[{"version":"4.0","score":5.1,"vector":"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","level":"medium"}],"updated_at":"2026-11-03T00:04:01.319038Z"}],"nvd":[{"id":"CVE-2025-24031","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.","status":"published","published":"2025-02-10T16:15:38.99Z","modified":"2026-06-17T08:57:55.493Z","cvss":[{"version":"4.0","score":5.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:10:50.916773Z"}],"osv":[{"id":"CVE-2025-24031","title":"PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN","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.","status":"published","published":"2025-02-10T15:38:39.876Z","modified":"2026-10-28T02:30:42.641057799Z","cvss":[{"version":"4.0","score":5.1,"vector":"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","level":"medium"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:44:47.009967Z"},{"id":"DEBIAN-CVE-2025-24031","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.","status":"published","published":"2025-02-10T16:15:38.99Z","modified":"2026-09-01T20:05:45.116680175Z","cvss":[{"version":"4.0","score":5.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"}],"updated_at":"2026-11-02T15:45:45.870237Z"},{"id":"UBUNTU-CVE-2025-24031","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.","status":"published","published":"2025-02-10T16:15:00Z","modified":"2026-10-17T12:56:48.887655566Z","cvss":[{"version":"4.0","score":5.1,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T16:55:26.330196Z"},{"id":"SUSE-SU-2025:0688-1","title":"Security update for pam_pkcs11","description":"This update for pam_pkcs11 fixes the following issues:\n\n- CVE-2025-24032: default value for `cert_policy` (`none`) allows for authentication bypass (bsc#1237062).\n- CVE-2025-24031: uninitialized pointer dereference caused by user pressing ctrl-c/ctrl-d when asked for PIN leads to\n  crash (bsc#1237058).\n","status":"published","published":"2025-02-24T12:55:41Z","modified":"2025-05-02T04:37:32.0471Z","updated_at":"2026-11-02T15:53:58.883365Z"},{"id":"SUSE-SU-2025:0689-1","title":"Security update for pam_pkcs11","description":"This update for pam_pkcs11 fixes the following issues:\n\n- CVE-2025-24032: default value for `cert_policy` (`none`) allows for authentication bypass (bsc#1237062).\n- CVE-2025-24031: uninitialized pointer dereference caused by user pressing ctrl-c/ctrl-d when asked for PIN leads to\n  crash (bsc#1237058).\n","status":"published","published":"2025-02-24T12:57:14Z","modified":"2026-02-04T04:13:14.387174Z","updated_at":"2026-11-02T15:53:58.883365Z"},{"id":"SUSE-SU-2025:0712-1","title":"Security update for pam_pkcs11","description":"This update for pam_pkcs11 fixes the following issues:\n\n- CVE-2025-24032: default value for `cert_policy` (`none`) allows for authentication bypass (bsc#1237062).\n- CVE-2025-24031: uninitialized pointer dereference caused by user pressing ctrl-c/ctrl-d when asked for PIN leads to\n  crash (bsc#1237058).\n","status":"published","published":"2025-02-25T10:38:03Z","modified":"2026-02-04T02:26:47.812994Z","updated_at":"2026-11-02T15:53:58.883365Z"},{"id":"SUSE-SU-2025:20199-1","title":"Security update for pam_pkcs11","description":"This update for pam_pkcs11 fixes the following issues:\n\n- CVE-2025-24031: Fixed segmentation fault on ctrl-c/ctrl-d when asked for PIN (bsc#1237058).\n- CVE-2025-24032: Fixed authentication bypass with default value for `cert_policy` (`none`) (bsc#1237062).\n","status":"published","published":"2025-04-22T14:17:16Z","modified":"2026-03-23T04:48:53.064776Z","updated_at":"2026-11-02T15:53:59.381172Z"}]}}
