diff options
| author | Hugo SIMELIERE (Schneider Electric) <hsimeliere.opensource@witekio.com> | 2026-05-20 14:29:07 +0200 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-05-21 09:56:20 +0530 |
| commit | 7dda8e9bd75855300f55faa2d803deebac226d43 (patch) | |
| tree | a7500f47bd0983b1012f192505e3a644a73fdfa4 | |
| parent | e614003e0af184d59b3eb85658149c8bef2ed50e (diff) | |
| download | meta-openembedded-7dda8e9bd75855300f55faa2d803deebac226d43.tar.gz | |
dnsmasq: Fix CVE-2026-4893
Pick patch from [1] dnsmasq 2.90 debian bookworm pacthes.
[1] https://sources.debian.org/src/dnsmasq/2.90-4~deb12u2/debian/patches/CVE-2026-4893.patch
Signed-off-by: Hugo SIMELIERE (Schneider Electric) <hsimeliere.opensource@witekio.com>
Reviewed-by: Bruno VERNAY <bruno.vernay@se.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
| -rw-r--r-- | meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb | 1 | ||||
| -rw-r--r-- | meta-networking/recipes-support/dnsmasq/files/CVE-2026-4893.patch | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb index 21411839c7..4e548f6e59 100644 --- a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb +++ b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb | |||
| @@ -18,6 +18,7 @@ SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getV | |||
| 18 | file://dnsmasq-resolved.conf \ | 18 | file://dnsmasq-resolved.conf \ |
| 19 | file://CVE-2026-4891.patch \ | 19 | file://CVE-2026-4891.patch \ |
| 20 | file://CVE-2026-4892.patch \ | 20 | file://CVE-2026-4892.patch \ |
| 21 | file://CVE-2026-4893.patch \ | ||
| 21 | " | 22 | " |
| 22 | SRC_URI[sha256sum] = "8f6666b542403b5ee7ccce66ea73a4a51cf19dd49392aaccd37231a2c51b303b" | 23 | SRC_URI[sha256sum] = "8f6666b542403b5ee7ccce66ea73a4a51cf19dd49392aaccd37231a2c51b303b" |
| 23 | 24 | ||
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..8aea321329 --- /dev/null +++ b/meta-networking/recipes-support/dnsmasq/files/CVE-2026-4893.patch | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | From 262aadd7a38947d2299234c8c9cf736ff6ad955d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Simon Kelley <simon@thekelleys.org.uk> | ||
| 3 | Date: Wed, 25 Mar 2026 23:22:37 +0000 | ||
| 4 | Subject: [PATCH] Fix broken client subnet validation. CVE-2026-4893 | ||
| 5 | |||
| 6 | Bug report from Royce M <royce@xchglabs.com> | ||
| 7 | |||
| 8 | Location: forward.c:713, edns0.c:421 | ||
| 9 | |||
| 10 | With --add-subnet enabled, process_reply() passes the OPT record | ||
| 11 | length (~23 bytes) instead of the packet length to check_source(). | ||
| 12 | All internal bounds checks fail, and the function always returns 1. | ||
| 13 | ECS source validation per RFC 7871 Section 9.2 is completely bypassed. | ||
| 14 | |||
| 15 | CVE: CVE-2026-4893 | ||
| 16 | Upstream-Status: Backport [https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=e3a26d092e47bf1d18aeadb758e4ca35c83b5f2d] | ||
| 17 | |||
| 18 | Signed-off-by: Hugo SIMELIERE (Schneider Electric) <hsimeliere.opensource@witekio.com> | ||
| 19 | --- | ||
| 20 | src/forward.c | 2 +- | ||
| 21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/src/forward.c b/src/forward.c | ||
| 24 | index 32f37e40..19ff4401 100644 | ||
| 25 | --- a/src/forward.c | ||
| 26 | +++ b/src/forward.c | ||
| 27 | @@ -710,7 +710,7 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server | ||
| 28 | /* Get extended RCODE. */ | ||
| 29 | rcode |= sizep[2] << 4; | ||
| 30 | |||
| 31 | - if (option_bool(OPT_CLIENT_SUBNET) && !check_source(header, plen, pheader, query_source)) | ||
| 32 | + if (option_bool(OPT_CLIENT_SUBNET) && !check_source(header, n, pheader, query_source)) | ||
| 33 | { | ||
| 34 | my_syslog(LOG_WARNING, _("discarding DNS reply: subnet option mismatch")); | ||
| 35 | return 0; | ||
| 36 | -- | ||
| 37 | 2.43.0 | ||
| 38 | |||
