CVE-2023-6516: Specific recursive query patterns may lead to an out-of-memory condition
Last updated 24 July 2024
Other sources
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.
— MITRE
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.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/bind9to a version that resolves this vulnerability.Fixed in 1:9.16.50-1~deb11u2Fixed in 1:9.16.50-1~deb11u3Fixed in 1:9.18.33-1~deb12u2Fixed in 1:9.20.8-6 - Upgrade
Upgrade
redhat/bindto a version that resolves this vulnerability.Fixed in 9.16.48 - Upgrade
Upgrade
ISC BIND 9 (named recursive resolver)to a version that resolves this vulnerability.Fixed in 9.16.48 - Upgrade
Upgrade
ISC BIND 9 (named recursive resolver)to a version that resolves this vulnerability.Fixed in 9.16.48-S1
Event History
Frequently Asked Questions
What is the severity of CVE-2023-6516?
CVE-2023-6516 has been classified as a moderate severity vulnerability.
What software is affected by CVE-2023-6516?
CVE-2023-6516 affects various versions of ISC BIND including versions from 9.16.0 up to 9.16.45.
How do I fix CVE-2023-6516?
To fix CVE-2023-6516, update ISC BIND to version 9.16.48 or later.
Can CVE-2023-6516 be exploited remotely?
Yes, CVE-2023-6516 can be exploited remotely under certain conditions.
Is there a workaround for CVE-2023-6516?
There are no known workarounds for CVE-2023-6516; updating the software is the recommended action.