CVE-2025-40778
Rocky Linux vulnerability analysis and mitigation

Overview

A high-severity vulnerability (CVE-2025-40778) was discovered in BIND 9 DNS resolvers that allows attackers to inject forged data into the cache. The vulnerability affects BIND 9 versions ranging from 9.11.0 through 9.21.12 and their corresponding Supported Preview Editions. Under certain circumstances, BIND is too lenient when accepting records from answers, enabling attackers to inject forged data into the cache during DNS queries (ISC Advisory, NVD).

Technical details

The vulnerability stems from a flaw in BIND 9's resolver logic where it fails to validate that answer-section RRsets match the question being resolved. The vulnerable logic allows additional A or CNAME records bundled in the answer section to be inserted into cache even if they relate to a different name. This breaks the assumption that off-path attackers must win a race on the exact tuple being asked and enables injection of arbitrary hostnames once a single subdomain query is spoofed. The vulnerability has been assigned a CVSS v3.1 score of 8.6 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N) (ISC Advisory, GitHub PoC).

Impact

The vulnerability enables attackers to redirect any domain reachable through the recursive resolver by injecting arbitrary A or CNAME records into cache. This can lead to credential theft, malware distribution, or man-in-the-middle attacks against downstream clients that trust the resolver. Because the attack is off-path and requires no authentication, widely deployed resolvers are at risk until patched (Help Net Security, GitHub PoC).

Mitigation and workarounds

The vulnerability has been patched in BIND 9 versions 9.18.41, 9.20.15, and 9.21.14, and corresponding Supported Preview Edition versions. Until upgrades are complete, organizations are advised to restrict recursion to trusted clients, enable DNSSEC validation, monitor cache activity for unexpected records, and reduce maximum caching time to 24 hours or less. No other workarounds are known to be effective (ISC Advisory, Help Net Security).

Community reactions

According to Censys research, approximately 5,912 vulnerable instances were identified globally. The German Federal Office for Information Security (BSI) has issued guidance for DNS server operators, emphasizing the importance of immediate patching and implementing additional security measures (Censys Advisory, Help Net Security).

Additional resources


SourceThis report was generated using AI

Related Rocky Linux vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13020HIGH8.8
  • NixOSNixOS
  • thunderbird
NoYesNov 11, 2025
CVE-2025-59088HIGH8.6
  • Rocky LinuxRocky Linux
  • idm:client::ipa-selinux
NoYesNov 12, 2025
CVE-2025-13019HIGH8.1
  • NixOSNixOS
  • rhel10::firefox-flatpak
NoYesNov 11, 2025
CVE-2025-13018HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesNov 11, 2025
CVE-2025-59089MEDIUM5.9
  • Rocky LinuxRocky Linux
  • idm:client::python3-jwcrypto
NoYesNov 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management