CVE-2024-1931Denial of service when trimming EDE text on positive replies
NLnet Labs Unbound version 1.18.0 up to and including version 1.19.1 contain a vulnerability that can cause denial of service by a certain code path that can lead to an infinite loop. Unbound 1.18.0 introduced a feature that removes EDE records from responses with size higher than the client's advertised buffer size. Before removing all the EDE records however, it would try to see if trimming the extra text fields on those records would result in an acceptable size while still retaining the EDE codes. Due to an unchecked condition, the code that trims the text of the EDE records could loop indefinitely. This happens when Unbound would reply with attached EDE information on a positive reply and the client's buffer size is smaller than the needed space to include EDE records. The vulnerability can only be triggered when the 'ede: yes' option is used; non default configuration. From version 1.19.2 on, the code is fixed to avoid looping indefinitely.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | unbound | Fixed | 1.19.2-1ubuntu1 | UBUNTU-CVE-2024-1931 |
| Ubuntu 22.04 | unbound | Not affected vulnerable_code_not_present | ||
| Debian 14 | unbound | Fixed | 1.19.2-1 | DEBIAN-CVE-2024-1931 |
| Debian 13 | unbound | Fixed | 1.19.2-1 | DEBIAN-CVE-2024-1931 |
| Red Hat Enterprise Linux 9 | python3-unbound | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | unbound | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | unbound-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | unbound-dracut | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | unbound-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | python3-unbound | Not affected | ||
| Red Hat Enterprise Linux 8 | unbound | Not affected | ||
| Red Hat Enterprise Linux 8 | unbound-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | unbound-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | unbound | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | unbound-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | unbound-python | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
| Alpine Linux 3.23 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
| Alpine Linux 3.22 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
| Alpine Linux 3.21 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
| Alpine Linux 3.20 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
| Alpine Linux 3.19 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
| Alpine Linux 3.18 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
| Alpine Linux 3.17 | unbound | Fixed | 1.19.2-r0 | ALPINE-CVE-2024-1931 |
What the vendor says
As published in the CVE record by NLnet Labs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NLnet Labs Unbound: affected: 1.18.0 to before 1.19.2; fixed in
1.19.2
Solution: This issue is fixed in 1.19.2 and all later versions. For the vulnerable versions 1.18.0 up to and including 1.19.1, the option 'ede: no' (default configuration) is also a solution as it does not exercise the vulnerable code path.
Vendor advisories:
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2024-1931.txt (vendor-advisory)
References
- https://www.nlnetlabs.nl/downloads/unbound/CVE-2024-1931.txt
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4VCBRQ7KMSIGBQ6A4SBL5PF326DIJIIV/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B2JUIFPA7H75Q2W3VXW2TUNHK6NVGOX4/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBR4H7RCVMJ6H76S4LLRSY5EBFTYWGXK/
- https://lists.freebsd.org/archives/freebsd-security/2024-July/000283.html
- https://security.netapp.com/advisory/ntap-20240705-0006/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.