# CVE-2025-40777: A possible assertion failure when 'stale-answer-client-timeout' is set to '0'

- Severity: High 7.5 (CVSS:3.1, scored by isc) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Published: 2025-07-16T17:38:06.370Z
- Modified: 2026-06-17T09:22:07.353Z
- Weaknesses: CWE-617
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: isc

## Description

If a `named` caching resolver is configured with `serve-stale-enable` `yes`, and with `stale-answer-client-timeout` set to `0` (the only allowable value other than `disabled`), and if the resolver, in the process of resolving a query, encounters a CNAME chain involving a specific combination of cached or authoritative records, the daemon will abort with an assertion failure.
This issue affects BIND 9 versions 9.20.0 through 9.20.10, 9.21.0 through 9.21.9, and 9.20.9-S1 through 9.20.10-S1.

(As written by CVE List.)

## Affected

- ISC BIND 9: from 9.20.0 up to 9.20.10; from 9.21.0 up to 9.21.9; from 9.20.9-S1 up to 9.20.10-S1 (not affected: from 9.18.0 up to 9.18.37; from 9.18.11-S1 up to 9.18.37-S1)

## References

- <https://kb.isc.org/docs/cve-2025-40777> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2025/07/16/6>

## Sources

- CVE List: [CVE-2025-40777](https://www.cve.org/CVERecord?id=CVE-2025-40777), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2025-40777](https://nvd.nist.gov/vuln/detail/CVE-2025-40777), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-40777 · Whole record: https://cve.day/CVE-2025-40777.json · Rebuilt by cve.day 2026-11-25T22:59:01.365Z
