summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoumya Sambu <soumya.sambu@windriver.com>2024-03-21 12:07:15 +0000
committerArmin Kuster <akuster808@gmail.com>2024-03-25 07:11:05 -0400
commit8bb16533532b6abc2eded7d9961ab2a108fd7a5b (patch)
tree562e85f9e375d1faa0fd9376a50333f48f40e60b
parentbb16c640dd4604063a0c2aa6ee7cb4d9d5746e58 (diff)
downloadmeta-openembedded-8bb16533532b6abc2eded7d9961ab2a108fd7a5b.tar.gz
dnsmasq: Upgrade 2.87 -> 2.90
Fixes CVE-2023-50387 and CVE-2023-50868 Remove backported CVE patch. Remove patch for lua as hardcoding lua version was removed. Changelog: =========== https://thekelleys.org.uk/dnsmasq/CHANGELOG Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq.inc1
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq/lua.patch31
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq_2.87.bb7
-rw-r--r--meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb3
-rw-r--r--meta-networking/recipes-support/dnsmasq/files/CVE-2023-28450.patch48
5 files changed, 3 insertions, 87 deletions
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
index 9e0f529ec1..a8ff21a125 100644
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq.inc
@@ -14,7 +14,6 @@ SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getV
14 file://dnsmasq-resolvconf.service \ 14 file://dnsmasq-resolvconf.service \
15 file://dnsmasq-noresolvconf.service \ 15 file://dnsmasq-noresolvconf.service \
16 file://dnsmasq-resolved.conf \ 16 file://dnsmasq-resolved.conf \
17 file://CVE-2023-28450.patch \
18" 17"
19 18
20inherit pkgconfig update-rc.d systemd 19inherit pkgconfig update-rc.d systemd
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq/lua.patch b/meta-networking/recipes-support/dnsmasq/dnsmasq/lua.patch
deleted file mode 100644
index be2bb42fc2..0000000000
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq/lua.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From be1b3d2d0f1608cba5efee73d6aac5ad0709041b Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe_macdonald@mentor.com>
3Date: Tue, 9 Sep 2014 10:24:58 -0400
4Subject: [PATCH] Upstream-Status: Inappropriate [OE specific]
5
6Signed-off-by: Christopher Larson <chris_larson@mentor.com>
7Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
8
9---
10 Makefile | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/Makefile b/Makefile
14index 73ea23e..ed3eeb9 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -60,8 +60,8 @@ idn2_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LIBIDN2 $(PKG_CONFI
18 idn2_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LIBIDN2 $(PKG_CONFIG) --libs libidn2`
19 ct_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_CONNTRACK $(PKG_CONFIG) --cflags libnetfilter_conntrack`
20 ct_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_CONNTRACK $(PKG_CONFIG) --libs libnetfilter_conntrack`
21-lua_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LUASCRIPT $(PKG_CONFIG) --cflags lua5.2`
22-lua_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LUASCRIPT $(PKG_CONFIG) --libs lua5.2`
23+lua_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LUASCRIPT $(PKG_CONFIG) --cflags lua`
24+lua_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_LUASCRIPT $(PKG_CONFIG) --libs lua`
25 nettle_cflags = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC $(PKG_CONFIG) --cflags 'nettle hogweed' \
26 HAVE_CRYPTOHASH $(PKG_CONFIG) --cflags nettle \
27 HAVE_NETTLEHASH $(PKG_CONFIG) --cflags nettle`
28
29--
302.9.5
31
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.87.bb b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.87.bb
deleted file mode 100644
index 793b61d712..0000000000
--- a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.87.bb
+++ /dev/null
@@ -1,7 +0,0 @@
1require dnsmasq.inc
2
3SRC_URI[dnsmasq-2.87.sha256sum] = "ae39bffde9c37e4d64849b528afeb060be6bad6d1044a3bd94a49fce41357284"
4SRC_URI += "\
5 file://lua.patch \
6"
7
diff --git a/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb
new file mode 100644
index 0000000000..6e4c331102
--- /dev/null
+++ b/meta-networking/recipes-support/dnsmasq/dnsmasq_2.90.bb
@@ -0,0 +1,3 @@
1require dnsmasq.inc
2
3SRC_URI[dnsmasq-2.90.sha256sum] = "8f6666b542403b5ee7ccce66ea73a4a51cf19dd49392aaccd37231a2c51b303b"
diff --git a/meta-networking/recipes-support/dnsmasq/files/CVE-2023-28450.patch b/meta-networking/recipes-support/dnsmasq/files/CVE-2023-28450.patch
deleted file mode 100644
index 129c9043e8..0000000000
--- a/meta-networking/recipes-support/dnsmasq/files/CVE-2023-28450.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From eb92fb32b746f2104b0f370b5b295bb8dd4bd5e5 Mon Sep 17 00:00:00 2001
2From: Simon Kelley <simon@thekelleys.org.uk>
3Date: Tue, 7 Mar 2023 22:07:46 +0000
4Subject: [PATCH] Set the default maximum DNS UDP packet size to 1232.
5
6http://www.dnsflagday.net/2020/ refers.
7
8Thanks to Xiang Li for the prompt.
9
10CVE: CVE-2023-28450
11Upstream-Status: Backport [https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=eb92fb32b746f2104b0f370b5b295bb8dd4bd5e5]
12
13Signed-off-by: Peter Marko <peter.marko@siemens.com>
14---
15 man/dnsmasq.8 | 3 ++-
16 src/config.h | 2 +-
17 2 files changed, 3 insertions(+), 2 deletions(-)
18
19diff --git a/man/dnsmasq.8 b/man/dnsmasq.8
20index 41e2e04..5acb935 100644
21--- a/man/dnsmasq.8
22+++ b/man/dnsmasq.8
23@@ -183,7 +183,8 @@ to zero completely disables DNS function, leaving only DHCP and/or TFTP.
24 .TP
25 .B \-P, --edns-packet-max=<size>
26 Specify the largest EDNS.0 UDP packet which is supported by the DNS
27-forwarder. Defaults to 4096, which is the RFC5625-recommended size.
28+forwarder. Defaults to 1232, which is the recommended size following the
29+DNS flag day in 2020. Only increase if you know what you are doing.
30 .TP
31 .B \-Q, --query-port=<query_port>
32 Send outbound DNS queries from, and listen for their replies on, the
33diff --git a/src/config.h b/src/config.h
34index 1e7b30f..37b374e 100644
35--- a/src/config.h
36+++ b/src/config.h
37@@ -19,7 +19,7 @@
38 #define CHILD_LIFETIME 150 /* secs 'till terminated (RFC1035 suggests > 120s) */
39 #define TCP_MAX_QUERIES 100 /* Maximum number of queries per incoming TCP connection */
40 #define TCP_BACKLOG 32 /* kernel backlog limit for TCP connections */
41-#define EDNS_PKTSZ 4096 /* default max EDNS.0 UDP packet from RFC5625 */
42+#define EDNS_PKTSZ 1232 /* default max EDNS.0 UDP packet from from /dnsflagday.net/2020 */
43 #define SAFE_PKTSZ 1232 /* "go anywhere" UDP packet size, see https://dnsflagday.net/2020/ */
44 #define KEYBLOCK_LEN 40 /* choose to minimise fragmentation when storing DNSSEC keys */
45 #define DNSSEC_WORK 50 /* Max number of queries to validate one question */
46--
472.20.1
48