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

- Severity: High 7.5 (CVSS:3.1, scored by isc) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-02)
- Published: 2024-02-13T14:05:28.933Z
- Modified: 2026-06-17T06:50:54.017Z
- Weaknesses: CWE-770, CWE-789
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: isc

## Description

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.

(As written by CVE List.)

## Affected

- ISC BIND 9: from 9.16.0 up to 9.16.45; from 9.16.8-S1 up to 9.16.45-S1
- isc bind: from 9.16.0 up to 9.16.45; from 9.16.8-s1 up to 9.16.45-s1; 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
- netapp active_iq_unified_manager: no versions given

## References

- <https://kb.isc.org/docs/cve-2023-6516> (vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2024/02/13/1> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PNNHZSZPG2E7NBMBNYPGHCFI4V4XRWNQ/> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZDZFMEKQTZ4L7RY46FCENWFB5MDT263R/> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20240503-0008/> (third-party-advisory)

## Sources

- CVE List: [CVE-2023-6516](https://www.cve.org/CVERecord?id=CVE-2023-6516), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-6516](https://nvd.nist.gov/vuln/detail/CVE-2023-6516), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-6516 · Whole record: https://cve.day/CVE-2023-6516.json · Rebuilt by cve.day 2026-11-25T22:58:32.752Z
