CVE-2021-25219Lame cache can be abused to severely degrade resolver performance
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | bind9 | Fixed | 1:9.16.15-1ubuntu2 | UBUNTU-CVE-2021-25219 |
| Ubuntu 20.04 | bind9 | Fixed | 1:9.16.1-0ubuntu2.9 | UBUNTU-CVE-2021-25219 |
| Ubuntu 18.04 | bind9 | Fixed | 1:9.11.3+dfsg-1ubuntu1.16 | UBUNTU-CVE-2021-25219 |
| Ubuntu 16.04 | bind9 | Fix pending | 1:9.10.3.dfsg.P4-8ubuntu1.19+esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-25219 |
| Ubuntu 14.04 | bind9 | Fix pending | 1:9.9.5.dfsg-3ubuntu0.19+esm5 (Ubuntu Pro) | UBUNTU-CVE-2021-25219 |
| Debian 14 | bind9 | Fixed | 1:9.17.19-1 | DEBIAN-CVE-2021-25219 |
| Debian 13 | bind9 | Fixed | 1:9.17.19-1 | DEBIAN-CVE-2021-25219 |
| Debian 12 | bind9 | Fixed | 1:9.17.19-1 | DEBIAN-CVE-2021-25219 |
| Red Hat Enterprise Linux 9 | bind | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-chroot | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-dnssec-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-dnssec-utils | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-license | Not affected | ||
| Red Hat Enterprise Linux 9 | bind-utils | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-bind | Not affected | ||
| Red Hat Enterprise Linux 8 | bind | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-chroot | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-devel | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-export-devel | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-export-libs | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-libs | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-libs-lite | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-license | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-lite-devel | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-pkcs11 | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-pkcs11-devel | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-pkcs11-libs | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-pkcs11-utils | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-sdb | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-sdb-chroot | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | bind-utils | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 8 | python3-bind | Fixed | 32:9.11.36-3.el8 | RHSA-2022:2092 |
| Red Hat Enterprise Linux 7 | bind | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-chroot | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-export-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-export-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-libs-lite | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-license | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-lite-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11-utils | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-sdb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-sdb-chroot | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | bind-utils | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bind | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bind-chroot | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bind-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bind-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bind-sdb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | bind-utils | Will not fix Out of support scope | ||
| AlmaLinux 8 | bind | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-chroot | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-devel | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-export-devel | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-export-libs | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-libs | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-libs-lite | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-license | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-lite-devel | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-pkcs11 | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-pkcs11-devel | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-pkcs11-libs | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-pkcs11-utils | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-sdb | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-sdb-chroot | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | bind-utils | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| AlmaLinux 8 | python3-bind | Fixed | 32:9.11.36-3.el8 | ALSA-2022:2092 |
| Rocky Linux 8 | bind | Fixed | 2:9.11.36-3.el8 | RLSA-2022:2092 |
| Alpine Linux 3.24 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.23 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.22 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.21 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.20 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.19 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.18 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.17 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.16 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.15 | bind | Fixed | 9.16.22-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.14 | bind | Fixed | 9.16.25-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.13 | bind | Fixed | 9.16.25-r0 | ALPINE-CVE-2021-25219 |
| Alpine Linux 3.12 | bind | Fixed | 9.16.27-r0 | ALPINE-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.
- ISC BIND9: affected: Open Source Branches 9.3 through 9.11 9.3.0 through versions before 9.11.36, Open Source Branches 9.12 through 9.16 9.12.0 through versions before 9.16.22, Supported Preview Branches 9.9-S through 9.11-S 9.9.3-S1 through versions before 9.11.36-S1, Supported Preview Branch 9.16-S 9.16.8-S1 through versions before 9.16.22-S1, Development Branch 9.17 9.17.0 through versions before 9.17.19
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:
- https://www.debian.org/security/2021/dsa-4994 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202210-25 (vendor-advisory)
References
- https://kb.isc.org/v1/docs/cve-2021-25219
- https://www.debian.org/security/2021/dsa-4994
- https://lists.debian.org/debian-lts-announce/2021/11/msg00001.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YTKC4E3HUOLYN5IA4EBL4VAQSWG2ZVTX/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YGV7SA27CTYLGFJSPUM3V36ZWK7WWDI4/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EF4NAVRV4H3W4GA3LGGZYUKD3HSJBAVW/
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://security.netapp.com/advisory/ntap-20211118-0002/
- https://security.gentoo.org/glsa/202210-25
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.