CVE-2023-6516
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedTo keep its cache database efficient, `named` running as a recursive resolver occasionally attempts to clean up the database. It uses several methods, including some that are asynchronous: a small chunk of memory pointing to the cache element that can be cleaned up is first allocated and then queued for later processing. It was discovered that if the resolver is continuously processing query patterns triggering this type of cache-database maintenance, `named` may not be able to handle the cleanup events in a timely manner. This in turn enables the list of queued cleanup events to grow infinitely large over time, allowing the configured `max-cache-size` limit to be significantly exceeded. This issue affects BIND 9 versions 9.16.0 through 9.16.45 and 9.16.8-S1 through 9.16.45-S1.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn BIND 9 recursive resolvers, cache cleanup operations allocate small memory chunks pointing to cache elements and queue them for asynchronous processing. Under continuous query patterns triggering cleanup, the resolver cannot process cleanup events fast enough, causing the queue to grow unbounded and exceed the configured max-cache-size limit, leading to memory exhaustion and potential denial of service.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 9.16.0, <= 9.16.45= 9.16.8= 9.16.11= 9.16.12= 9.16.13= 9.16.14= 9.16.21= 9.16.32= 9.16.36= 9.16.43= 9.16.45all versionsCVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed BIND versionRun `named -v` or `named -V` to retrieve the BIND version. Compare the version number to the affected range: 9.16.0 through 9.16.45 inclusive.Affected if The installed version is 9.16.0 through 9.16.45, or matches any of the specific affected versions listed (9.16.8, 9.16.11, 9.16.12, 9.16.13, 9.16.14, 9.16.21, 9.16.32, 9.16.36, 9.16.43, 9.16.45).
-
Check for symptom of memory growthMonitor the memory usage of the named process over time using tools such as `ps aux | grep named`, `top`, or by querying the BIND statistics channel. Look for continuously increasing RES memory consumption.Affected if The named process shows continuously increasing memory usage approaching or exceeding the configured max-cache-size limit under sustained query load.
You are affected if running BIND version 9.16.0 through 9.16.45 as a recursive resolver with cache enabled, and you observe memory growth beyond the configured max-cache-size limit under query load.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade BIND 9 to version 9.16.46, 9.16.45-S2, or later; alternatively, upgrade to the stable 9.18 branch or later which is not affected by this issue.
BIND 9.16.46 or later, or migrate to stable release BIND 9.18.x
- 1. Identify the current BIND version by running `named -v` or `bind -v`
- 2. If running BIND 9.16.0 through 9.16.45, plan an upgrade to version 9.16.46 or later
- 3. For production systems, test the upgrade in a staging environment first
- 4. Before upgrading, backup the current configuration: `cp -r /etc/bind /etc/bind.backup` (or your equivalent config path)
- 5. Stop the named service: `systemctl stop named` or `service named stop`
- 6. Install the updated BIND package via your package manager (e.g., `apt-get update && apt-get install bind9` or `yum update bind`)
- 7. Verify the new version is installed: `named -v`
- 8. Review and validate the configuration file syntax: `named-checkconf /etc/named.conf`
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-6516 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2023-6516 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data