CVEfocus › CVE database › CVE-2025-40776

CVE-2025-40776Birthday Attack against Resolvers supporting ECS

CVSS 8.6 HighEPSS 0.3% (higher than 17% of CVEs)Published 2025-07-16Updated 2025-07-22Assigner: isc

A `named` caching resolver that is configured to send ECS (EDNS Client Subnet) options may be vulnerable to a cache-poisoning attack. This issue affects BIND 9 versions 9.11.3-S1 through 9.16.50-S1, 9.18.11-S1 through 9.18.37-S1, and 9.20.9-S1 through 9.20.10-S1.

CWE-349

What to do

Fixed builds are available from Alpine: see the table below for the fixed version per release.

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

3Fixed
83Not 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.04bind9Not affected
vulnerable_code_not_present
Ubuntu 24.04isc-dhcpNot affected
vulnerable_code_not_present
Ubuntu 22.04bind9Not affected
vulnerable_code_not_present
Ubuntu 22.04bind9-libsNot affected
vulnerable_code_not_present
Ubuntu 22.04isc-dhcpNot affected
vulnerable_code_not_present
Red Hat Enterprise Linux 10bindNot affected
Red Hat Enterprise Linux 10bind-chrootNot affected
Red Hat Enterprise Linux 10bind-develNot affected
Red Hat Enterprise Linux 10bind-dnssec-utilsNot affected
Red Hat Enterprise Linux 10bind-docNot affected
Red Hat Enterprise Linux 10bind-libsNot affected
Red Hat Enterprise Linux 10bind-licenseNot affected
Red Hat Enterprise Linux 10bind-utilsNot affected
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 9bind9.18Not affected
Red Hat Enterprise Linux 9bind9.18-chrootNot affected
Red Hat Enterprise Linux 9bind9.18-develNot affected
Red Hat Enterprise Linux 9bind9.18-dnssec-utilsNot affected
Red Hat Enterprise Linux 9bind9.18-docNot affected
Red Hat Enterprise Linux 9bind9.18-libsNot affected
Red Hat Enterprise Linux 9bind9.18-utilsNot affected
Red Hat Enterprise Linux 9dhcpNot affected
Red Hat Enterprise Linux 9dhcp-clientNot affected
Red Hat Enterprise Linux 9dhcp-commonNot affected
Red Hat Enterprise Linux 9dhcp-relayNot affected
Red Hat Enterprise Linux 9dhcp-serverNot affected
Red Hat Enterprise Linux 9python3-bindNot affected
Red Hat Enterprise Linux 8bindNot affected
Red Hat Enterprise Linux 8bind-chrootNot affected
Red Hat Enterprise Linux 8bind-develNot affected
Red Hat Enterprise Linux 8bind-export-develNot affected
Red Hat Enterprise Linux 8bind-export-libsNot affected
Red Hat Enterprise Linux 8bind-libsNot affected
Red Hat Enterprise Linux 8bind-libs-liteNot affected
Red Hat Enterprise Linux 8bind-licenseNot affected
Red Hat Enterprise Linux 8bind-lite-develNot affected
Red Hat Enterprise Linux 8bind-pkcs11Not affected
Red Hat Enterprise Linux 8bind-pkcs11-develNot affected
Red Hat Enterprise Linux 8bind-pkcs11-libsNot affected
Red Hat Enterprise Linux 8bind-pkcs11-utilsNot affected
Red Hat Enterprise Linux 8bind-sdbNot affected
Red Hat Enterprise Linux 8bind-sdb-chrootNot affected
Red Hat Enterprise Linux 8bind-utilsNot affected
Red Hat Enterprise Linux 8bind9.16Not affected
Red Hat Enterprise Linux 8bind9.16-chrootNot affected
Red Hat Enterprise Linux 8bind9.16-develNot affected
Red Hat Enterprise Linux 8bind9.16-dnssec-utilsNot affected
Red Hat Enterprise Linux 8bind9.16-docNot affected
Red Hat Enterprise Linux 8bind9.16-libsNot affected
Red Hat Enterprise Linux 8bind9.16-licenseNot affected
Red Hat Enterprise Linux 8bind9.16-utilsNot affected
Red Hat Enterprise Linux 8python3-bindNot affected
Red Hat Enterprise Linux 8python3-bind9.16Not affected
Red Hat Enterprise Linux 7bindNot affected
Red Hat Enterprise Linux 7bind-chrootNot affected
Red Hat Enterprise Linux 7bind-develNot affected
Red Hat Enterprise Linux 7bind-export-develNot affected
Red Hat Enterprise Linux 7bind-export-libsNot affected
Red Hat Enterprise Linux 7bind-libsNot affected
Red Hat Enterprise Linux 7bind-libs-liteNot affected
Red Hat Enterprise Linux 7bind-licenseNot affected
Red Hat Enterprise Linux 7bind-lite-develNot affected
Red Hat Enterprise Linux 7bind-pkcs11Not affected
Red Hat Enterprise Linux 7bind-pkcs11-develNot affected
Red Hat Enterprise Linux 7bind-pkcs11-libsNot affected
Red Hat Enterprise Linux 7bind-pkcs11-utilsNot affected
Red Hat Enterprise Linux 7bind-sdbNot affected
Red Hat Enterprise Linux 7bind-sdb-chrootNot affected
Red Hat Enterprise Linux 7bind-utilsNot affected
Red Hat Enterprise Linux 6bindNot affected
Red Hat Enterprise Linux 6bind-chrootNot affected
Red Hat Enterprise Linux 6bind-develNot affected
Red Hat Enterprise Linux 6bind-libsNot affected
Red Hat Enterprise Linux 6bind-sdbNot affected
Red Hat Enterprise Linux 6bind-utilsNot affected
Alpine Linux 3.24bindFixed9.20.11-r0ALPINE-CVE-2025-40776
Alpine Linux 3.23bindFixed9.20.11-r0ALPINE-CVE-2025-40776
Alpine Linux 3.22bindFixed9.20.11-r0ALPINE-CVE-2025-40776

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 9: 9.18.38-S1 or 9.20.11-S1.

Workaround: Disable ECS in BIND by removing the `ecs-zones` option from `named.conf`.

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.