{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24031 exists.","fix":"No fix published yet.","what":"CVE-2025-24031 is a medium-severity vulnerability in OpenSC pam_pkcs11, published on 10 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-24031 and fix it if it is affected.\n\nWhat it is: CVE-2025-24031 is a medium-severity vulnerability in OpenSC pam_pkcs11, published on 10 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24031 exists.\n\nAffected product: OpenSC pam_pkcs11. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-24031/ (Markdown: https://insights.sbomify.com/CVE-2025-24031/index.md)","id":"CVE-2025-24031","markdown":"https://insights.sbomify.com/CVE-2025-24031/index.md","name":"CVE-2025-24031","record":{"aliases":["DEBIAN-CVE-2025-24031","GHSA-wvr3-c9x3-9mff","UBUNTU-CVE-2025-24031"],"analysis":{"component_type":"operating_system","fix_type":"no_fix_stated","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux PAM module","requires_auth":"none","summary":"An attacker can cause a denial of service by triggering a segmentation fault in the PAM-PKCS#11 module when a user cancels the PIN prompt.","user_interaction":"not_required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.1,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PAM-PKCS#11 vulnerable to segmentation fault on ctrl-c/ctrl-d when asked for PIN","id":"CVE-2025-24031","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"null_dereference","year":"2025"},"n_packages":0,"n_references":3,"next":{"headline":"PAM-PKCS#11 vulnerable to authentication bypass with default value for `cert_policy` (`none`)","id":"CVE-2025-24032"},"packages":[],"prev":{"headline":"Envoy Admin Interface Exposed through prometheus metrics endpoint","id":"CVE-2025-24030"},"products":["pam_pkcs11"],"published":"2025-02-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-10","vendors":["OpenSC"]},"summary":"An attacker can cause a denial of service by triggering a segmentation fault in the PAM-PKCS#11 module when a user cancels the PIN prompt.","url":"https://insights.sbomify.com/CVE-2025-24031/"}