diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2026-04-06 17:50:43 +0200 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-06 10:03:48 -0700 |
| commit | c789281ecffbd29840e3dbd8b1a6cb06de10e7fb (patch) | |
| tree | e4d98b452bd7a819a4738cac6ce55d8c37bcc4dd | |
| parent | d8c66c4428a32fac461796efb290665cbf45c396 (diff) | |
| download | meta-openembedded-c789281ecffbd29840e3dbd8b1a6cb06de10e7fb.tar.gz | |
tinyproxy: patch CVE-2026-3945
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-3945
Backport the patches which are references by the NVD avisory.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
3 files changed, 62 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-3945-1.patch b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-3945-1.patch new file mode 100644 index 0000000000..99c4ea705d --- /dev/null +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-3945-1.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 245946bb789c8fc0e4758c344f735a5d53827dce Mon Sep 17 00:00:00 2001 | ||
| 2 | From: rofl0r <rofl0r@users.noreply.github.com> | ||
| 3 | Date: Thu, 12 Mar 2026 14:26:24 +0000 | ||
| 4 | Subject: [PATCH] reqs: check negative length values when reading chunked data | ||
| 5 | |||
| 6 | this could lead to a DoS when a legitimate client reads from an | ||
| 7 | attacker-controlled web server. | ||
| 8 | |||
| 9 | closes #597 | ||
| 10 | |||
| 11 | CVE: CVE-2026-3945 | ||
| 12 | Upstream-Status: Backport [https://github.com/tinyproxy/tinyproxy/commit/969852ccdb1d19d7ed302f0e1d324661be641e0a] | ||
| 13 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 14 | --- | ||
| 15 | src/reqs.c | 1 + | ||
| 16 | 1 file changed, 1 insertion(+) | ||
| 17 | |||
| 18 | diff --git a/src/reqs.c b/src/reqs.c | ||
| 19 | index a562c68..94ce767 100644 | ||
| 20 | --- a/src/reqs.c | ||
| 21 | +++ b/src/reqs.c | ||
| 22 | @@ -613,6 +613,7 @@ static int pull_client_data_chunked (struct conn_s *connptr) { | ||
| 23 | } | ||
| 24 | |||
| 25 | chunklen = strtol (buffer, (char**)0, 16); | ||
| 26 | + if (chunklen < 0) goto ERROR_EXIT; | ||
| 27 | |||
| 28 | if (pull_client_data (connptr, chunklen+2, 0) < 0) | ||
| 29 | goto ERROR_EXIT; | ||
diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-3945-2.patch b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-3945-2.patch new file mode 100644 index 0000000000..3da30b54eb --- /dev/null +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-3945-2.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 8f12872b8e50fe22be0a65ead260ebbedde905cd Mon Sep 17 00:00:00 2001 | ||
| 2 | From: rofl0r <rofl0r@users.noreply.github.com> | ||
| 3 | Date: Sun, 29 Mar 2026 16:48:54 +0200 | ||
| 4 | Subject: [PATCH] reqs: prevent potential int overflow when parsing chunked | ||
| 5 | data (#603) | ||
| 6 | |||
| 7 | follow-up to 969852ccdb1d19d7ed302f0e1d324661be641e0a | ||
| 8 | |||
| 9 | closes #602 | ||
| 10 | |||
| 11 | CVE: CVE-2026-3945 | ||
| 12 | Upstream-Status: Backport [https://github.com/tinyproxy/tinyproxy/commit/bb7edc4778041b3bc8ad7fca448b67d98039cc7d] | ||
| 13 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 14 | --- | ||
| 15 | src/reqs.c | 3 ++- | ||
| 16 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/src/reqs.c b/src/reqs.c | ||
| 19 | index 94ce767..7aacfd3 100644 | ||
| 20 | --- a/src/reqs.c | ||
| 21 | +++ b/src/reqs.c | ||
| 22 | @@ -613,7 +613,8 @@ static int pull_client_data_chunked (struct conn_s *connptr) { | ||
| 23 | } | ||
| 24 | |||
| 25 | chunklen = strtol (buffer, (char**)0, 16); | ||
| 26 | - if (chunklen < 0) goto ERROR_EXIT; | ||
| 27 | + /* prevent negative or huge values causing overflow */ | ||
| 28 | + if (chunklen < 0 || chunklen > 0x0fffffff) goto ERROR_EXIT; | ||
| 29 | |||
| 30 | if (pull_client_data (connptr, chunklen+2, 0) < 0) | ||
| 31 | goto ERROR_EXIT; | ||
diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb index 745c55bc0d..56e3296066 100644 --- a/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb | |||
| @@ -7,6 +7,8 @@ SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz | |||
| 7 | file://tinyproxy.service \ | 7 | file://tinyproxy.service \ |
| 8 | file://tinyproxy.conf \ | 8 | file://tinyproxy.conf \ |
| 9 | file://run-ptest \ | 9 | file://run-ptest \ |
| 10 | file://CVE-2026-3945-1.patch \ | ||
| 11 | file://CVE-2026-3945-2.patch \ | ||
| 10 | " | 12 | " |
| 11 | 13 | ||
| 12 | SRC_URI[sha256sum] = "9bcf46db1a2375ff3e3d27a41982f1efec4706cce8899ff9f33323a8218f7592" | 14 | SRC_URI[sha256sum] = "9bcf46db1a2375ff3e3d27a41982f1efec4706cce8899ff9f33323a8218f7592" |
