CVE-2021-25219

Lame cache can be abused to severely degrade resolver performance

5.3 medium EPSS 9.32%

Published 27 Oct 2021 Updated 16 Sep 2024 CNA: isc

Description

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.

Severity (CVSS)

5.3 medium CVSS 3.1 from isc (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 9.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.1% of all scored CVEs. Scores of 26 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
BIND9
affected Open Source Branches 9.3 through 9.11 9.3.0 through versions before 9.11.36
affected Open Source Branches 9.12 through 9.16 9.12.0 through versions before 9.16.22
affected Supported Preview Branches 9.9-S through 9.11-S 9.9.3-S1 through versions…
affected Supported Preview Branch 9.16-S 9.16.8-S1 through versions before 9.16.22-S1
affected Development Branch 9.17 9.17.0 through versions before 9.17.19

Is my server affected?

Find the installed version of bind9 and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i bind9
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-25219 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-25219

RHEL, Rocky, Alma, Fedora

rpm -q bind9
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-25219

Alpine

apk list --installed | grep -i bind9

With Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:

trivy rootfs --scanners vuln / | grep CVE-2021-25219
trivy image --scanners vuln IMAGE | grep CVE-2021-25219

Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.

References

Advisories

Other references

Source: the record CVE-2021-25219 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.