CVE-2026-5947 PUBLISHED

SIG(0) validation during query flood may lead to undefined behavior

Assigner: isc
Reserved: 09.04.2026 Published: 20.05.2026 Updated: 20.05.2026

Undefined behavior may result due to a race condition leading to a use-after-free violation. If BIND receives an incoming DNS message signed with SIG(0), it begins work to validate that signature. If, during that validation, the "recursive-clients" limit is reached (as would occur during a query flood), and that same DNS message is discarded per the limit, there is a brief window of time while the SIG(0) validation may attempt to read the now-discarded DNS message. 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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 7.5

Product Status

Vendor ISC
Product BIND 9
Versions Default: unaffected
  • affected from 9.20.0 to 9.20.22 (incl.)
  • affected from 9.21.0 to 9.21.21 (incl.)
  • affected from 9.20.9-S1 to 9.20.22-S1 (incl.)
  • unaffected from 9.18.28 to 9.18.49 (incl.)
  • unaffected from 9.18.28-S1 to 9.18.49-S1 (incl.)

Exploits

We are not aware of any active exploits.

Workarounds

No workarounds known.

Solutions

Upgrade to the patched release most closely related to your current version of BIND 9: 9.20.23, 9.21.22, or 9.20.23-S1.

Credits

  • ISC would like to thank Naoki Wakamatsu for bringing this vulnerability to our attention.

References

Problem Types

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') CWE
  • CWE-416 Use After Free CWE

Impacts

  • The use of memory after it is freed is undefined ("dangling pointer"). The BIND process may abort with a segmentation violation or similar error. If memory from the discarded message has not been reused or reclaimed, the validation might proceed normally. Any kind of code execution from such an improper data read is unlikely.