CVEfocus › CVE database › CVE-2021-25219

CVE-2021-25219Lame cache can be abused to severely degrade resolver performance

CVSS 5.3 MediumEPSS 11.2% (higher than 96% of CVEs)Published 2021-10-27Updated 2024-09-16Assigner: isc

In BIND 9.3.0 -> 9.11.35, 9.12.0 -> 9.16.21, and versions 9.9.3-S1 -> 9.11.35-S1 and 9.16.8-S1 -> 9.16.21-S1 of BIND Supported Preview Edition, as well as release versions 9.17.0 -> 9.17.18 of the BIND 9.17 development branch, exploitation of broken authoritative servers using a flaw in response processing can cause degradation in BIND resolver performance. The way the lame cache is currently designed makes it possible for its internal data structures to grow almost infinitely, which may cause significant delays in client query processing.

What to do

Likely to be exploited: EPSS gives a 11% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: 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

54Fixed
2Fix pending
22Will not fix
10Not 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 22.04bind9Fixed1:9.16.15-1ubuntu2UBUNTU-CVE-2021-25219
Ubuntu 20.04bind9Fixed1:9.16.1-0ubuntu2.9UBUNTU-CVE-2021-25219
Ubuntu 18.04bind9Fixed1:9.11.3+dfsg-1ubuntu1.16UBUNTU-CVE-2021-25219
Ubuntu 16.04bind9Fix pending1:9.10.3.dfsg.P4-8ubuntu1.19+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-25219
Ubuntu 14.04bind9Fix pending1:9.9.5.dfsg-3ubuntu0.19+esm5 (Ubuntu Pro)UBUNTU-CVE-2021-25219
Debian 14bind9Fixed1:9.17.19-1DEBIAN-CVE-2021-25219
Debian 13bind9Fixed1:9.17.19-1DEBIAN-CVE-2021-25219
Debian 12bind9Fixed1:9.17.19-1DEBIAN-CVE-2021-25219
Red Hat Enterprise Linux 9bindNot affected
Red Hat Enterprise Linux 9bind-chrootNot affected
Red Hat Enterprise Linux 9bind-develNot affected
Red Hat Enterprise Linux 9bind-dnssec-docNot affected
Red Hat Enterprise Linux 9bind-dnssec-utilsNot affected
Red Hat Enterprise Linux 9bind-docNot affected
Red Hat Enterprise Linux 9bind-libsNot affected
Red Hat Enterprise Linux 9bind-licenseNot affected
Red Hat Enterprise Linux 9bind-utilsNot affected
Red Hat Enterprise Linux 9python3-bindNot affected
Red Hat Enterprise Linux 8bindFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-chrootFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-develFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-export-develFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-export-libsFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-libsFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-libs-liteFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-licenseFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-lite-develFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-pkcs11Fixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-pkcs11-develFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-pkcs11-libsFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-pkcs11-utilsFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-sdbFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-sdb-chrootFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8bind-utilsFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 8python3-bindFixed32:9.11.36-3.el8RHSA-2022:2092
Red Hat Enterprise Linux 7bindWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-chrootWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-export-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-export-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-libs-liteWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-licenseWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-lite-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-pkcs11Will not fix
Out of support scope
Red Hat Enterprise Linux 7bind-pkcs11-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-pkcs11-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-pkcs11-utilsWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-sdbWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-sdb-chrootWill not fix
Out of support scope
Red Hat Enterprise Linux 7bind-utilsWill not fix
Out of support scope
Red Hat Enterprise Linux 6bindWill not fix
Out of support scope
Red Hat Enterprise Linux 6bind-chrootWill not fix
Out of support scope
Red Hat Enterprise Linux 6bind-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6bind-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6bind-sdbWill not fix
Out of support scope
Red Hat Enterprise Linux 6bind-utilsWill not fix
Out of support scope
AlmaLinux 8bindFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-chrootFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-develFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-export-develFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-export-libsFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-libsFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-libs-liteFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-licenseFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-lite-develFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-pkcs11Fixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-pkcs11-develFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-pkcs11-libsFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-pkcs11-utilsFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-sdbFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-sdb-chrootFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8bind-utilsFixed32:9.11.36-3.el8ALSA-2022:2092
AlmaLinux 8python3-bindFixed32:9.11.36-3.el8ALSA-2022:2092
Rocky Linux 8bindFixed2:9.11.36-3.el8RLSA-2022:2092
Alpine Linux 3.24bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.23bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.22bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.21bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.20bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.19bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.18bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.17bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.16bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.15bindFixed9.16.22-r0ALPINE-CVE-2021-25219
Alpine Linux 3.14bindFixed9.16.25-r0ALPINE-CVE-2021-25219
Alpine Linux 3.13bindFixed9.16.25-r0ALPINE-CVE-2021-25219
Alpine Linux 3.12bindFixed9.16.27-r0ALPINE-CVE-2021-25219

What the vendor says

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

Solution: Upgrade to the patched release most closely related to your current version of BIND: BIND 9.11.36, BIND 9.16.22, BIND 9.17.19, or for BIND Supported Preview Edition (a special feature preview branch of BIND provided to eligible ISC support customers): BIND 9.11.36-S1, BIND 9.16.22-S1.

Workaround: Setting "lame-ttl 0;" disables the lame cache and prevents the performance issue. Our research and testing indicate that in the current Internet there is almost no downside to disabling the lame cache.

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.