dovecot: upgrade 2.3.21 -> 2.3.21.1
PATCH 1/6 dovecot: upgrade 2.3.21 -> 2.3.21.1
From: Ankur Tyagi <[email protected]>
Release Notes:
- CVE-2024-23184: A large number of address headers in email resulted in excessive CPU usage.
- CVE-2024-23185: Abnormally large email headers are now truncated or discarded, with a limit of 10MB on a single header and 50MB for all the headers of all the parts of an email.
- oauth2: Dovecot would send client_id and client_secret as POST parameters to introspection server. These need to be optionally in Basic auth instead as required by OIDC specification.
- oauth2: JWT key type check was too strict.
- oauth2: JWT token audience was not validated against client_id as required by OIDC specification.
- oauth2: XOAUTH2 and OAUTHBEARER mechanisms were not giving out protocol specific error message on all errors. This broke OIDC discovery.
- oauth2: JWT aud validation was not performed if aud was missing from token, but was configured on Dovecot.
---
.../dovecot/{dovecot_2.3.21.bb => dovecot_2.3.21.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-support/dovecot/{dovecot_2.3.21.bb => dovecot_2.3.21.1.bb} (97%)meta-networking/recipes-support/dovecot/dovecot_2.3.21.1.bb renamed from meta-networking/recipes-support/dovecot/dovecot_2.3.21.bb +1 -1
@@ -13,7 +13,7 @@ SRC_URI = "http://dovecot.org/releases/2.3/dovecot-${PV}.tar.gz \ file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \ file://0001-auth-Fix-handling-passdbs-with-identical-driver-args.patch \ " -SRC_URI[sha256sum] = "05b11093a71c237c2ef309ad587510721cc93bbee6828251549fc1586c36502d" +SRC_URI[sha256sum] = "2d90a178c4297611088bf7daae5492a3bc3d5ab6328c3a032eb425d2c249097e" DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" CFLAGS += "-I${STAGING_INCDIR}/tirpc"
PATCH 2/6 libiec61850: patch CVE-2024-45969
From: Ankur Tyagi <[email protected]>
Details https://nvd.nist.gov/vuln/detail/CVE-2024-45969
--- .../libiec61850/files/CVE-2024-45969.patch | 32 +++++++++++++++++++ .../libiec61850/libiec61850_1.5.3.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta-networking/recipes-connectivity/libiec61850/files/CVE-2024-45969.patch
meta-networking/recipes-connectivity/libiec61850/files/CVE-2024-45969.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 9dfac54daace18d3d3b0ef09d8beecc562e29c1d Mon Sep 17 00:00:00 2001 +From: Michael Zillgith <[email protected]> +Date: Wed, 27 Mar 2024 12:26:58 +0000 +Subject: [PATCH] - ACSE: added check for minimum message size (LIB61850-438) + +CVE: CVE-2024-45969 +Upstream-Status: Backport [https://github.com/mz-automation/libiec61850/commit/7afa40390b26ad1f4cf93deaa0052fe7e357ef33] +(cherry picked from commit 7afa40390b26ad1f4cf93deaa0052fe7e357ef33) +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/mms/iso_acse/acse.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/src/mms/iso_acse/acse.c b/src/mms/iso_acse/acse.c +index f46b024d..40ecafe0 100644 +--- a/src/mms/iso_acse/acse.c ++++ b/src/mms/iso_acse/acse.c +@@ -420,6 +420,14 @@ AcseConnection_parseMessage(AcseConnection* self, ByteBuffer* message) + { + AcseIndication indication = ACSE_ERROR; + ++ if (message == NULL || message->size < 1) ++ { ++ if (DEBUG_ACSE) ++ printf("ACSE: invalid message - no payload\n"); ++ ++ return ACSE_ERROR; ++ } ++ + uint8_t* buffer = message->buffer; + + int messageSize = message->size;
meta-networking/recipes-connectivity/libiec61850/libiec61850_1.5.3.bb +1 -0
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/mz-automation/${BPN}.git;branch=v1.5;protocol=https file://CVE-2024-26529.patch \ file://CVE-2024-45970.patch \ file://CVE-2024-45971.patch \ + file://CVE-2024-45969.patch \ " S = "${WORKDIR}/git"
PATCH 3/6 libmemcached: ignore CVE-2023-27478
In reply to [email protected]From: Peter Marko <[email protected]>
Per [1] this is fixed by [2].
The commit message says that it is reverting feature added in:
$ git tag --no-contains d7a0084 | grep 1.0.18 1.0.18
This recipe is for the original memcached which is unmaintained now. Hence the ignore instead of upgrade.
[1] https://nvd.nist.gov/vuln/detail/CVE-2023-27478
[2] https://github.com/awesomized/libmemcached/commit/48dcc61a
--- .../recipes-support/libmemcached/libmemcached_1.0.18.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-support/libmemcached/libmemcached_1.0.18.bb +2 -0
@@ -8,3 +8,5 @@ SRC_URI += "\ " SRC_URI[md5sum] = "b3958716b4e53ddc5992e6c49d97e819" SRC_URI[sha256sum] = "e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82" + +CVE_STATUS[CVE-2023-27478] = "fixed-version: this problem was not yet introduced in 1.0.18"
PATCH 4/6 libcoap: ignore CVE-2025-50518
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-50518
The vulnerability is disputed by upstream, because the vulnerability requires a user error, incorrect library usage. See also an upstream discussion in a related (rejected) PR: https://github.com/obgm/libcoap/pull/1726
--- meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb +2 -0
@@ -62,3 +62,5 @@ PACKAGE_BEFORE_PN += "\ FILES:${PN}-bin = "${bindir}" FILES:${PN}-dev += "${datadir}/${BPN}/examples" + +CVE_STATUS[CVE-2025-50518] = "disputed: happens only when library is used incorrectly"
PATCH 5/6 libcoap: ignore CVE-2023-51847
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details https://nvd.nist.gov/vuln/detail/CVE-2023-51847
The vulnerability exists in coap_threadsafe.c but thread safe support was added in version v4.5.3 [1]
[1] https://github.com/obgm/libcoap/commit/c69c5d5af0a30859e90756f535e2ca21cdeda0b2
$ git tag --contains c69c5d5 v4.3.5 v4.3.5-rc1 v4.3.5-rc2 v4.3.5-rc3 v4.3.5a
--- meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb | 1 + 1 file changed, 1 insertion(+)
meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb +1 -0
@@ -64,3 +64,4 @@ FILES:${PN}-bin = "${bindir}" FILES:${PN}-dev += "${datadir}/${BPN}/examples" CVE_STATUS[CVE-2025-50518] = "disputed: happens only when library is used incorrectly" +CVE_STATUS[CVE-2023-51847] = "not-applicable-config: Doesn't apply to our configuration so we can safely ignore it."
PATCH 6/6 libcoap: patch CVE-2025-59391
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details https://nvd.nist.gov/vuln/detail/CVE-2025-59391
--- .../libcoap/libcoap/CVE-2025-59391.patch | 88 +++++++++++++++++++ .../recipes-devtools/libcoap/libcoap_4.3.4.bb | 1 + 2 files changed, 89 insertions(+) create mode 100644 meta-networking/recipes-devtools/libcoap/libcoap/CVE-2025-59391.patch
meta-networking/recipes-devtools/libcoap/libcoap/CVE-2025-59391.patch new file +88 -0
@@ -0,0 +1,88 @@ +From 947bead23940cacf081f93c3e29f540e3e867b7b Mon Sep 17 00:00:00 2001 +From: Jon Shallow <[email protected]> +Date: Thu, 4 Sep 2025 13:26:06 +0100 +Subject: [PATCH] OSCORE: Fix OSCORE configuration file parsing issue + +With a large boolean parameter value, (longer than "false"), memory +would be read past the "true" or "false" string boundaries in the ".rodata" +section when doing a memcmp(), potetially causing the application to crash +when calling coap_new_oscore_conf() with a specially crafted configuration +file. + +It also can provide a mechanism to determine the byte values following the +"true" or "false" string boundaries which could lead to accessing sensitive +information. The standard libcoap library does not have defined keys or +certificates. This can only be done by a specially crafted local application. + +Discovered by SecMate (https://secmate.dev). + +Now fixed. + +CVE: CVE-2025-59391 +Upstream-Status: Backport [https://github.com/obgm/libcoap/commit/da534de75edd1b3628a28908d30b0efbaa01be09] +(cherry picked from commit da534de75edd1b3628a28908d30b0efbaa01be09) +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/coap_oscore.c | 13 +++++++++---- + 1 file changed, 9 insertions(+), 4 deletions(-) + +diff --git a/src/coap_oscore.c b/src/coap_oscore.c +index 2d7dd6d0..723b5ef5 100644 +--- a/src/coap_oscore.c ++++ b/src/coap_oscore.c +@@ -1675,6 +1675,7 @@ get_split_entry(const char **start, + const char *kend; + const char *split; + size_t i; ++ size_t len; + + retry: + kend = end = memchr(begin, '\n', size); +@@ -1751,9 +1752,10 @@ retry: + value->u.value_str.length = end - begin; + break; + case COAP_ENC_BOOL: +- if (memcmp("true", begin, end - begin) == 0) ++ len = (size_t)(end - begin); ++ if (len == 4 && memcmp("true", begin, len) == 0) + value->u.value_int = 1; +- else if (memcmp("false", begin, end - begin) == 0) ++ else if (len == 5 && memcmp("false", begin, len) == 0) + value->u.value_int = 0; + else + goto bad_entry; +@@ -1768,7 +1770,7 @@ bad_entry: + coap_log_warn("oscore_conf: Unrecognized configuration entry '%.*s'\n", + (int)(end - begin), + begin); +- return 0; ++ return -1; + } + + #undef CONFIG_ENTRY +@@ -1840,6 +1842,7 @@ coap_parse_oscore_conf_mem(coap_str_const_t conf_mem) { + coap_str_const_t keyword; + oscore_value_t value; + coap_oscore_conf_t *oscore_conf; ++ int split_ok = -1; + + oscore_conf = coap_malloc_type(COAP_STRING, sizeof(coap_oscore_conf_t)); + if (oscore_conf == NULL) +@@ -1858,7 +1861,7 @@ coap_parse_oscore_conf_mem(coap_str_const_t conf_mem) { + oscore_conf->break_recipient_key = 0; + + while (end > start && +- get_split_entry(&start, end - start, &keyword, &value)) { ++ (split_ok = get_split_entry(&start, end - start, &keyword, &value)) > 0) { + size_t i; + size_t j; + +@@ -1944,6 +1947,8 @@ coap_parse_oscore_conf_mem(coap_str_const_t conf_mem) { + goto error; + } + } ++ if (split_ok == -1) ++ goto error; + if (!oscore_conf->master_secret) { + coap_log_warn("oscore_conf: master_secret not defined\n"); + goto error;
meta-networking/recipes-devtools/libcoap/libcoap_4.3.4.bb +1 -0
@@ -11,6 +11,7 @@ SRC_URI = "git://github.com/obgm/libcoap.git;branch=main;protocol=https \ file://run-ptest \ file://CVE-2024-0962.patch \ file://CVE-2024-31031.patch \ + file://CVE-2025-59391.patch \ " SRCREV = "5fd2f89ef068214130e5d60b7087ef48711fa615"