{
  "id": "CVE-2025-40777",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40777",
  "published_at": "2025-07-16T17:38:06.37Z",
  "title": "A possible assertion failure when 'stale-answer-client-timeout' is set to '0'",
  "vendor": "ISC",
  "product": "BIND 9",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.\nThis 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.",
  "cwe": "CWE-617",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "ISC",
        "product": "BIND 9",
        "ranges": [
          "\u003e= 9.20.0, \u003c= 9.20.10",
          "\u003e= 9.21.0, \u003c= 9.21.9",
          "\u003e= 9.20.9-S1, \u003c= 9.20.10-S1"
        ],
        "fixed_in": [
          "9.18.0",
          "9.18.11-S1"
        ]
      }
    ],
    "solutions": [
      "Upgrade to the patched release most closely related to your current version of BIND 9: 9.20.11, 9.21.10, or 9.20.11-S1."
    ],
    "upgrade": [
      "Upgrade BIND 9 to 9.18.0 or 9.18.11-S1 or later."
    ],
    "workarounds": [
      "Setting either of `stale-answer-client-timeout off;` or `stale-answer-enable no;` in the configuration file will prevent the assertion."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://kb.isc.org/docs/cve-2025-40777"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
