Hello team! Could you please review the patches for connman package?
I'm leaving you the salsa repository [0] and attaching the debdiff. Also I uploaded to debusine [1] [0] https://salsa.debian.org/lts-team/packages/connman/-/tree/debian/bookworm [1] https://debusine.debian.net/debian/developers/work-request/1685486/ Thanks! -- cheers, Emmanuel Arias ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ [email protected] ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: 13796755BBC72BB8ABE2AEB5 FA9DEC5DE11C63F1 ⠈⠳⣄
diffstat for connman-1.41 connman-1.41 changelog | 12 ++++++++++++ patches/CVE-2025-32366.patch | 33 +++++++++++++++++++++++++++++++++ patches/CVE-2025-32743.patch | 35 +++++++++++++++++++++++++++++++++++ patches/series | 2 ++ 4 files changed, 82 insertions(+) diff -Nru connman-1.41/debian/changelog connman-1.41/debian/changelog --- connman-1.41/debian/changelog 2023-04-14 06:45:14.000000000 -0300 +++ connman-1.41/debian/changelog 2026-11-27 15:30:36.000000000 -0300 @@ -1,3 +1,15 @@ +connman (1.41-3+deb12u1) bookworm-security; urgency=high + + * Non-maintainer upload by the LTS Team. + * CVE-2025-32366: Add patch from upstream to ensure that + (*end + *rdlen) does not exceed the valid range (Closes: #1102193). + * CVE-2025-32743: Backport upstream patch to reject a NULL or empty + lookup string in ns_resolv(), preventing a crash or incorrect + memcpy() lengths when the TC bit is set in a DNS response + (Closes: #1103530). + + -- Emmanuel Arias <[email protected]> Fri, 27 Nov 2026 15:30:36 -0300 + connman (1.41-3) unstable; urgency=medium * gdhcp: Verify and sanitize packet length first (CVE-2023-28488) diff -Nru connman-1.41/debian/patches/CVE-2025-32366.patch connman-1.41/debian/patches/CVE-2025-32366.patch --- connman-1.41/debian/patches/CVE-2025-32366.patch 1969-12-31 21:00:00.000000000 -0300 +++ connman-1.41/debian/patches/CVE-2025-32366.patch 2026-11-27 15:30:21.000000000 -0300 @@ -0,0 +1,33 @@ +From: "신윤제(학부생-소프트웨어전공)" <[email protected]> +Date: Mon, 12 May 2025 10:48:18 +0200 +Subject: dnsproxy: Address CVE-2025-32366 vulnerability + +In Connman parse_rr in dnsproxy.c has a memcpy length +that depends on an RR RDLENGTH value (i.e., *rdlen=ntohs(rr->rdlen) +and memcpy(response+offset,*end,*rdlen)). Here, rdlen may be larger +than the amount of remaining packet data in the current state of +parsing. As a result, values of stack memory locations may be sent +over the network in a response. + +This patch adds a check to ensure that (*end + *rdlen) does not exceed +the valid range. If the condition is violated, the function returns +-EINVAL. + +Origin: https://git.kernel.org/pub/scm/network/connman/connman.git/patch/?id=8d3be0285f1d4667bfe85dba555c663eb3d704b4 +Bug-Debian: https://bugs.debian.org/1102193 +--- + src/dnsproxy.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/src/dnsproxy.c ++++ b/src/dnsproxy.c +@@ -950,6 +950,9 @@ static int parse_rr(unsigned char *buf, + if ((unsigned int) (offset + *rdlen) > *response_size) + return -ENOBUFS; + ++ if ((*end + *rdlen) > max) ++ return -EINVAL; ++ + memcpy(response + offset, *end, *rdlen); + + *end += *rdlen; diff -Nru connman-1.41/debian/patches/CVE-2025-32743.patch connman-1.41/debian/patches/CVE-2025-32743.patch --- connman-1.41/debian/patches/CVE-2025-32743.patch 1969-12-31 21:00:00.000000000 -0300 +++ connman-1.41/debian/patches/CVE-2025-32743.patch 2026-11-27 15:30:36.000000000 -0300 @@ -0,0 +1,35 @@ +From: Praveen Kumar <[email protected]> +Date: Thu, 24 Apr 2025 11:39:29 +0000 +Subject: dnsproxy: Fix NULL/empty lookup causing potential crash + +In ConnMan through 1.44, the lookup string in ns_resolv in dnsproxy.c +can be NULL or an empty string when the TC (Truncated) bit is set in +a DNS response. This allows attackers to cause a denial of service +(application crash) or possibly execute arbitrary code, because those +lookup values lead to incorrect length calculations and incorrect +memcpy operations. + +This patch includes a check to make sure loookup value is valid before +using it. This helps avoid unexpected value when the input is empty or +incorrect. + +Fixes: CVE-2025-32743 + +Origin: backport, https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=d90b911f6760959bdf1393c39fe8d1118315490f +Bug-Debian: https://bugs.debian.org/1103530 +--- + src/dnsproxy.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/src/dnsproxy.c ++++ b/src/dnsproxy.c +@@ -1618,6 +1618,9 @@ static int ns_resolv(struct server_data + char *dot, *lookup = (char *) name; + struct cache_entry *entry; + ++ if (!lookup || strlen(lookup) == 0) ++ return -EINVAL; ++ + entry = cache_check(request, &type, req->protocol); + if (entry) { + int ttl_left = 0; diff -Nru connman-1.41/debian/patches/series connman-1.41/debian/patches/series --- connman-1.41/debian/patches/series 2023-04-14 06:45:14.000000000 -0300 +++ connman-1.41/debian/patches/series 2026-11-27 15:30:36.000000000 -0300 @@ -4,3 +4,5 @@ wispr-Update-portal-context-references.patch gweb-Fix-OOB-write-in-received_data.patch gdhcp-Verify-and-sanitize-packet-length-first.patch +CVE-2025-32366.patch +CVE-2025-32743.patch
signature.asc
Description: PGP signature
