Skip to content
Threat Feed
high advisory

ISC BIND Use-After-Free Vulnerability Due to Race Condition (CVE-2026-5947)

A race condition in ISC BIND can lead to a use-after-free vulnerability (CVE-2026-5947) when handling SIG(0) signed DNS messages, potentially leading to undefined behavior.

A use-after-free vulnerability, tracked as CVE-2026-5947, exists in ISC BIND. Specifically, when BIND receives an incoming DNS message signed with SIG(0), it validates that signature. If the number of “recursive-clients” reaches the configured limit during this validation process due to a query flood, the DNS message may be discarded. However, a small window of time exists where the SIG(0) validation process might still attempt to read the now-discarded DNS message, leading to a use-after-free condition and undefined behavior. This issue affects BIND 9 versions 9.20.0 through 9.20.22, 9.21.0 through 9.21.21, and 9.20.9-S1 through 9.20.22-S1. BIND 9 versions 9.18.28 through 9.18.49 and 9.18.28-S1 through 9.18.49-S1 are not affected.

Attack Chain

  1. An attacker sends a DNS query flood to a BIND server to exhaust the recursive-clients limit.
  2. Simultaneously, the attacker sends a crafted DNS message signed with SIG(0).
  3. The BIND server receives the crafted DNS message and begins SIG(0) signature validation.
  4. While the signature validation is in progress, the recursive-clients limit is reached due to the query flood.
  5. The BIND server discards the DNS message to enforce the recursive-clients limit.
  6. The SIG(0) validation routine attempts to read the discarded DNS message.
  7. A use-after-free vulnerability is triggered because the memory associated with the DNS message has been freed.
  8. This can lead to undefined behavior, potentially causing the BIND server to crash or, in more severe cases, allow for remote code execution.

Impact

Successful exploitation of CVE-2026-5947 can cause a denial-of-service (DoS) condition on the affected BIND server, disrupting DNS resolution services. In a worst-case scenario, it could lead to remote code execution, potentially allowing an attacker to gain control of the server. Given the critical role of DNS servers in network infrastructure, this vulnerability poses a significant risk. While no specific victim counts are available, the widespread use of BIND makes many organizations vulnerable.

Recommendation

  • Upgrade to a patched version of BIND 9 to address CVE-2026-5947. Versions 9.18.28 through 9.18.49 and 9.18.28-S1 through 9.18.49-S1 are not affected.
  • Monitor DNS server logs for errors related to SIG(0) validation, which may indicate exploitation attempts. Deploy the Sigma rule Detect SIG(0) validation failure to detect these events.
  • Rate limit incoming DNS queries to prevent query floods and reduce the likelihood of triggering the recursive-clients limit and the race condition.

Detection coverage 2

Detect SIG(0) validation failure

medium

Detects CVE-2026-5947 exploitation - Errors related to SIG(0) validation in DNS server logs.

sigma tactics: denial_of_service techniques: T1499.004 sources: dns_query, bind

Detect DNS Query Flood

low

Detects high volume of DNS queries from a single source, indicative of a query flood.

sigma tactics: denial_of_service techniques: T1499.004 sources: dns_query, bind

Detection queries are available on the platform. Get full rules →