From patchwork Wed Dec 24 03:33:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changqing Li X-Patchwork-Id: 77371 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADF19E7490A for ; Wed, 24 Dec 2025 03:33:58 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.114168.1766547232302937173 for ; Tue, 23 Dec 2025 19:33:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=KC5X77tl; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=44536a1b88=changqing.li@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5BO2vnB03935455 for ; Wed, 24 Dec 2025 03:33:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=PPS06212021; bh=1qcc8Z7xbH/QPAcjxEQA NuL4gsucOdywt6ZZ+4ZrlOg=; b=KC5X77tl6wGkXWv/ZFSYOvTJSWs+X7KT8CbJ D7Ju65DWVYUqy9lmG7oCu9HjZTEdS54B2RT6S0Mb163rpcDHgSqtT4h6vzHaPX1i OzSA0qxGRMZsHEwGjvPrYq6AJf1mpnX9FA1WU4QQSjuqm7YkEbz/9aM+LERg2jZJ VOQbHHhzcINwuOm/yTfyY2tEjdcZSGHqmygl3aJyt4ZjfH8Jc32yCYQ2t1StU1zx nSvqWOG98f2zIOfUn6NPXyeiR9zS9+LV/rDhklHVeMAyJDml7j2rBFH89qHg/pxE Asv8zhmcQY99FdgP6B3NmaNbVyTuUhwPKva26OYI7YfEvnRFvA== Received: from ala-exchng02.corp.ad.wrs.com ([128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4b5h0vkv1p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 24 Dec 2025 03:33:51 +0000 (GMT) Received: from ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Tue, 23 Dec 2025 19:33:49 -0800 Received: from pek-lpg-core6.wrs.com (10.11.232.110) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Tue, 23 Dec 2025 19:33:49 -0800 From: To: Subject: [V2][kirkstone][PATCH] libsoup: fix CVE-2025-12105 Date: Wed, 24 Dec 2025 11:33:41 +0800 Message-ID: <20251224033341.556509-1-changqing.li@windriver.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: VKPaFwSgoIJJvoC71DxFcVTRqGxV0zmr X-Authority-Analysis: v=2.4 cv=I6Fohdgg c=1 sm=1 tr=0 ts=694b5f1f cx=c_pps a=Lg6ja3A245NiLSnFpY5YKQ==:117 a=Lg6ja3A245NiLSnFpY5YKQ==:17 a=wP3pNCr1ah4A:10 a=VkNPw1HP01LnGYTKEx00:22 a=GHR8O2WEAAAA:20 a=t7CeM3EgAAAA:8 a=6MyZ0KW2AAAA:8 a=eXHZBV4ZpkldoAy6WkEA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: VKPaFwSgoIJJvoC71DxFcVTRqGxV0zmr X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjI0MDAyNiBTYWx0ZWRfXxUU3gJTEr3Tb Gj3ezGBfLpp5KtQtN40bC/lqAKAdz7h+t2vMydgy8V4GbV1z6QuwE1XQ/bFpKB+Gyggb/k93jIH dmdO5MgtSE+PVzkSE7hWM2l3AERFo+Rb7uAwVyF6IM2ySjdE3AQm3j3XNR+gmSru6lOHUBLgHKc auYslQIYS3V3H6y9yAtvtcozqwGIK0UF04MpyoV0a5iiSjwEDVMeW4bdEMG5iAjS7jwVoMu/c69 lNxTnq5Hxj4LNqVkPM3tlXbvf25uwAItFuI4U8ynse8vMjOWzR1/uKGD2GXic3ngGMjpmCaj6kr Wf12i+NzhKwW1Yu9um6ZwMxBloSWn4rV4GS73D/ho4IaASinbcj2ezkxg7Es9Tq3Hf8ortuYHnM U627xO4/Ewm5ROSTWcDWHcZVRG1xqmj/+5zZ9B1GZhw5xjCoICKRgzyC5aDLzEY1xm6NZVLyevy r5JgvDa9TL76Ke5wctw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-12-24_01,2025-12-22_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 impostorscore=0 bulkscore=0 malwarescore=0 adultscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2512240026 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 24 Dec 2025 03:33:58 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/228516 From: Changqing Li Refer: https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/481 Signed-off-by: Changqing Li --- .../libsoup/libsoup/CVE-2025-12105.patch | 34 +++++++++++++++++++ meta/recipes-support/libsoup/libsoup_3.0.7.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-support/libsoup/libsoup/CVE-2025-12105.patch diff --git a/meta/recipes-support/libsoup/libsoup/CVE-2025-12105.patch b/meta/recipes-support/libsoup/libsoup/CVE-2025-12105.patch new file mode 100644 index 0000000000..9426ef3001 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup/CVE-2025-12105.patch @@ -0,0 +1,34 @@ +From 465410f833e4288ad053b4e18d5fa6c3be3148e1 Mon Sep 17 00:00:00 2001 +From: Eugene Mutavchi +Date: Fri, 10 Oct 2025 16:24:27 +0000 +Subject: [PATCH] fix 'heap-use-after-free' caused by 'finishing' queue item + twice + +CVE: CVE-2025-12105 +Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/9ba1243a24e442fa5ec44684617a4480027da960] + +Signed-off-by: Changqing Li +--- + libsoup/soup-session.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c +index 5f2929f..b9f3e42 100644 +--- a/libsoup/soup-session.c ++++ b/libsoup/soup-session.c +@@ -3093,8 +3093,10 @@ run_until_read_done (SoupMessage *msg, + if (soup_message_io_in_progress (msg)) + soup_message_io_finished (msg); + item->paused = FALSE; +- item->state = SOUP_MESSAGE_FINISHING; +- soup_session_process_queue_item (item->session, item, NULL, FALSE); ++ if (item->state != SOUP_MESSAGE_FINISHED) { ++ item->state = SOUP_MESSAGE_FINISHING; ++ soup_session_process_queue_item (item->session, item, NULL, FALSE); ++ } + } + async_send_request_return_result (item, NULL, error); + } +-- +2.34.1 + diff --git a/meta/recipes-support/libsoup/libsoup_3.0.7.bb b/meta/recipes-support/libsoup/libsoup_3.0.7.bb index af8554aa78..0f82736727 100644 --- a/meta/recipes-support/libsoup/libsoup_3.0.7.bb +++ b/meta/recipes-support/libsoup/libsoup_3.0.7.bb @@ -45,6 +45,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ file://CVE-2025-46421.patch \ file://CVE-2025-4948.patch \ file://CVE-2025-4945.patch \ + file://CVE-2025-12105.patch \ " SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8"