summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/dnsmasq/files
diff options
context:
space:
mode:
authorAbhishek Bachiphale <Abhishek.Bachiphale@windriver.com>2026-05-18 22:43:33 +0530
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-05-20 21:18:31 -0700
commita9de48a9fa55a254c0bf2eb528c81bd90e015c03 (patch)
treee3bd9988112d6e30b4a26088c57432acb64dad10 /meta-networking/recipes-support/dnsmasq/files
parent78162615f538ddfde6886f1dc2a8c7d3d944c79e (diff)
downloadmeta-openembedded-a9de48a9fa55a254c0bf2eb528c81bd90e015c03.tar.gz
dnsmasq: fix CVE-2026-4891
A heap-based out-of-bounds read vulnerability in the DNSSEC validation of dnsmasq allows remote attackers to cause a denial of service via a crafted DNS packet. Reference: [ https://nvd.nist.gov/vuln/detail/CVE-2026-4891 ] Signed-off-by: Abhishek Bachiphale <Abhishek.Bachiphale@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-networking/recipes-support/dnsmasq/files')
-rw-r--r--meta-networking/recipes-support/dnsmasq/files/CVE-2026-4891.patch40
1 files changed, 40 insertions, 0 deletions
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);