<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Security update for pam_pkcs11</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>SUSE-SU-2025:0689-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2025-02-24T12:57:14Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2025-02-24T12:57:14Z</InitialReleaseDate>
    <CurrentReleaseDate>2025-02-24T12:57:14Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for pam_pkcs11</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for pam_pkcs11 fixes the following issues:

- CVE-2025-24032: default value for `cert_policy` (`none`) allows for authentication bypass (bsc#1237062).
- CVE-2025-24031: uninitialized pointer dereference caused by user pressing ctrl-c/ctrl-d when asked for PIN leads to
  crash (bsc#1237058).
</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">Image SLES15-SP6-Hardened-BYOS-2025-689,Image SLES15-SP6-Hardened-BYOS-GCE-2025-689,SUSE-2025-689,SUSE-SLE-Module-Basesystem-15-SP6-2025-689,openSUSE-SLE-15.6-2025-689</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/update/announcement/2025/suse-su-20250689-1/</URL>
      <Description>Link for SUSE-SU-2025:0689-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://lists.suse.com/pipermail/sle-security-updates/2025-February/020426.html</URL>
      <Description>E-Mail link for SUSE-SU-2025:0689-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1237058</URL>
      <Description>SUSE Bug 1237058</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1237062</URL>
      <Description>SUSE Bug 1237062</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2025-24031/</URL>
      <Description>SUSE CVE CVE-2025-24031 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2025-24032/</URL>
      <Description>SUSE CVE CVE-2025-24032 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="Image SLES15-SP6-Hardened-BYOS">
      <Branch Type="Product Name" Name="Image SLES15-SP6-Hardened-BYOS">
        <FullProductName ProductID="Image SLES15-SP6-Hardened-BYOS">Image SLES15-SP6-Hardened-BYOS</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="Image SLES15-SP6-Hardened-BYOS-GCE">
      <Branch Type="Product Name" Name="Image SLES15-SP6-Hardened-BYOS-GCE">
        <FullProductName ProductID="Image SLES15-SP6-Hardened-BYOS-GCE">Image SLES15-SP6-Hardened-BYOS-GCE</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Module for Basesystem 15 SP6">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Module for Basesystem 15 SP6">
        <FullProductName ProductID="SUSE Linux Enterprise Module for Basesystem 15 SP6" CPE="cpe:/o:suse:sle-module-basesystem:15:sp6">SUSE Linux Enterprise Module for Basesystem 15 SP6</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.6">
      <Branch Type="Product Name" Name="openSUSE Leap 15.6">
        <FullProductName ProductID="openSUSE Leap 15.6" CPE="cpe:/o:opensuse:leap:15.6">openSUSE Leap 15.6</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="pam_pkcs11-0.6.10-150600.16.3.1">
      <FullProductName ProductID="pam_pkcs11-0.6.10-150600.16.3.1">pam_pkcs11-0.6.10-150600.16.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="pam_pkcs11-32bit-0.6.10-150600.16.3.1">
      <FullProductName ProductID="pam_pkcs11-32bit-0.6.10-150600.16.3.1">pam_pkcs11-32bit-0.6.10-150600.16.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="pam_pkcs11-64bit-0.6.10-150600.16.3.1">
      <FullProductName ProductID="pam_pkcs11-64bit-0.6.10-150600.16.3.1">pam_pkcs11-64bit-0.6.10-150600.16.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="pam_pkcs11-devel-doc-0.6.10-150600.16.3.1">
      <FullProductName ProductID="pam_pkcs11-devel-doc-0.6.10-150600.16.3.1">pam_pkcs11-devel-doc-0.6.10-150600.16.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="pam_pkcs11-0.6.10-150600.16.3.1" RelationType="Default Component Of" RelatesToProductReference="Image SLES15-SP6-Hardened-BYOS">
      <FullProductName ProductID="Image SLES15-SP6-Hardened-BYOS:pam_pkcs11-0.6.10-150600.16.3.1">pam_pkcs11-0.6.10-150600.16.3.1 as a component of Image SLES15-SP6-Hardened-BYOS</FullProductName>
    </Relationship>
    <Relationship ProductReference="pam_pkcs11-0.6.10-150600.16.3.1" RelationType="Default Component Of" RelatesToProductReference="Image SLES15-SP6-Hardened-BYOS-GCE">
      <FullProductName ProductID="Image SLES15-SP6-Hardened-BYOS-GCE:pam_pkcs11-0.6.10-150600.16.3.1">pam_pkcs11-0.6.10-150600.16.3.1 as a component of Image SLES15-SP6-Hardened-BYOS-GCE</FullProductName>
    </Relationship>
    <Relationship ProductReference="pam_pkcs11-0.6.10-150600.16.3.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Basesystem 15 SP6">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Basesystem 15 SP6:pam_pkcs11-0.6.10-150600.16.3.1">pam_pkcs11-0.6.10-150600.16.3.1 as a component of SUSE Linux Enterprise Module for Basesystem 15 SP6</FullProductName>
    </Relationship>
    <Relationship ProductReference="pam_pkcs11-32bit-0.6.10-150600.16.3.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Module for Basesystem 15 SP6">
      <FullProductName ProductID="SUSE Linux Enterprise Module for Basesystem 15 SP6:pam_pkcs11-32bit-0.6.10-150600.16.3.1">pam_pkcs11-32bit-0.6.10-150600.16.3.1 as a component of SUSE Linux Enterprise Module for Basesystem 15 SP6</FullProductName>
    </Relationship>
    <Relationship ProductReference="pam_pkcs11-0.6.10-150600.16.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.6">
      <FullProductName ProductID="openSUSE Leap 15.6:pam_pkcs11-0.6.10-150600.16.3.1">pam_pkcs11-0.6.10-150600.16.3.1 as a component of openSUSE Leap 15.6</FullProductName>
    </Relationship>
    <Relationship ProductReference="pam_pkcs11-32bit-0.6.10-150600.16.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.6">
      <FullProductName ProductID="openSUSE Leap 15.6:pam_pkcs11-32bit-0.6.10-150600.16.3.1">pam_pkcs11-32bit-0.6.10-150600.16.3.1 as a component of openSUSE Leap 15.6</FullProductName>
    </Relationship>
    <Relationship ProductReference="pam_pkcs11-devel-doc-0.6.10-150600.16.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.6">
      <FullProductName ProductID="openSUSE Leap 15.6:pam_pkcs11-devel-doc-0.6.10-150600.16.3.1">pam_pkcs11-devel-doc-0.6.10-150600.16.3.1 as a component of openSUSE Leap 15.6</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">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.</Note>
    </Notes>
    <CVE>CVE-2025-24031</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Image SLES15-SP6-Hardened-BYOS-GCE:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>Image SLES15-SP6-Hardened-BYOS:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Basesystem 15 SP6:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Basesystem 15 SP6:pam_pkcs11-32bit-0.6.10-150600.16.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:pam_pkcs11-32bit-0.6.10-150600.16.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:pam_pkcs11-devel-doc-0.6.10-150600.16.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2025/suse-su-20250689-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2025-24031.html</URL>
        <Description>CVE-2025-24031</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1237058</URL>
        <Description>SUSE Bug 1237058</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">PAM-PKCS#11 is a Linux-PAM login module that allows a X.509 certificate based user login. Prior to version 0.6.13, if cert_policy is set to none (the default value), then pam_pkcs11 will only check if the user is capable of logging into the token. An attacker may create a different token with the user's public data (e.g. the user's certificate) and a PIN known to the attacker. If no signature with the private key is required, then the attacker may now login as user with that created token. The default to *not* check the private key's signature has been changed with commit commi6638576892b59a99389043c90a1e7dd4d783b921, so that all versions starting with pam_pkcs11-0.6.0 should be affected. As a workaround, in `pam_pkcs11.conf`, set at least `cert_policy = signature;`.</Note>
    </Notes>
    <CVE>CVE-2025-24032</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>Image SLES15-SP6-Hardened-BYOS-GCE:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>Image SLES15-SP6-Hardened-BYOS:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Basesystem 15 SP6:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>SUSE Linux Enterprise Module for Basesystem 15 SP6:pam_pkcs11-32bit-0.6.10-150600.16.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:pam_pkcs11-0.6.10-150600.16.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:pam_pkcs11-32bit-0.6.10-150600.16.3.1</ProductID>
        <ProductID>openSUSE Leap 15.6:pam_pkcs11-devel-doc-0.6.10-150600.16.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2025/suse-su-20250689-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2025-24032.html</URL>
        <Description>CVE-2025-24032</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1237062</URL>
        <Description>SUSE Bug 1237062</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
