diff options
| author | Praveen Kumar <praveen.kumar@windriver.com> | 2025-05-07 11:48:58 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-05-14 06:38:21 -0700 |
| commit | 9b99800fe71a525514351a4236c11e470fbce35a (patch) | |
| tree | 548a2f307596c91ee660e7041a69d3425eadc460 | |
| parent | 73c2187fbc70bf5ddf7a9c4cb212ad1ff9a63885 (diff) | |
| download | poky-9b99800fe71a525514351a4236c11e470fbce35a.tar.gz | |
connman :fix CVE-2025-32743
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.
Reference:
https://nvd.nist.gov/vuln/detail/CVE-2025-32743
Upstream-patch:
https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=d90b911f6760959bdf1393c39fe8d1118315490f
(From OE-Core rev: ece0fb01bf28fa114f0a6e479491b4b6f565c80c)
Signed-off-by: Praveen Kumar <praveen.kumar@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-connectivity/connman/connman/CVE-2025-32743.patch | 43 | ||||
| -rw-r--r-- | meta/recipes-connectivity/connman/connman_1.41.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman/CVE-2025-32743.patch b/meta/recipes-connectivity/connman/connman/CVE-2025-32743.patch new file mode 100644 index 0000000000..8656b37bd3 --- /dev/null +++ b/meta/recipes-connectivity/connman/connman/CVE-2025-32743.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | From d90b911f6760959bdf1393c39fe8d1118315490f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Praveen Kumar <praveen.kumar@windriver.com> | ||
| 3 | Date: Thu, 24 Apr 2025 11:39:29 +0000 | ||
| 4 | Subject: [PATCH] dnsproxy: Fix NULL/empty lookup causing potential crash | ||
| 5 | |||
| 6 | In ConnMan through 1.44, the lookup string in ns_resolv in dnsproxy.c | ||
| 7 | can be NULL or an empty string when the TC (Truncated) bit is set in | ||
| 8 | a DNS response. This allows attackers to cause a denial of service | ||
| 9 | (application crash) or possibly execute arbitrary code, because those | ||
| 10 | lookup values lead to incorrect length calculations and incorrect | ||
| 11 | memcpy operations. | ||
| 12 | |||
| 13 | This patch includes a check to make sure loookup value is valid before | ||
| 14 | using it. This helps avoid unexpected value when the input is empty or | ||
| 15 | incorrect. | ||
| 16 | |||
| 17 | Fixes: CVE-2025-32743 | ||
| 18 | |||
| 19 | CVE: CVE-2025-32743 | ||
| 20 | |||
| 21 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=d90b911f6760959bdf1393c39fe8d1118315490f] | ||
| 22 | |||
| 23 | Signed-off-by: Praveen Kumar <praveen.kumar@windriver.com> | ||
| 24 | --- | ||
| 25 | src/dnsproxy.c | 3 +++ | ||
| 26 | 1 file changed, 3 insertions(+) | ||
| 27 | |||
| 28 | diff --git a/src/dnsproxy.c b/src/dnsproxy.c | ||
| 29 | index cf1d36c..334dd00 100644 | ||
| 30 | --- a/src/dnsproxy.c | ||
| 31 | +++ b/src/dnsproxy.c | ||
| 32 | @@ -1615,6 +1615,9 @@ static int ns_resolv(struct server_data *server, struct request_data *req, | ||
| 33 | char *dot, *lookup = (char *) name; | ||
| 34 | struct cache_entry *entry; | ||
| 35 | |||
| 36 | + if (!lookup || strlen(lookup) == 0) | ||
| 37 | + return -EINVAL; | ||
| 38 | + | ||
| 39 | entry = cache_check(request, &type, req->protocol); | ||
| 40 | if (entry) { | ||
| 41 | int ttl_left = 0; | ||
| 42 | -- | ||
| 43 | 2.40.0 | ||
diff --git a/meta/recipes-connectivity/connman/connman_1.41.bb b/meta/recipes-connectivity/connman/connman_1.41.bb index 27b28be41c..caf0610c3f 100644 --- a/meta/recipes-connectivity/connman/connman_1.41.bb +++ b/meta/recipes-connectivity/connman/connman_1.41.bb | |||
| @@ -9,6 +9,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ | |||
| 9 | file://CVE-2022-32293_p2.patch \ | 9 | file://CVE-2022-32293_p2.patch \ |
| 10 | file://CVE-2022-32292.patch \ | 10 | file://CVE-2022-32292.patch \ |
| 11 | file://CVE-2023-28488.patch \ | 11 | file://CVE-2023-28488.patch \ |
| 12 | file://CVE-2025-32743.patch \ | ||
| 12 | " | 13 | " |
| 13 | 14 | ||
| 14 | SRC_URI:append:libc-musl = " file://0002-resolve-musl-does-not-implement-res_ninit.patch" | 15 | SRC_URI:append:libc-musl = " file://0002-resolve-musl-does-not-implement-res_ninit.patch" |
