summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhishek Bachiphale <Abhishek.Bachiphale@windriver.com>2026-05-18 22:43:35 +0530
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-05-20 21:18:31 -0700
commitb4c48536242d9aa7d1eaf968152fc83edea41923 (patch)
tree5d8f1b511c2c2cd6c3b447cbd303241913baef0e
parent21c3d7eb6f94f967b5e02fc61cc027d3893764a0 (diff)
downloadmeta-openembedded-b4c48536242d9aa7d1eaf968152fc83edea41923.tar.gz
dnsmasq: fix CVE-2026-4893
An information disclosure vulnerability in dnsmasq allows remote attackers to bypass source checks via a crafted DNS packet with RFC 7871 client subnet information. Reference: [ https://nvd.nist.gov/vuln/detail/CVE-2026-4893 ] Signed-off-by: Abhishek Bachiphale <Abhishek.Bachiphale@windriver.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb1
-rw-r--r--meta-networking/recipes-support/dnsmasq/files/CVE-2026-4893.patch34
2 files changed, 35 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 cf900328ed..4ae650f7e7 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.92.bb
@@ -19,6 +19,7 @@ SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getV
19 file://CVE-2026-4890.patch \ 19 file://CVE-2026-4890.patch \
20 file://CVE-2026-4891.patch \ 20 file://CVE-2026-4891.patch \
21 file://CVE-2026-4892.patch \ 21 file://CVE-2026-4892.patch \
22 file://CVE-2026-4893.patch \
22" 23"
23SRC_URI[sha256sum] = "fd908e79ff37f73234afcb6d3363f78353e768703d92abd8e3220ade6819b1e1" 24SRC_URI[sha256sum] = "fd908e79ff37f73234afcb6d3363f78353e768703d92abd8e3220ade6819b1e1"
24 25
diff --git a/meta-networking/recipes-support/dnsmasq/files/CVE-2026-4893.patch b/meta-networking/recipes-support/dnsmasq/files/CVE-2026-4893.patch
new file mode 100644
index 0000000000..af7e4119e1
--- /dev/null
+++ b/meta-networking/recipes-support/dnsmasq/files/CVE-2026-4893.patch
@@ -0,0 +1,34 @@
1commit 434d68f2eb1a58744470698483a3ae09b5a9a870
2Author: Simon Kelley <simon@thekelleys.org.uk>
3Date: Wed Mar 25 23:22:37 2026 +0000
4
5Fix broken client subnet validation. CVE-2026-4893
6
7Bug report from Royce M <royce@xchglabs.com>
8
9Location: forward.c:713, edns0.c:421
10
11With --add-subnet enabled, process_reply() passes the OPT record
12length (~23 bytes) instead of the packet length to check_source().
13All internal bounds checks fail, and the function always returns 1.
14ECS source validation per RFC 7871 Section 9.2 is completely bypassed.
15
16CVE: CVE-2026-4893
17
18Upstream-Status: Backport [ https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=e3a26d092e47bf1d18aeadb758e4ca35c83b5f2d ]
19
20Signed-off-by: Abhishek Bachiphale <Abhishek.Bachiphale@windriver.com>
21
22diff --git a/src/forward.c b/src/forward.c
23index e2f64c0..208480d 100644
24--- a/src/forward.c
25+++ b/src/forward.c
26@@ -724,7 +724,7 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server
27 /* Get extended RCODE. */
28 rcode |= sizep[2] << 4;
29
30- if (option_bool(OPT_CLIENT_SUBNET) && !check_source(header, plen, pheader, query_source))
31+ if (option_bool(OPT_CLIENT_SUBNET) && !check_source(header, n, pheader, query_source))
32 {
33 my_syslog(LOG_WARNING, _("discarding DNS reply: subnet option mismatch"));
34 return 0;