CVE-2021-25216A second vulnerability in BIND's GSSAPI security policy negotiation can be targeted by a…
In BIND 9.5.0 -> 9.11.29, 9.12.0 -> 9.16.13, and versions BIND 9.11.3-S1 -> 9.11.29-S1 and 9.16.8-S1 -> 9.16.13-S1 of BIND Supported Preview Edition, as well as release versions 9.17.0 -> 9.17.1 of the BIND 9.17 development branch, BIND servers are vulnerable if they are running an affected version and are configured to use GSS-TSIG features. In a configuration which uses BIND's default settings the vulnerable code path is not exposed, but a server can be rendered vulnerable by explicitly setting values for the tkey-gssapi-keytab or tkey-gssapi-credential configuration options. Although the default configuration is not vulnerable, GSS-TSIG is frequently used in networks where BIND is integrated with Samba, as well as in mixed-server environments that combine BIND servers with Active Directory domain controllers. For servers that meet these conditions, the ISC SPNEGO implementation is vulnerable to various attacks, depending on the CPU architecture for which BIND was built: For named binaries compiled for 64-bit platforms, this flaw can be used to trigger a buffer over-read, leading to a server crash. For named binaries compiled for 32-bit platforms, this flaw can be used to trigger a server crash due to a buffer overflow and possibly also to achieve remote code execution. We have determined that standard SPNEGO implementations are available in the MIT and Heimdal Kerberos libraries, which support a broad range of operating systems, rendering the ISC implementation unnecessary and obsolete. Therefore, to reduce the attack surface for BIND users, we will be removing the ISC SPNEGO implementation in the April releases of BIND 9.11 and 9.16 (it had already been dropped from BIND 9.17). We would not normally remove something from a stable ESV (Extended Support Version) of BIND, but since system libraries can replace the ISC SPNEGO implementation, we have made an exception in this case for reasons of stability and security.
What to do
Likely to be exploited: EPSS gives a 83% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, 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 20.04 | bind9 | Fixed | 1:9.16.1-0ubuntu2.8 | UBUNTU-CVE-2021-25216 |
| Ubuntu 18.04 | bind9 | Fixed | 1:9.11.3+dfsg-1ubuntu1.15 | UBUNTU-CVE-2021-25216 |
| Ubuntu 16.04 | bind9 | Fixed | 1:9.10.3.dfsg.P4-8ubuntu1.19 | UBUNTU-CVE-2021-25216 |
| Ubuntu 14.04 | bind9 | Fix pending | 1:9.9.5.dfsg-3ubuntu0.19+esm13 (Ubuntu Pro) | UBUNTU-CVE-2021-25216 |
| Debian 14 | bind9 | Fixed | 1:9.16.15-1 | DEBIAN-CVE-2021-25216 |
| Debian 13 | bind9 | Fixed | 1:9.16.15-1 | DEBIAN-CVE-2021-25216 |
| Debian 12 | bind9 | Fixed | 1:9.16.15-1 | DEBIAN-CVE-2021-25216 |
| 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 | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-chroot | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-export-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-export-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-libs-lite | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-license | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-pkcs11 | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-pkcs11-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-pkcs11-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-pkcs11-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-sdb | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-sdb-chroot | Not affected | ||
| Red Hat Enterprise Linux 8 | bind-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-bind | Not affected | ||
| Red Hat Enterprise Linux 7 | bind | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-chroot | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-export-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-export-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-libs-lite | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-license | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11 | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-pkcs11-utils | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-sdb | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-sdb-chroot | Not affected | ||
| Red Hat Enterprise Linux 7 | bind-utils | Not affected | ||
| Red Hat Enterprise Linux 6 | bind | Not affected | ||
| Red Hat Enterprise Linux 6 | bind-chroot | Not affected | ||
| Red Hat Enterprise Linux 6 | bind-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | bind-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | bind-sdb | Not affected | ||
| Red Hat Enterprise Linux 6 | bind-utils | Not affected | ||
| Red Hat Enterprise Linux 5 | bind | Not affected | ||
| Red Hat Enterprise Linux 5 | bind97 | Not affected | ||
| Alpine Linux 3.24 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.23 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.22 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.21 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.20 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.19 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.18 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.17 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.16 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.15 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.14 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.13 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.12 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.11 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
| Alpine Linux 3.10 | bind | Fixed | 9.16.15-r0 | ALPINE-CVE-2021-25216 |
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.5 though 9.11 9.5.0 through versions before 9.11.31, Open Source Branches 9.12 though 9.16 9.12.0 through versions before 9.16.14, Supported Preview Branch 9.11-S 9.11.3-S1 through versions before 9.11.31-S1, Supported Preview Branch 9.16-S 9.16.8-S1 through versions before 9.16.14-S1, Development Branch 9.17 9.17.0 through versions before 9.17.2
Solution: Upgrade to the patched release most closely related to your current version of BIND: BIND 9.11.31 BIND 9.16.15 BIND 9.17.12 BIND Supported Preview Edition is a special feature preview branch of BIND provided to eligible ISC support customers. BIND 9.11.31-S1 BIND 9.16.15-S1
Workaround: This vulnerability only affects servers configured to use GSS-TSIG, most often to sign dynamic updates. If another mechanism can be used to authenticate updates, the vulnerability can be avoided by choosing not to enable the use of GSS-TSIG features. Prior to the April 2021 BIND releases, on some platforms it was possible to build a working BIND installation that was not vulnerable to CVE-2021-25216 by providing the --disable-isc-spnego command-line argument when running the ./configure script in the top level of the BIND source directory, before compiling and linking named. After the April 2021 BIND releases, all supported branches have removed isc-spnego support. This corrects CVE-2021-25216, but requires that the system have other libraries and header files to support GSS-TSIG functionality, unless such functionality is completely disabled at build time by providing the…
Vendor advisories:
- https://www.debian.org/security/2021/dsa-4909 (vendor-advisory)
References
- https://kb.isc.org/v1/docs/cve-2021-25215
- http://www.openwall.com/lists/oss-security/2021/04/29/1
- http://www.openwall.com/lists/oss-security/2021/04/29/2
- http://www.openwall.com/lists/oss-security/2021/04/29/3
- http://www.openwall.com/lists/oss-security/2021/04/29/4
- https://www.debian.org/security/2021/dsa-4909
- https://lists.debian.org/debian-lts-announce/2021/05/msg00001.html
- https://security.netapp.com/advisory/ntap-20210521-0006/
- https://www.zerodayinitiative.com/advisories/ZDI-21-657/
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
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.