From patchwork Mon Aug 18 10:28:37 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yurade X-Patchwork-Id: 68714 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 523B2CA0EC0 for ; Mon, 18 Aug 2025 10:29:17 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.71621.1755512949748430235 for ; Mon, 18 Aug 2025 03:29:10 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); 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=03259f8914=yogita.urade@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 57I9Pe1u3011215 for ; Mon, 18 Aug 2025 10:29:08 GMT Received: from ala-exchng01.corp.ad.wrs.com ([128.224.246.36]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 48jfe8hj1b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 18 Aug 2025 10:29:08 +0000 (GMT) Received: from blr-linux-engg1.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.57; Mon, 18 Aug 2025 03:28:59 -0700 From: yurade To: Subject: [oe][meta-oe][kirkstone][PATCH 1/1] poppler: fix CVE-2025-50420 Date: Mon, 18 Aug 2025 15:58:37 +0530 Message-ID: <20250818102837.3027859-1-yogita.urade@windriver.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Originating-IP: [10.11.232.110] X-ClientProxiedBy: ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) To ala-exchng01.corp.ad.wrs.com (10.11.224.121) X-Proofpoint-GUID: 3IpB0dNLiv2Bd4LlDnWDjqV2oV4rd4hB X-Proofpoint-ORIG-GUID: 3IpB0dNLiv2Bd4LlDnWDjqV2oV4rd4hB X-Authority-Analysis: v=2.4 cv=epvfzppX c=1 sm=1 tr=0 ts=68a30074 cx=c_pps a=AbJuCvi4Y3V6hpbCNWx0WA==:117 a=AbJuCvi4Y3V6hpbCNWx0WA==:17 a=gmxlzscTznEA:10 a=2OwXVqhp2XgA:10 a=PYnjg3YJAAAA:8 a=e5mUnYsNAAAA:8 a=t7CeM3EgAAAA:8 a=Ai16GGQhjgwLQAW92vkA:9 a=Vxmtnl_E_bksehYqCbjh:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODE4MDEwMCBTYWx0ZWRfXz38lsLV83M4k CjP5KYOG0tBu91+8moCNcax8rYXWYp6pT5tYMgGT5lsrAH18RSby0t4BwUkU7E2DR0OQeBsV+Ic 4xoJVWm8h/6SR1Me/IbJJvn/B0b5JKHAxqTnW/+7ZqU2f/C3ZMDmXyeD0y1FGJDyRjhWfT5bmQN bx45e2o5L5hCYZslLCaIO9K1UVw1Imcpb8f0uy1c4YALTOwgwtZEeR3zqVMqoEYMyKtJ364w7M0 emBVEYUceFXKATFSJdpZ17KsLJ32YG7GgdrpFULeE1MStEVCkYL4DtqhMEw1NDro8amdwzo6cbH mO8pUAp6ckEcuY7vYawnVeXymLPnNPJc1tjawfqE3ztiq7nrLGr5UvnXtG63hc= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-18_04,2025-08-14_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 phishscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 impostorscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2507300000 definitions=firstrun List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 18 Aug 2025 10:29:17 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/118993 From: Yogita Urade An issue in the pdfseparate utility of freedesktop poppler v25.04.0 allows attackers to cause an infinite recursion via supplying a crafted PDF file. This can lead to a Denial of Service (DoS). Reference: https://nvd.nist.gov/vuln/detail/CVE-2025-50420 Upstream patch: https://gitlab.freedesktop.org/poppler/poppler/-/commit/a7025904e3330dd6cf95f3664ef6fc77034cc5e1 Signed-off-by: Yogita Urade --- .../poppler/poppler/CVE-2025-50420.patch | 38 +++++++++++++++++++ .../poppler/poppler_22.04.0.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-oe/recipes-support/poppler/poppler/CVE-2025-50420.patch diff --git a/meta-oe/recipes-support/poppler/poppler/CVE-2025-50420.patch b/meta-oe/recipes-support/poppler/poppler/CVE-2025-50420.patch new file mode 100644 index 0000000000..ad322cbf97 --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler/CVE-2025-50420.patch @@ -0,0 +1,38 @@ +From a7025904e3330dd6cf95f3664ef6fc77034cc5e1 Mon Sep 17 00:00:00 2001 +From: Sune Vuorela +Date: Tue, 29 Jul 2025 14:14:00 +0200 +Subject: [PATCH] Fix crash in pdfseparate + +Don't continue recursing in PDFDoc::mark* if things looks a bit weirder +than expected + +CVE: CVE-2025-50420 +Upstream-Status: Backport [https://gitlab.freedesktop.org/poppler/poppler/-/commit/a7025904e3330dd6cf95f3664ef6fc77034cc5e1] + +Signed-off-by: Yogita Urade +--- + poppler/PDFDoc.cc | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc +index 20bb191..c2e90be 100644 +--- a/poppler/PDFDoc.cc ++++ b/poppler/PDFDoc.cc +@@ -1771,6 +1771,15 @@ bool PDFDoc::markAnnotations(Object *annotsObj, XRef *xRef, XRef *countRef, unsi + if (obj1.isDict()) { + Dict *dict = obj1.getDict(); + Object type = dict->lookup("Type"); ++ if (type.isNull()) { ++ Object subType = dict->lookup("SubType"); ++ // Type is optional, subtype is required ++ // If neither of them exists, something is probably ++ // weird here, so let us just skip this entry ++ if (subType.isNull()) { ++ continue; ++ } ++ } + if (type.isName() && strcmp(type.getName(), "Annot") == 0) { + const Object &obj2 = dict->lookupNF("P"); + if (obj2.isRef()) { +-- +2.40.0 diff --git a/meta-oe/recipes-support/poppler/poppler_22.04.0.bb b/meta-oe/recipes-support/poppler/poppler_22.04.0.bb index 87f240616f..ae8462b321 100644 --- a/meta-oe/recipes-support/poppler/poppler_22.04.0.bb +++ b/meta-oe/recipes-support/poppler/poppler_22.04.0.bb @@ -18,6 +18,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \ file://CVE-2025-52886-0002.patch \ file://CVE-2025-52886-0003.patch \ file://CVE-2025-52886-0004.patch \ + file://CVE-2025-50420.patch \ " SRC_URI[sha256sum] = "813fb4b90e7bda63df53205c548602bae728887a60f4048aae4dbd9b1927deff"