# CVE-2023-6516: Specific recursive query patterns may lead to an out-of-memory condition

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-02-13 · Modified: 2025-02-13
- Aliases: ALPINE-CVE-2023-6516, UBUNTU-CVE-2023-6516, DEBIAN-CVE-2023-6516, CGA-6667-p79c-ggw3, CGA-hcfg-mm9c-v6w6
- Record: https://cvemate.com/vulnerability/CVE-2023-6516 · JSON: https://cvemate.com/vulnerability/CVE-2023-6516/json

## Description

```text
To 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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.106%, percentile 66.921%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine bind (Alpine Linux): ≥ 9.16.0, \< 9.16.48-r0 \| ≥ 9.16.0, \< 9.18.24-r0
- chainguard bind (Chainguard): \< 9.18.24-r0
- wolfi bind (Wolfi): \< 9.18.24-r0
- debian bind9 (Debian): \< 1:9.17.19-1
- ubuntu bind9 (Ubuntu): \< 1:9.16.48-0ubuntu0.20.04.1
- isc bind: ≥ 9.16.0, ≤ 9.16.45 \| 9.16.8:s1 \| 9.16.11:s1 \| 9.16.12:s1 \| 9.16.13:s1 \| 9.16.14:s1 \| 9.16.21:s1 \| 9.16.32:s1 \| 9.16.36:s1 \| 9.16.43:s1 \| 9.16.45:s1
- isc bind 9: ≥ 9.16.0, ≤ 9.16.45 \| ≥ 9.16.8-S1, ≤ 9.16.45-S1
- netapp active\_iq\_unified\_manager: na

## References

- <https://kb.isc.org/docs/cve-2023-6516>
- <http://www.openwall.com/lists/oss-security/2024/02/13/1>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PNNHZSZPG2E7NBMBNYPGHCFI4V4XRWNQ/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZDZFMEKQTZ4L7RY46FCENWFB5MDT263R/>
- <https://security.netapp.com/advisory/ntap-20240503-0008/>
- <https://security.alpinelinux.org/vuln/CVE-2023-6516>
- <https://ubuntu.com/security/CVE-2023-6516>
- <https://ubuntu.com/security/notices/USN-6642-1>
- <https://www.cve.org/CVERecord?id=CVE-2023-6516>
- <https://security-tracker.debian.org/tracker/CVE-2023-6516>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-6516>

---

Data as of 2026-12-05T03:12:21.561Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
