apply https://nlnetlabs.nl/downloads/unbound/patch_CVE-2024-1931.diff to
authorsthen <sthen@openbsd.org>
Mon, 11 Mar 2024 16:35:48 +0000 (16:35 +0000)
committersthen <sthen@openbsd.org>
Mon, 11 Mar 2024 16:35:48 +0000 (16:35 +0000)
unbound, fixing an indefinite loop that could be triggered by a client
against an unbound server where the (non-default) configuration "ede: yes"
is used.

https://nlnetlabs.nl/downloads/unbound/CVE-2024-1931.txt

ok florian@

usr.sbin/unbound/util/data/msgencode.c

index a170eb7..93423f9 100644 (file)
@@ -886,6 +886,9 @@ ede_trim_text(struct edns_option** list)
                                curr->opt_len = 2;
                                prev = curr;
                                curr = curr->next;
+                       } else {
+                               prev = curr;
+                               curr = curr->next;
                        }
                } else {
                        /* continue */