webmin: patch CVE-2025-67738
PATCH 1/5 webmin: patch CVE-2025-67738
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-67738
Backport the patch referenced by the NVD advisory.
--- .../webmin/files/CVE-2025-67738.patch | 37 +++++++++++++++++++ .../recipes-webadmin/webmin/webmin_1.850.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-webserver/recipes-webadmin/webmin/files/CVE-2025-67738.patch
meta-webserver/recipes-webadmin/webmin/files/CVE-2025-67738.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 21d9cbdc2b719e9d1349f14e03b5a041b476cce5 Mon Sep 17 00:00:00 2001 +From: Jamie Cameron <[email protected]> +Date: Wed, 29 Oct 2025 22:02:29 -0700 +Subject: [PATCH] Fix quoting of args + +CVE: CVE-2025-67738 +Upstream-Status: Backport [https://github.com/webmin/webmin/commit/1a52bf4d72f9da6d79250c66e51f41c6f5b880ee] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + squid/cachemgr.cgi | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/squid/cachemgr.cgi b/squid/cachemgr.cgi +index b75f9427..41386d35 100755 +--- a/squid/cachemgr.cgi ++++ b/squid/cachemgr.cgi +@@ -12,6 +12,7 @@ my ($mgr) = glob($config{'cachemgr_path'}); + if (&has_command($mgr)) { + $| = 1; + my $temp; ++ my $args = join(" ", map { quotemeta($_) } @ARGV); + if ($ENV{'REQUEST_METHOD'} eq 'POST') { + # Deal with POST data + my $post; +@@ -21,10 +22,10 @@ if (&has_command($mgr)) { + &open_tempfile($fh, ">$temp", 0, 1); + &print_tempfile($fh, $post); + &close_tempfile($fh); +- open(MGR, "$mgr ".join(" ", @ARGV)." <$temp |"); ++ open(MGR, "$mgr $args <$temp |"); + } + else { +- open(MGR, "$mgr ".join(" ", @ARGV)." |"); ++ open(MGR, "$mgr $args |"); + } + while(<MGR>) { + print;
meta-webserver/recipes-webadmin/webmin/webmin_1.850.bb +1 -0
@@ -24,6 +24,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://0001-Object-names-cannot-contact-special-characters.patch \ file://0001-Foreign-module-may-need-a-check.patch \ file://0001-Add-missing-permissions-check-when-saving-allowed-cr.patch \ + file://CVE-2025-67738.patch \ " SRC_URI[md5sum] = "cd6ee98f73f9418562197675b952d81b"
PATCH 2/5 quagga: patch CVE-2017-3224
Details: https://nvd.nist.gov/vuln/detail/CVE-2017-3224
Quagga is an abandoned project, but it is not without a successor. Frr (or Frrouting) is a fork of Quagga, and they have fixed this vulnerability. That patch from Frr was ported to Quagga.
The Frr patch mentions this CVE ID explicitly, and also Debian has identified it as the correct patch[1].
[1]: https://security-tracker.debian.org/tracker/CVE-2017-3224
--- .../quagga/files/CVE-2017-3224.patch | 90 +++++++++++++++++++ .../recipes-protocols/quagga/quagga.inc | 3 +- 2 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-protocols/quagga/files/CVE-2017-3224.patch
meta-networking/recipes-protocols/quagga/files/CVE-2017-3224.patch new file +90 -0
@@ -0,0 +1,90 @@ +From 5e54975af4c6429f5e7bf9a29ff8425e131e92ca Mon Sep 17 00:00:00 2001 +From: Chirag Shah <[email protected]> +Date: Fri, 25 Jan 2019 17:21:24 -0800 +Subject: [PATCH] ospfd: address CVE-2017-3224 + +Based on the vulnerability mentioned in 793496 an attacker can craft an +LSA with MaxSequence number wtih invalid links and not set age to MAX_AGE +so the lsa would not be flush from the database. + +To address the issue, check incoming LSA is MaxSeq but Age is not set +to MAX_AGE 3600, discard the LSA from processing it. +Based on RFC-2328 , When a LSA update sequence reaches MaxSequence +number, it should be prematurely aged out from the database with age set +to MAX_AGE (3600). + +Ticket:CM-18989 +Reviewed By: +Testing Done: + +Signed-off-by: Chirag Shah <[email protected]> + +CVE: CVE-2017-3224 +Upstream-Status: Inactive-Upstream [ported from frr, a fork: https://github.com/FRRouting/frr/commit/7791d3deab8f4bbee2ccdd98ea596617536bc681] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + ospfd/ospf_packet.c | 21 ++++++++++++++++----- + 1 file changed, 16 insertions(+), 5 deletions(-) + +diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c +index facba89..504df02 100644 +--- a/ospfd/ospf_packet.c ++++ b/ospfd/ospf_packet.c +@@ -1936,9 +1936,20 @@ ospf_ls_upd (struct ospf *ospf, struct ip *iph, struct ospf_header *ospfh, + if (current == NULL || + (ret = ospf_lsa_more_recent (current, lsa)) < 0) + { ++ /* CVE-2017-3224 */ ++ if (current && (lsa->data->ls_seqnum == ++ htonl(OSPF_MAX_SEQUENCE_NUMBER) ++ && !IS_LSA_MAXAGE(lsa))) { ++ zlog_debug( ++ "Link State Update[%s]: has Max Seq but not MaxAge. Dropping it", ++ dump_lsa_key(lsa)); ++ ++ DISCARD_LSA(lsa, 4); ++ continue; ++ } + /* Actual flooding procedure. */ + if (ospf_flood (oi->ospf, nbr, current, lsa) < 0) /* Trap NSSA later. */ +- DISCARD_LSA (lsa, 4); ++ DISCARD_LSA (lsa, 5); + continue; + } + +@@ -1987,7 +1998,7 @@ ospf_ls_upd (struct ospf *ospf, struct ip *iph, struct ospf_header *ospfh, + if (NBR_IS_DR (nbr)) + listnode_add (oi->ls_ack, ospf_lsa_lock (lsa)); + +- DISCARD_LSA (lsa, 5); ++ DISCARD_LSA (lsa, 6); + } + else + /* Acknowledge the receipt of the LSA by sending a +@@ -1995,7 +2006,7 @@ ospf_ls_upd (struct ospf *ospf, struct ip *iph, struct ospf_header *ospfh, + interface. */ + { + ospf_ls_ack_send (nbr, lsa); +- DISCARD_LSA (lsa, 6); ++ DISCARD_LSA (lsa, 7); + } + } + +@@ -2011,7 +2022,7 @@ ospf_ls_upd (struct ospf *ospf, struct ip *iph, struct ospf_header *ospfh, + if (IS_LSA_MAXAGE (current) && + current->data->ls_seqnum == htonl (OSPF_MAX_SEQUENCE_NUMBER)) + { +- DISCARD_LSA (lsa, 7); ++ DISCARD_LSA (lsa, 8); + } + /* Otherwise, as long as the database copy has not been sent in a + Link State Update within the last MinLSArrival seconds, send the +@@ -2031,7 +2042,7 @@ ospf_ls_upd (struct ospf *ospf, struct ip *iph, struct ospf_header *ospfh, + msec2tv (ospf->min_ls_arrival)) >= 0) + /* Trap NSSA type later.*/ + ospf_ls_upd_send_lsa (nbr, current, OSPF_SEND_PACKET_DIRECT); +- DISCARD_LSA (lsa, 8); ++ DISCARD_LSA (lsa, 9); + } + } + }
meta-networking/recipes-protocols/quagga/quagga.inc +2 -1
@@ -34,7 +34,8 @@ SRC_URI = "https://github.com/Quagga/quagga/releases/download/quagga-${PV}/quagg file://ripd.service \ file://ripngd.service \ file://zebra.service \ - " + file://CVE-2017-3224.patch \ + " PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap"
PATCH 3/5 quagga: ignore CVE-2021-44038
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2021-44038
The main point of the vulnerability is that the application comes with its own systemd unit files, which execute chmod and chown commands upon start on some files. So when the services are restarted (e.g. after an update), these unit files can be tricked to change the permissions on a malicious file.
However OE does not use these unit files - the recipe comes with its own custom unit files, and chown/chmod isn't used at all.
Due to this, ignore this vulnerability.
--- meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb | 1 + 1 file changed, 1 insertion(+)
meta-networking/recipes-protocols/quagga/quagga_1.2.4.bb +1 -0
@@ -5,4 +5,5 @@ SRC_URI[sha256sum] = "e364c082c3309910e1eb7b068bf39ee298e2f2f3f31a6431a5c115193b CVE_CHECK_IGNORE += "\ CVE-2016-4049 \ + CVE-2021-44038 \ "
PATCH 4/5 ndpi: ignore CVE-2025-25066
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2025-25066
The vulnerable code was introduced in v4.12[1], and is not present in the recipe version. Due to this, ignore the CVE.
[1]: https://github.com/ntop/nDPI/commit/b9348e9d6e0e754c4b17661c643ca258f1540ca1
--- meta-networking/recipes-support/ntopng/ndpi_4.2.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-networking/recipes-support/ntopng/ndpi_4.2.bb +3 -0
@@ -26,3 +26,6 @@ do_configure:prepend() { EXTRA_OEMAKE = " \ libdir=${libdir} \ " + +# vulnerability was introduced in v4.12 +CVE_CHECK_IGNORE = "CVE-2025-25066"
PATCH 5/5 python3-werkzeug: ignore CVE-2026-27199
In reply to Gyorgy SarvariDetails: https://nvd.nist.gov/vuln/detail/CVE-2026-27199
The vulnerability affects only the application on Windows operating system. Due to this, ignore this CVE.
--- meta-python/recipes-devtools/python/python3-werkzeug_2.1.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-werkzeug_2.1.2.bb +1 -1
@@ -45,4 +45,4 @@ RDEPENDS:${PN} += " \ " # Windows-only vulnerabilities -CVE_CHECK_IGNORE = "CVE-2024-49766 CVE-2025-66221 CVE-2026-21860" +CVE_CHECK_IGNORE = "CVE-2024-49766 CVE-2025-66221 CVE-2026-21860 CVE-2026-27199"