CVEfocus › CVE database › CVE-2021-20266

CVE-2021-20266

EPSS 1.5% (higher than 75% of CVEs)Published 2021-04-30Updated 2024-08-03Assigner: redhat

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.

CWE-125

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

33Fixed
4Fix pending
17Will not fix
18Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04rpmNot affected
vulnerable_code_not_present
Ubuntu 22.04rpmNot affected
vulnerable_code_not_present
Ubuntu 20.04rpmFix pending4.14.2.1+dfsg1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-20266
Ubuntu 18.04rpmFix pending4.14.1+dfsg1-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-20266
Ubuntu 16.04rpmFix pending
Ubuntu 14.04rpmFix pending
Debian 14rpmFixed4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20266
Debian 13rpmFixed4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20266
Debian 12rpmFixed4.16.1.2+dfsg1-1DEBIAN-CVE-2021-20266
Red Hat Enterprise Linux 9python3-rpmNot affected
Red Hat Enterprise Linux 9rpmNot affected
Red Hat Enterprise Linux 9rpm-apidocsNot affected
Red Hat Enterprise Linux 9rpm-buildNot affected
Red Hat Enterprise Linux 9rpm-build-libsNot affected
Red Hat Enterprise Linux 9rpm-cronNot affected
Red Hat Enterprise Linux 9rpm-develNot affected
Red Hat Enterprise Linux 9rpm-libsNot affected
Red Hat Enterprise Linux 9rpm-plugin-auditNot affected
Red Hat Enterprise Linux 9rpm-plugin-fapolicydNot affected
Red Hat Enterprise Linux 9rpm-plugin-imaNot affected
Red Hat Enterprise Linux 9rpm-plugin-selinuxNot affected
Red Hat Enterprise Linux 9rpm-plugin-syslogNot affected
Red Hat Enterprise Linux 9rpm-plugin-systemd-inhibitNot affected
Red Hat Enterprise Linux 9rpm-signNot affected
Red Hat Enterprise Linux 9rpm-sign-libsNot affected
Red Hat Enterprise Linux 8python3-rpmFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpmFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-apidocsFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-buildFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-build-libsFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-cronFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-develFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-libsFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-plugin-fapolicydFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-plugin-imaFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-plugin-prioresetFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-plugin-selinuxFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-plugin-syslogFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-plugin-systemd-inhibitFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 8rpm-signFixed0:4.14.3-19.el8RHSA-2021:4489
Red Hat Enterprise Linux 7rpmWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-apidocsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-buildWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-build-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-cronWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-plugin-systemd-inhibitWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-pythonWill not fix
Out of support scope
Red Hat Enterprise Linux 7rpm-signWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpmWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-apidocsWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-buildWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-cronWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6rpm-pythonWill not fix
Out of support scope
AlmaLinux 8rpm-buildFixed4.14.3-19.el8ALSA-2021:4489
AlmaLinux 8rpm-plugin-fapolicydFixed4.14.3-19.el8ALSA-2021:4489
Rocky Linux 8rpmFixed0:4.14.3-19.el8RLSA-2021:4489
Alpine Linux 3.24rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.23rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.22rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.21rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.20rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.19rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.18rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.17rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.16rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.15rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.14rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266
Alpine Linux 3.13rpmFixed4.16.1.3-r0ALPINE-CVE-2021-20266

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.