From patchwork Tue Dec 1 06:43:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Mittal X-Patchwork-Id: 106713 X-Patchwork-Delegate: anuj.mittal@oss.qualcomm.com Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.5859.1796107461980202079 for ; Mon, 30 Nov 2026 22:44:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=A12Z9Vkq; dkim=pass header.i=@oss.qualcomm.com header.s=google header.b=G/zffGXA; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: oss.qualcomm.com, ip: 205.220.180.131, mailfrom: anuj.mittal@oss.qualcomm.com) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12LHQE1044275 for ; Tue, 1 Dec 2026 06:44:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=bbf/L8pmSWM kCxvk36jp5kUKVdVInkAXbmAet8OzvLA=; b=A12Z9Vkq0LKogUN5X3QyiSK3gtZ tA05IElxfdgWtufdMKZyVy5BFztCnEez6LY45bGuncqmVWMBcQziZjEgfsCBWIBs Na+9vS35RxMzk1A92Ktx8zcfS8De1Py2bPbop9Q7UTHWtqGjUehzI1WyRNCJo5dy ZmPmBOnUV9UZ4cs5vkd5M5Y2HEVtKtlEad4W1mIAWxO8ApqBsiYInmvXOyXTOXOr C07vXmNXfRjrP3U0XVhqlLE4J/2nLi39WXOQam2gs2/2DR2pbP4+x5vKBm0+cObf cOqzcwOcfIE6FDkB17bKApcrLp1/qKKD8JpPGTZDlVJQS24/yay1KtnCrkA== Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j9ke318fp-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Dec 2026 06:44:20 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-386b8624cf7so6173783eec.1 for ; Mon, 30 Nov 2026 22:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796107460; x=1796712260; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=bbf/L8pmSWMkCxvk36jp5kUKVdVInkAXbmAet8OzvLA=; b=G/zffGXA0ArGniybWmILszx5b1PTdwtEf4PuRmTyBfjiOuXb0AS52XR6KjlkwuyK6M xRIkeg6ODHfGq2ajp8Oez+KkBOdsqobzubVI5T3u/eg+KaDd8GJs+DzMMsCYQHKa7X8V v2QNLEetRnIGUhWL1qYXyQbkNolUfEyqZ9rOEEfPJpTTUNH+7utwiBKAGLDOr6e+9khn DRdOGr89PNlYIYUNbgJC+4V9PL9X2DK3unF47DevUbawti3DOGFfWj/P5MJxZSgqpM6R Ht2hebYsnXxOJH64BboqFeEId+gq4pbwjV+j/wpiGvwtRoIzEStzdQ2pap2BG41KWNdD wAiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796107460; x=1796712260; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=bbf/L8pmSWMkCxvk36jp5kUKVdVInkAXbmAet8OzvLA=; b=JzdYF/Ve0mA/n4RMjKjj1f9fyBpTi/VrQ2716t5cu4sdV3uldA2S8gaTpyyR8KsXIh GFGKuxc5kxbpa5VajXIoCOZTHAxfGdaOrh4B4v81Htm1Cj/0hioCczbD0Nu+ie9b7oAF cusoribe2Zh7oGUxWeXDh5l3D7iiQg+FXkU4UgcVR5pc2PyVu5dCQzKHr37tbt8YLYpi IlgpBlpoj0NxuWvihEg2ki4R0IpasYU8TDZh01ITuj8qmDwrdgH3JNAJRz5w5mMcQnet sKaNZb3yY1xil4wEeWMOGQKBU5tumCQ9FBUQaorluh83NvoVS8DX10o9Reu5yRJC4NTi LgLg== X-Gm-Message-State: APuU4Z89hQxtMi1xTsncV1P4pD7mXwxp3LAG6LugXJIehqoIOUmUHF9z i9eL1kkMpE5KIBZlFRBCQagvAFm65q2N18gunCNLYstos2zAsU6Xv3Sl3qEa97CS2fqBFCDxOi+ 0jooXc50Nxn9bzwhztaqqc1T9DPqhx6NMC0DL+w2Z38z8/TSLeiDLrXvxpL8+0j/rAlgiVWrlne C69qus/OWb/XwBXs3RGaH7pQ== X-Gm-Gg: AZFdTZe1lLY+qDZk3I9m5A3ECsdkFcncyOxc84TFWTX5Pda+DvXZNhqR/rBgkENEVbK 7MPGuSnGTSgbVRW84NU77ov7oMH03SUgHzL3ql0L9zKRzwq6b38LC7nbnQKRChCXvWx/EYTEOW2 a8pkKjJAmuMmIwPIy8nhVPJZUBPJTuXpPkiJgmzg4lCkfMaDireXNNyS4HR1vIg3NKTD7ZO9NHh bdFH2ayhBs+cfpX9CqVjd2wj3xOVbKtS7+wXnHABthFYKXaL+2tVnpXfPVuxEozJH2ZPLPjnCuQ PMVDkxZQyXFfm6/f3RyM5ksb24Sgr9sibviI5wGCLa8vWZWbN4pR7hF9orJzvg6Bwn1XfDUmq1f fg8kZioMZbWSycyit+E6qfMpoZi4dCXZrROVRu5GjtZxt2uWFOlAk5EkZaDlkwlbTtsN8n3eC4/ szTgqd X-Received: by 2002:a05:693c:87d2:10b0:386:effe:512 with SMTP id 5a478bee46e88-386effe0580mr12330787eec.32.1796107459568; Mon, 30 Nov 2026 22:44:19 -0800 (PST) X-Received: by 2002:a05:693c:87d2:10b0:386:effe:512 with SMTP id 5a478bee46e88-386effe0580mr12330762eec.32.1796107459048; Mon, 30 Nov 2026 22:44:19 -0800 (PST) Received: from hu-anujmitt-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd46c5sm132830468eec.11.2026.11.30.22.44.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 22:44:18 -0800 (PST) From: Anuj Mittal To: openembedded-devel@lists.openembedded.org Subject: [wrynose][meta-networking][PATCH 06/45] tinyproxy: patch CVE-2026-125371 Date: Tue, 1 Dec 2026 12:13:22 +0530 Message-ID: <20261201064402.3934788-6-anuj.mittal@oss.qualcomm.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261201064402.3934788-1-anuj.mittal@oss.qualcomm.com> References: <20261201064402.3934788-1-anuj.mittal@oss.qualcomm.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: Sc1_xYLeQ1-L5PEG02F4hCu23RA7g-31 X-Proofpoint-GUID: Sc1_xYLeQ1-L5PEG02F4hCu23RA7g-31 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfXzWvu5TJGdhAF oPjZUJ/m+MSI7UcoRIDnLjZ1NyxT/kbsPxtPWMQ+oFOlxQ/j8sQ6mD+ZKIINpd0hhrR27q1rXvM jdz+ewnoB25VeXRJq+FYQm7ydtwJsn9WhlPE3YxlQFBbDsV3E+CzrEMx1cb6aH4wYxBuHyx0azU s+34q5xzGFwqhGLDMEUshoi3Emyg5dIVgX2oT1dmwZzv404bljokv5E8AXZTZfK0NUrLKG8aR+m 4viRVmgeBEI10ZCpfXVgRXT3seTjFytx5LapDkVwCOjEyEjcKC1khbOkOlGOgjdyY9YQJLANrR2 YpYQB8780Hqa5PWG5+L/glMWCu2lA9KQ0jjUXERIzYbHSokinO7BE3NZwrYPrkCmsCUGGXQ0fqj 03+WG+Dfj7F1MV5ZCETwrsXwxG0jTsEztTH5GIovdxgOtTDQaulBkSQ8EbOwYag8DXHPJYelTvY c8KRHQCxFQJ2Dp+xz5g== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyNiBTYWx0ZWRfX9IIIVDsJFYwL /QZyqZOTfZBNI/btgzgEGSE9x5qNJc7FvA3SxQGPdJxHVdJrBXEWyW8TtWBao1StANh6FvQbzzB 4CdLOjG3Arapw+jAXxjHMYurI2MVV+U= X-Authority-Analysis: v=2.4 cv=H8BOUOYi c=1 sm=1 tr=0 ts=6b0e6cc4 cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=PYnjg3YJAAAA:8 a=NEAV23lmAAAA:8 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=HaXHJzbaAAAA:8 a=qs6DgQjiAAAA:8 a=8nLLXD3sOIFw5cTBuLcA:9 a=6Ab_bkdmUrQuMsNx7PHu:22 a=rUI4t3QCEiMW80BpCreE:22 a=EmrkgJcZSfm0SU0G2M6s:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 adultscore=0 impostorscore=0 clxscore=1015 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010026 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 06:44:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133700 From: Ankur Tyagi Details: https://nvd.nist.gov/vuln/detail/cve-2026-125371 Signed-off-by: Ankur Tyagi Signed-off-by: Khem Raj (cherry picked from commit 147cbbb474c7221d0b085330fcdb4612cbacb779) Signed-off-by: Anuj Mittal --- .../tinyproxy/tinyproxy/CVE-2026-125371.patch | 70 +++++++++++++++++++ .../tinyproxy/tinyproxy_1.11.3.bb | 1 + 2 files changed, 71 insertions(+) create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch new file mode 100644 index 0000000000..7a86af207c --- /dev/null +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch @@ -0,0 +1,70 @@ +From 8c8463fb1a0bf7db82d3dfc6f363d5b339e96cd3 Mon Sep 17 00:00:00 2001 +From: rofl0r +Date: Tue, 15 Sep 2026 06:42:05 +0000 +Subject: [PATCH] acl: use hostspec parser to disallow suffix hostname matches + +the existing ad-hoc parsing in acl.c allowed an attacker to +use e.g. an "untrusted.net" domain name to access a reachable +tinyproxy instance if it had an allow list entry for "trusted.net". + +exploiting it would require that the attacker has prior knowledge +of the instance's configuration or is damn good at guessing and +well-budgeted to register lots of potentially matching domains. + +fix by re-using the existing hardened hostspec parser. + +closes #627 + +(cherry picked from commit 3991ac8f98c6a9f05b3265018b812dbf2ca92c28) +CVE: CVE-2026-125371 +Upstream-Status: Backport [https://github.com/tinyproxy/tinyproxy/commit/3991ac8f98c6a9f05b3265018b812dbf2ca92c28] +Signed-off-by: Ankur Tyagi +--- + src/acl.c | 25 +++++++++---------------- + 1 file changed, 9 insertions(+), 16 deletions(-) + +diff --git a/src/acl.c b/src/acl.c +index 2d141ba..db526db 100644 +--- a/src/acl.c ++++ b/src/acl.c +@@ -105,7 +105,6 @@ acl_string_processing (struct acl_s *acl, const char *ip_address, + { + int match; + struct addrinfo hints, *res, *ressave; +- size_t test_length, match_length; + char ipbuf[512]; + + assert (acl && acl->h.type == HST_STRING); +@@ -153,23 +152,17 @@ STRING_TEST: + return -1; + } + +- test_length = strlen (string_addr); +- match_length = strlen (acl->h.address.string); +- + /* +- * If the string length is shorter than AC string, return a -1 so +- * that the "driver" will skip onto the next control in the list. ++ * compare the reverse-resolved client hostname against the ACL ++ * entry, using the shared hostspec matcher so that hostname ++ * entries are matched at label boundaries: plain entries match ++ * the whole hostname exactly, and leading-dot entries match the ++ * apex host plus every subdomain below it. This prevents ++ * suffix-collision bypasses, e.g. "Allow trusted.net" must not ++ * admit "untrusted.net" (GH issue #627). + */ +- if (test_length < match_length) +- return -1; +- +- if (strcasecmp +- (string_addr + (test_length - match_length), +- acl->h.address.string) == 0) { +- if (acl->access == ACL_DENY) +- return 0; +- else +- return 1; ++ if (hostspec_match (string_addr, &acl->h) != 0) { ++ return acl->access != ACL_DENY; + } + + /* Indicate that no tests succeeded, so skip to next control. */ 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 cadddffa18..cc9132758d 100644 --- a/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb +++ b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb @@ -13,6 +13,7 @@ SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz file://CVE-2026-54387.patch \ file://CVE-2026-55202.patch \ file://CVE-2026-54388.patch \ + file://CVE-2026-125371.patch \ " SRC_URI[sha256sum] = "9bcf46db1a2375ff3e3d27a41982f1efec4706cce8899ff9f33323a8218f7592"