<?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 sudo</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2021:0169-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2021-01-27T07:24:44Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2021-01-27T07:24:44Z</InitialReleaseDate>
    <CurrentReleaseDate>2021-01-27T07:24:44Z</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 sudo</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for sudo fixes the following issues:

- A Heap-based buffer overflow in sudo could be exploited to allow a user to gain root privileges 
  [bsc#1181090,CVE-2021-3156]
- It was possible for a user to test for the existence of a directory due to a Race Condition in `sudoedit`
  [bsc#1180684,CVE-2021-23239]
- A Possible Symlink Attack vector existed in `sudoedit` if SELinux was running in permissive mode [bsc#1180685,
  CVE-2021-23240]
- It was possible for a User to enable Debug Settings not Intended for them [bsc#1180687]

This update was imported from the SUSE:SLE-15:Update update project.</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-2021-169</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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/7OQJUG5Z7K425IKZS5GT4KPIBGTT4JMW/</URL>
      <Description>E-Mail link for openSUSE-SU-2021:0169-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/1180684</URL>
      <Description>SUSE Bug 1180684</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1180685</URL>
      <Description>SUSE Bug 1180685</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1180687</URL>
      <Description>SUSE Bug 1180687</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1181090</URL>
      <Description>SUSE Bug 1181090</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-23239/</URL>
      <Description>SUSE CVE CVE-2021-23239 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-23240/</URL>
      <Description>SUSE CVE CVE-2021-23240 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-3156/</URL>
      <Description>SUSE CVE CVE-2021-3156 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Leap 15.1">
      <Branch Type="Product Name" Name="openSUSE Leap 15.1">
        <FullProductName ProductID="openSUSE Leap 15.1" CPE="cpe:/o:opensuse:leap:15.1">openSUSE Leap 15.1</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="sudo-1.8.22-lp151.5.12.1">
      <FullProductName ProductID="sudo-1.8.22-lp151.5.12.1">sudo-1.8.22-lp151.5.12.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="sudo-devel-1.8.22-lp151.5.12.1">
      <FullProductName ProductID="sudo-devel-1.8.22-lp151.5.12.1">sudo-devel-1.8.22-lp151.5.12.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="sudo-test-1.8.22-lp151.5.12.1">
      <FullProductName ProductID="sudo-test-1.8.22-lp151.5.12.1">sudo-test-1.8.22-lp151.5.12.1</FullProductName>
    </Branch>
    <Relationship ProductReference="sudo-1.8.22-lp151.5.12.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:sudo-1.8.22-lp151.5.12.1">sudo-1.8.22-lp151.5.12.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="sudo-devel-1.8.22-lp151.5.12.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:sudo-devel-1.8.22-lp151.5.12.1">sudo-devel-1.8.22-lp151.5.12.1 as a component of openSUSE Leap 15.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="sudo-test-1.8.22-lp151.5.12.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.1">
      <FullProductName ProductID="openSUSE Leap 15.1:sudo-test-1.8.22-lp151.5.12.1">sudo-test-1.8.22-lp151.5.12.1 as a component of openSUSE Leap 15.1</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">The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged user to perform arbitrary directory-existence tests by winning a sudo_edit.c race condition in replacing a user-controlled directory by a symlink to an arbitrary path.</Note>
    </Notes>
    <CVE>CVE-2021-23239</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.1:sudo-1.8.22-lp151.5.12.1</ProductID>
        <ProductID>openSUSE Leap 15.1:sudo-devel-1.8.22-lp151.5.12.1</ProductID>
        <ProductID>openSUSE Leap 15.1:sudo-test-1.8.22-lp151.5.12.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>low</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>1.9</BaseScore>
        <Vector>AV:L/AC:M/Au:N/C:P/I:N/A:N</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/7OQJUG5Z7K425IKZS5GT4KPIBGTT4JMW/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-23239.html</URL>
        <Description>CVE-2021-23239</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1171722</URL>
        <Description>SUSE Bug 1171722</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1180684</URL>
        <Description>SUSE Bug 1180684</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">selinux_edit_copy_tfiles in sudoedit in Sudo before 1.9.5 allows a local unprivileged user to gain file ownership and escalate privileges by replacing a temporary file with a symlink to an arbitrary file target. This affects SELinux RBAC support in permissive mode. Machines without SELinux are not vulnerable.</Note>
    </Notes>
    <CVE>CVE-2021-23240</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.1:sudo-1.8.22-lp151.5.12.1</ProductID>
        <ProductID>openSUSE Leap 15.1:sudo-devel-1.8.22-lp151.5.12.1</ProductID>
        <ProductID>openSUSE Leap 15.1:sudo-test-1.8.22-lp151.5.12.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>4.4</BaseScore>
        <Vector>AV:L/AC:M/Au:N/C:P/I:P/A:P</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/7OQJUG5Z7K425IKZS5GT4KPIBGTT4JMW/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-23240.html</URL>
        <Description>CVE-2021-23240</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1171722</URL>
        <Description>SUSE Bug 1171722</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1180685</URL>
        <Description>SUSE Bug 1180685</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.</Note>
    </Notes>
    <CVE>CVE-2021-3156</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.1:sudo-1.8.22-lp151.5.12.1</ProductID>
        <ProductID>openSUSE Leap 15.1:sudo-devel-1.8.22-lp151.5.12.1</ProductID>
        <ProductID>openSUSE Leap 15.1:sudo-test-1.8.22-lp151.5.12.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSet>
        <BaseScore>7.2</BaseScore>
        <Vector>AV:L/AC:L/Au:N/C:C/I:C/A:C</Vector>
      </ScoreSet>
    </CVSSScoreSets>
    <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://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/7OQJUG5Z7K425IKZS5GT4KPIBGTT4JMW/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-3156.html</URL>
        <Description>CVE-2021-3156</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1180684</URL>
        <Description>SUSE Bug 1180684</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1181090</URL>
        <Description>SUSE Bug 1181090</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1181506</URL>
        <Description>SUSE Bug 1181506</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1181657</URL>
        <Description>SUSE Bug 1181657</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1183936</URL>
        <Description>SUSE Bug 1183936</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1218863</URL>
        <Description>SUSE Bug 1218863</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1225623</URL>
        <Description>SUSE Bug 1225623</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
