summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support')
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb1
-rw-r--r--meta-networking/recipes-support/dnsmasq/files/CVE-2026-4891.patch40
2 files changed, 41 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb
index 59509ecba2..0de434036a 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb
@@ -15,6 +15,7 @@ SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getV
15 file://dnsmasq-resolvconf.service \ 15 file://dnsmasq-resolvconf.service \
16 file://dnsmasq-noresolvconf.service \ 16 file://dnsmasq-noresolvconf.service \
17 file://dnsmasq-resolved.conf \ 17 file://dnsmasq-resolved.conf \
18 file://CVE-2026-4891.patch \
18" 19"
19SRC_URI[sha256sum] = "fd908e79ff37f73234afcb6d3363f78353e768703d92abd8e3220ade6819b1e1" 20SRC_URI[sha256sum] = "fd908e79ff37f73234afcb6d3363f78353e768703d92abd8e3220ade6819b1e1"
20 21
diff --git a/meta-networking/recipes-support/dnsmasq/files/CVE-2026-4891.patch b/meta-networking/recipes-support/dnsmasq/files/CVE-2026-4891.patch
new file mode 100644
index 0000000000..e721f5ec0b
--- /dev/null
+++ b/meta-networking/recipes-support/dnsmasq/files/CVE-2026-4891.patch
@@ -0,0 +1,40 @@
1commit 2cacea42e4d45717bd0ce3ccfe8e78960245e5da
2Author: Simon Kelley <simon@thekelleys.org.uk>
3Date: Wed Mar 25 23:04:08 2026 +0000
4
5Verify rdlen field in RRSIG packets. CVE-2026-4891
6
7Bug report from Royce M <royce@xchglabs.com>
8
9This avoids crafted packets which give a value for rdlen _less_
10then the space taken up by the fixed data and the signer's name
11and engender a negative calculated length for the signature.
12
13CVE: CVE-2026-4891
14
15Upstream-Status: Backport [ https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=788b4e0f6c05217981b512bed4e5fea6f8855d01 ]
16
17Signed-off-by: Abhishek Bachiphale <Abhishek.Bachiphale@windriver.com>
18
19diff --git a/src/dnssec.c b/src/dnssec.c
20index 0860daa..4bb0495 100644
21--- a/src/dnssec.c
22+++ b/src/dnssec.c
23@@ -546,10 +546,14 @@ static int validate_rrset(time_t now, struct dns_header *header, size_t plen, in
24
25 *ttl_out = ttl;
26 }
27-
28+
29+ /* Don't trust rdlen not to be too small and give us a negative sig_len
30+ It has already been checked that it doesn't run us off the end
31+ of the packet. */
32+ if ((sig_len = rdlen - (p - psav)) <= 0)
33+ return STAT_BOGUS;
34+
35 sig = p;
36- sig_len = rdlen - (p - psav);
37-
38 nsigttl = htonl(orig_ttl);
39
40 hash->update(ctx, 18, psav);