mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 06:17:16 +00:00
tinyproxy: patch CVE-2026-54388
Details: https://nvd.nist.gov/vuln/detail/cve-2026-54388 Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 parent
5a47d11974
commit
5e86728639
2 files changed
+33
No files matched your search
@@ -0,0 +1,32 @@
|
||||
From 2639058707dd9d199196b167823ba1865a60ea08 Mon Sep 17 00:00:00 2001
|
||||
From: rofl0r <rofl0r@users.noreply.github.com>
|
||||
Date: Thu, 7 May 2026 16:39:48 +0000
|
||||
Subject: [PATCH] reqs: prevent multiple content-lengths getting emitted
|
||||
|
||||
addressing point 2 of #609
|
||||
|
||||
(cherry picked from commit 364cdb67e0ea00a8e4a7037e2693e0711e816adb)
|
||||
|
||||
CVE: CVE-2026-54388
|
||||
Upstream-Status: Backport [https://github.com/tinyproxy/tinyproxy/commit/364cdb67e0ea00a8e4a7037e2693e0711e816adb]
|
||||
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
|
||||
---
|
||||
src/reqs.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/reqs.c b/src/reqs.c
|
||||
index d5037cf..117d755 100644
|
||||
--- a/src/reqs.c
|
||||
+++ b/src/reqs.c
|
||||
@@ -681,6 +681,11 @@ add_header_to_connection (pseudomap *hashofheaders, char *header, size_t len)
|
||||
/* Calculate the new length of just the data */
|
||||
len -= sep - header - 1;
|
||||
|
||||
+ /* prevent multiple content-length headers from being inserted */
|
||||
+ if (!strcasecmp(header, "content-length") &&
|
||||
+ pseudomap_find (hashofheaders, "content-length"))
|
||||
+ return 0;
|
||||
+
|
||||
return pseudomap_append (hashofheaders, header, sep);
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz
|
||||
file://CVE-2026-31842.patch \
|
||||
file://CVE-2026-54387.patch \
|
||||
file://CVE-2026-55202.patch \
|
||||
file://CVE-2026-54388.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "9bcf46db1a2375ff3e3d27a41982f1efec4706cce8899ff9f33323a8218f7592"
|
||||
|
||||
Reference in new issue
Block a user