<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cpe="http://cpe.mitre.org/language/2.0" xmlns:cvrf="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf" xmlns:cvrf-common="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/common" xmlns:cvssv2="http://scap.nist.gov/schema/cvss-v2/1.0" xmlns:cvssv3="https://www.first.org/cvss/cvss-v3.0.xsd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns0="http://purl.org/dc/elements/1.1/" xmlns:prod="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod" xmlns:scap-core="http://scap.nist.gov/schema/scap-core/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:vuln="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf">
  <DocumentTitle xml:lang="en">Security update for rpm</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:2682-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2021-08-17T07:23:06Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2021-08-17T07:23:06Z</InitialReleaseDate>
    <CurrentReleaseDate>2021-08-17T07:23:06Z</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 rpm</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for rpm fixes the following issues:

- Changed default package verification level to 'none' to be compatible to rpm-4.14.1
- Made illegal obsoletes a warning
- Fixed a potential access of freed mem in ndb's glue code (bsc#1179416)
- Added support for enforcing signature policy and payload verification step to
  transactions (jsc#SLE-17817)
- Added :humansi and :hmaniec query formatters for human readable output
- Added query selectors for whatobsoletes and whatconflicts
- Added support for sorting caret higher than base version
- rpm does no longer require the signature header to be in a contiguous
  region when signing (bsc#1181805)

Security fixes:

- CVE-2021-3421: A flaw was found in the RPM package in the read functionality. This flaw allows an
  attacker who can convince a victim to install a seemingly verifiable package or compromise an RPM
  repository, to cause RPM database corruption. The highest threat from this vulnerability is to
  data integrity (bsc#1183543)

- CVE-2021-20271: A flaw was found in RPM's signature check functionality when reading a package file.
  This flaw allows an attacker who can convince a victim to install a seemingly verifiable package,
  whose signature header was modified, to cause RPM database corruption and execute code. The highest
  threat from this vulnerability is to data integrity, confidentiality, and system availability (bsc#1183545)

- CVE-2021-20266: A flaw was found in RPM's hdrblobInit() in lib/header.c. This flaw allows an attacker
  who can modify the rpmdb to cause an out-of-bounds read. The highest threat from this vulnerability
  is to system availability.
</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-SLE-15.3-2021-2682</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/IQDL4MT3J7VM3IS3TI4EMLQJHDPTSZLZ/</URL>
      <Description>E-Mail link for openSUSE-SU-2021:2682-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/1179416</URL>
      <Description>SUSE Bug 1179416</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1181805</URL>
      <Description>SUSE Bug 1181805</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1183543</URL>
      <Description>SUSE Bug 1183543</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1183545</URL>
      <Description>SUSE Bug 1183545</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-20266/</URL>
      <Description>SUSE CVE CVE-2021-20266 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-20271/</URL>
      <Description>SUSE CVE CVE-2021-20271 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-3421/</URL>
      <Description>SUSE CVE CVE-2021-3421 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod">
    <Branch Type="Product Family" Name="openSUSE Leap 15.3">
      <Branch Type="Product Name" Name="openSUSE Leap 15.3">
        <FullProductName ProductID="openSUSE Leap 15.3" CPE="cpe:/o:opensuse:leap:15.3">openSUSE Leap 15.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="python2-rpm-4.14.3-37.2">
      <FullProductName ProductID="python2-rpm-4.14.3-37.2">python2-rpm-4.14.3-37.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python3-rpm-4.14.3-37.2">
      <FullProductName ProductID="python3-rpm-4.14.3-37.2">python3-rpm-4.14.3-37.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rpm-4.14.3-37.2">
      <FullProductName ProductID="rpm-4.14.3-37.2">rpm-4.14.3-37.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rpm-32bit-4.14.3-37.2">
      <FullProductName ProductID="rpm-32bit-4.14.3-37.2">rpm-32bit-4.14.3-37.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rpm-build-4.14.3-37.2">
      <FullProductName ProductID="rpm-build-4.14.3-37.2">rpm-build-4.14.3-37.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rpm-devel-4.14.3-37.2">
      <FullProductName ProductID="rpm-devel-4.14.3-37.2">rpm-devel-4.14.3-37.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rpm-ndb-4.14.3-37.2">
      <FullProductName ProductID="rpm-ndb-4.14.3-37.2">rpm-ndb-4.14.3-37.2</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="rpm-ndb-32bit-4.14.3-37.2">
      <FullProductName ProductID="rpm-ndb-32bit-4.14.3-37.2">rpm-ndb-32bit-4.14.3-37.2</FullProductName>
    </Branch>
    <Relationship ProductReference="python2-rpm-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:python2-rpm-4.14.3-37.2">python2-rpm-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python3-rpm-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:python3-rpm-4.14.3-37.2">python3-rpm-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="rpm-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:rpm-4.14.3-37.2">rpm-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="rpm-32bit-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:rpm-32bit-4.14.3-37.2">rpm-32bit-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="rpm-build-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:rpm-build-4.14.3-37.2">rpm-build-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="rpm-devel-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:rpm-devel-4.14.3-37.2">rpm-devel-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="rpm-ndb-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:rpm-ndb-4.14.3-37.2">rpm-ndb-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="rpm-ndb-32bit-4.14.3-37.2" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:rpm-ndb-32bit-4.14.3-37.2">rpm-ndb-32bit-4.14.3-37.2 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
  </ProductTree>
  <vuln:Vulnerability xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in RPM's hdrblobInit() in lib/header.c. This flaw allows an attacker who can modify the rpmdb to cause an out-of-bounds read. The highest threat from this vulnerability is to system availability.</Note>
    </Notes>
    <CVE>CVE-2021-20266</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.3:python2-rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-32bit-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-build-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-devel-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-ndb-32bit-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-ndb-4.14.3-37.2</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>low</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSetV2>
        <BaseScoreV2>4</BaseScoreV2>
        <VectorV2>AV:N/AC:L/Au:S/C:N/I:N/A:P</VectorV2>
      </ScoreSetV2>
      <ScoreSetV3>
        <BaseScoreV3>3.1</BaseScoreV3>
        <VectorV3>CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L</VectorV3>
      </ScoreSetV3>
    </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/IQDL4MT3J7VM3IS3TI4EMLQJHDPTSZLZ/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-20266.html</URL>
        <Description>CVE-2021-20266</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1183632</URL>
        <Description>SUSE Bug 1183632</Description>
      </Reference>
    </References>
  </vuln:Vulnerability>
  <vuln:Vulnerability xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in RPM's signature check functionality when reading a package file. This flaw allows an attacker who can convince a victim to install a seemingly verifiable package, whose signature header was modified, to cause RPM database corruption and execute code. The highest threat from this vulnerability is to data integrity, confidentiality, and system availability.</Note>
    </Notes>
    <CVE>CVE-2021-20271</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.3:python2-rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-32bit-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-build-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-devel-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-ndb-32bit-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-ndb-4.14.3-37.2</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>low</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSetV2>
        <BaseScoreV2>5.1</BaseScoreV2>
        <VectorV2>AV:N/AC:H/Au:N/C:P/I:P/A:P</VectorV2>
      </ScoreSetV2>
      <ScoreSetV3>
        <BaseScoreV3>3.3</BaseScoreV3>
        <VectorV3>CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:L</VectorV3>
      </ScoreSetV3>
    </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/IQDL4MT3J7VM3IS3TI4EMLQJHDPTSZLZ/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-20271.html</URL>
        <Description>CVE-2021-20271</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1183545</URL>
        <Description>SUSE Bug 1183545</Description>
      </Reference>
    </References>
  </vuln:Vulnerability>
  <vuln:Vulnerability xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in the RPM package in the read functionality. This flaw allows an attacker who can convince a victim to install a seemingly verifiable package or compromise an RPM repository, to cause RPM database corruption. The highest threat from this vulnerability is to data integrity. This flaw affects RPM versions before 4.17.0-alpha.</Note>
    </Notes>
    <CVE>CVE-2021-3421</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 15.3:python2-rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:python3-rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-32bit-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-build-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-devel-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-ndb-32bit-4.14.3-37.2</ProductID>
        <ProductID>openSUSE Leap 15.3:rpm-ndb-4.14.3-37.2</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSetV2>
        <BaseScoreV2>4.3</BaseScoreV2>
        <VectorV2>AV:N/AC:M/Au:N/C:N/I:P/A:N</VectorV2>
      </ScoreSetV2>
      <ScoreSetV3>
        <BaseScoreV3>5.3</BaseScoreV3>
        <VectorV3>CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N</VectorV3>
      </ScoreSetV3>
    </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/IQDL4MT3J7VM3IS3TI4EMLQJHDPTSZLZ/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-3421.html</URL>
        <Description>CVE-2021-3421</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1183543</URL>
        <Description>SUSE Bug 1183543</Description>
      </Reference>
    </References>
  </vuln:Vulnerability>
</cvrfdoc>
