<?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">sudo-1.9.15p2-1.1 on GA media</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2024:13490</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2024-06-17T21:45:33Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2024-06-17T21:45:33Z</InitialReleaseDate>
    <CurrentReleaseDate>2024-06-17T21:45:33Z</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">sudo-1.9.15p2-1.1 on GA media</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">These are all security issues fixed in the sudo-1.9.15p2-1.1 package on the GA media of openSUSE Tumbleweed.</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">openSUSE-Tumbleweed-2024-13490</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/>
      <Description>E-Mail link for openSUSE-SU-2024:13490</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://www.suse.com/security/cve/CVE-2023-42456/</URL>
      <Description>SUSE CVE CVE-2023-42456 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2023-42465/</URL>
      <Description>SUSE CVE CVE-2023-42465 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Tumbleweed">
      <Branch Type="Product Name" Name="openSUSE Tumbleweed">
        <FullProductName ProductID="openSUSE Tumbleweed" CPE="cpe:/o:opensuse:tumbleweed">openSUSE Tumbleweed</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="sudo-1.9.15p2-1.1">
      <FullProductName ProductID="sudo-1.9.15p2-1.1">sudo-1.9.15p2-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="sudo-devel-1.9.15p2-1.1">
      <FullProductName ProductID="sudo-devel-1.9.15p2-1.1">sudo-devel-1.9.15p2-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="sudo-plugin-python-1.9.15p2-1.1">
      <FullProductName ProductID="sudo-plugin-python-1.9.15p2-1.1">sudo-plugin-python-1.9.15p2-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="sudo-policy-sudo-auth-self-1.9.15p2-1.1">
      <FullProductName ProductID="sudo-policy-sudo-auth-self-1.9.15p2-1.1">sudo-policy-sudo-auth-self-1.9.15p2-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="sudo-policy-wheel-auth-self-1.9.15p2-1.1">
      <FullProductName ProductID="sudo-policy-wheel-auth-self-1.9.15p2-1.1">sudo-policy-wheel-auth-self-1.9.15p2-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="sudo-test-1.9.15p2-1.1">
      <FullProductName ProductID="sudo-test-1.9.15p2-1.1">sudo-test-1.9.15p2-1.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="system-group-sudo-1.9.15p2-1.1">
      <FullProductName ProductID="system-group-sudo-1.9.15p2-1.1">system-group-sudo-1.9.15p2-1.1</FullProductName>
    </Branch>
    <Relationship ProductReference="sudo-1.9.15p2-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:sudo-1.9.15p2-1.1">sudo-1.9.15p2-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="sudo-devel-1.9.15p2-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:sudo-devel-1.9.15p2-1.1">sudo-devel-1.9.15p2-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="sudo-plugin-python-1.9.15p2-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:sudo-plugin-python-1.9.15p2-1.1">sudo-plugin-python-1.9.15p2-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="sudo-policy-sudo-auth-self-1.9.15p2-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:sudo-policy-sudo-auth-self-1.9.15p2-1.1">sudo-policy-sudo-auth-self-1.9.15p2-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="sudo-policy-wheel-auth-self-1.9.15p2-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:sudo-policy-wheel-auth-self-1.9.15p2-1.1">sudo-policy-wheel-auth-self-1.9.15p2-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="sudo-test-1.9.15p2-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:sudo-test-1.9.15p2-1.1">sudo-test-1.9.15p2-1.1 as a component of openSUSE Tumbleweed</FullProductName>
    </Relationship>
    <Relationship ProductReference="system-group-sudo-1.9.15p2-1.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Tumbleweed">
      <FullProductName ProductID="openSUSE Tumbleweed:system-group-sudo-1.9.15p2-1.1">system-group-sudo-1.9.15p2-1.1 as a component of openSUSE Tumbleweed</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">Sudo-rs, a memory safe implementation of sudo and su, allows users to not have to enter authentication at every sudo attempt, but instead only requiring authentication every once in a while in every terminal or process group. Only once a configurable timeout has passed will the user have to re-authenticate themselves. Supporting this functionality is a set of session files (timestamps) for each user, stored in `/var/run/sudo-rs/ts`. These files are named according to the username from which the sudo attempt is made (the origin user).

An issue was discovered in versions prior to 0.2.1 where usernames containing the `.` and `/` characters could result in the corruption of specific files on the filesystem. As usernames are generally not limited by the characters they can contain, a username appearing to be a relative path can be constructed. For example we could add a user to the system containing the username `../../../../bin/cp`. When logged in as a user with that name, that user could run `sudo -K` to clear their session record file. The session code then constructs the path to the session file by concatenating the username to the session file storage directory, resulting in a resolved path of `/bin/cp`. The code then clears that file, resulting in the `cp` binary effectively being removed from the system.

An attacker needs to be able to login as a user with a constructed username. Given that such a username is unlikely to exist on an existing system, they will also need to be able to create the users with the constructed usernames.

The issue is patched in version 0.2.1 of sudo-rs. Sudo-rs now uses the uid for the user instead of their username for determining the filename. Note that an upgrade to this version will result in existing session files being ignored and users will be forced to re-authenticate. It also fully eliminates any possibility of path traversal, given that uids are always integer values.

The `sudo -K` and `sudo -k` commands can run, even if a user has no sudo access. As a workaround, make sure that one's system does not contain any users with a specially crafted username. While this is the case and while untrusted users do not have the ability to create arbitrary users on the system, one should not be able to exploit this issue.</Note>
    </Notes>
    <CVE>CVE-2023-42456</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Tumbleweed:sudo-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-devel-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-plugin-python-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-policy-sudo-auth-self-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-policy-wheel-auth-self-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-test-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:system-group-sudo-1.9.15p2-1.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/>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2023-42456.html</URL>
        <Description>CVE-2023-42456</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">Sudo before 1.9.15 might allow row hammer attacks (for authentication bypass or privilege escalation) because application logic sometimes is based on not equaling an error value (instead of equaling a success value), and because the values do not resist flips of a single bit.</Note>
    </Notes>
    <CVE>CVE-2023-42465</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Tumbleweed:sudo-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-devel-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-plugin-python-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-policy-sudo-auth-self-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-policy-wheel-auth-self-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:sudo-test-1.9.15p2-1.1</ProductID>
        <ProductID>openSUSE Tumbleweed:system-group-sudo-1.9.15p2-1.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/>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2023-42465.html</URL>
        <Description>CVE-2023-42465</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1219026</URL>
        <Description>SUSE Bug 1219026</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1221593</URL>
        <Description>SUSE Bug 1221593</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1224872</URL>
        <Description>SUSE Bug 1224872</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
