CVE-2023-2828
named's configured cache size limit can be significantly exceeded
Reported by isc · Published June 21, 2023
Every `named` instance configured to run as a recursive resolver maintains a cache database holding the responses to the queries it has recently sent to authoritative servers. The size limit for that cache database can be configured using the `max-cache-size` statement in the configuration file; it defaults to 90% of the total amount of memory available on the host. When the size of the cache reaches 7/8 of the configured limit, a cache-cleaning algorithm starts to remove expired and/or least-recently used RRsets from the cache, to keep memory use below the configured limit. It has been discovered that the effectiveness of the cache-cleaning algorithm used in `named` can be severely diminished by querying the resolver for specific RRsets in a certain order, effectively allowing the configured `max-cache-size` limit to be significantly exceeded. This issue affects BIND 9 versions 9.11.0 through 9.16.41, 9.18.0 through 9.18.15, 9.19.0 through 9.19.13, 9.11.3-S1 through 9.16.41-S1, and 9.18.11-S1 through 9.18.15-S1.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bind-pkcs11-devel | Amazon Linux | 32:9.16.42-1.amzn2023.0.1, 32:9.11.4-26.P2.amzn2.13.1 |
| bind-dnssec-doc | Amazon Linux | 32:9.16.42-1.amzn2023.0.1 |
| bind-chroot | Amazon Linux | 32:9.16.42-1.amzn2023.0.1, 32:9.11.4-26.P2.amzn2.13.1 |
| bind-dlz-mysql | Amazon Linux | 32:9.16.42-1.amzn2023.0.1 |
| bind-license | Amazon Linux | 32:9.16.42-1.amzn2023.0.1, 32:9.11.4-26.P2.amzn2.13.1 |
| bind-pkcs11-utils | Amazon Linux | 32:9.16.42-1.amzn2023.0.1, 32:9.11.4-26.P2.amzn2.13.1 |
| bind-sdb | Amazon Linux | 32:9.11.4-26.P2.amzn2.13.1 |
| bind-sdb-chroot | Amazon Linux | 32:9.11.4-26.P2.amzn2.13.1 |
| bind | Amazon Linux | 32:9.16.42-1.amzn2023.0.1, 32:9.11.4-26.P2.amzn2.13.1 |
| bind-utils | Amazon Linux | 32:9.16.42-1.amzn2023.0.1, 32:9.11.4-26.P2.amzn2.13.1 |
| bind-pkcs11 | Amazon Linux | 32:9.16.42-1.amzn2023.0.1, 32:9.11.4-26.P2.amzn2.13.1 |
| bind-export-devel | Amazon Linux | 32:9.11.4-26.P2.amzn2.13.1 |
14 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ISC | BIND 9 | 9.11.0, 9.18.0, 9.19.0 |
| amazon:2023 | bind-pkcs11-devel | 0 |
| amazon:2023 | bind-dnssec-doc | 0 |
| amazon:2 | bind-chroot | 0 |
| amazon:2023 | bind-dlz-mysql | 0 |
| amazon:2 | bind-license | 0 |
| ISC | BIND 9 | 9.18.11-S1, 9.18.0, 9.11.0 |
| amazon:2 | bind-pkcs11-devel | 0 |
| amazon:2023 | bind-pkcs11-utils | 0 |
| amazon:2 | bind-sdb | 0 |
| amazon:2 | bind-pkcs11-utils | 0 |
| amazon:2 | bind-sdb-chroot | 0 |
| amazon:2 | bind | 0 |
| amazon:2023 | bind-utils | 0 |
| amazon:2 | bind-pkcs11 | 0 |
| amazon:2 | bind-export-devel | 0 |
| amazon:2 | bind-utils | 0 |
| amazon:2023 | bind-dnssec-utils | 0 |
| amazon:2023 | bind-devel | 0 |
| amazon:2 | bind-libs | 0 |
…and 16 more
Timeline
- Jun 21, 2023 CVE Published
- Jun 22, 2023 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- Feb 13, 2025 CVE Updated
- Feb 18, 2026 Distribution Patch (16 in total, the first dated here)
- Feb 18, 2026 Security Advisory (18 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-2828
vulnetix vdb fixes CVE-2023-2828
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-2828/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- CVE-2023-2828 vendor-advisory