summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorYogita Urade <yogita.urade@windriver.com>2025-10-16 11:48:25 +0530
committerGyorgy Sarvari <skandigraun@gmail.com>2025-10-17 10:51:27 +0200
commit199ca4579ca924ee8c09d95083c842da3a6590c0 (patch)
treee58c90721d1c262357875924223ad2b4bb988ab3 /meta-oe
parent9146afcebbc01d6e0598d3ca92701825b9163b6c (diff)
downloadmeta-openembedded-199ca4579ca924ee8c09d95083c842da3a6590c0.tar.gz
poppler: fix CVE-2025-52885
Poppler ia a library for rendering PDF files, and examining or modifying their structure. A use-after-free (write) vulnerability has been detected in versions Poppler prior to 25.10.0 within the StructTreeRoot class. The issue arises from the use of raw pointers to elements of a `std::vector`, which can lead to dangling pointers when the vector is resized. The vulnerability stems from the way that refToParentMap stores references to `std::vector` elements using raw pointers. These pointers may become invalid when the vector is resized. This vulnerability is a common security problem involving the use of raw pointers to `std::vectors`. Internally, `std::vector `stores its elements in a dynamically allocated array. When the array reaches its capacity and a new element is added, the vector reallocates a larger block of memory and moves all the existing elements to the new location. At this point if any pointers to elements are stored before a resize occurs, they become dangling pointers once the reallocation happens. Version 25.10.0 contains a patch for the issue. Reference: https://nvd.nist.gov/vuln/detail/CVE-2025-52885 Upstream patch: https://gitlab.freedesktop.org/poppler/poppler/-/commit/4ce27cc826bf90cc8dbbd8a8c87bd913cccd7ec0 Signed-off-by: Yogita Urade <yogita.urade@windriver.com> Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/poppler/poppler/CVE-2025-52885.patch30
-rw-r--r--meta-oe/recipes-support/poppler/poppler_22.04.0.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler/CVE-2025-52885.patch b/meta-oe/recipes-support/poppler/poppler/CVE-2025-52885.patch
new file mode 100644
index 0000000000..a48b2c01a6
--- /dev/null
+++ b/meta-oe/recipes-support/poppler/poppler/CVE-2025-52885.patch
@@ -0,0 +1,30 @@
1From 4ce27cc826bf90cc8dbbd8a8c87bd913cccd7ec0 Mon Sep 17 00:00:00 2001
2From: Kevin Backhouse <kevinbackhouse@github.com>
3Date: Wed, 3 Sep 2025 14:36:54 +0100
4Subject: [PATCH] Check for duplicate entries
5
6CVE: CVE-2025-52885
7Upstream-Status: Backport [https://gitlab.freedesktop.org/poppler/poppler/-/commit/4ce27cc826bf90cc8dbbd8a8c87bd913cccd7ec0]
8
9Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
10---
11 poppler/StructTreeRoot.cc | 4 ++++
12 1 file changed, 4 insertions(+)
13
14diff --git a/poppler/StructTreeRoot.cc b/poppler/StructTreeRoot.cc
15index 47adac9..10db9aa 100644
16--- a/poppler/StructTreeRoot.cc
17+++ b/poppler/StructTreeRoot.cc
18@@ -137,6 +137,10 @@ void StructTreeRoot::parseNumberTreeNode(Dict *node)
19 }
20 int keyVal = key.getInt();
21 std::vector<Parent> &vec = parentTree[keyVal];
22+ if (!vec.empty()) {
23+ error(errSyntaxError, -1, "Nums item at position {0:d} is a duplicate entry for key {1:d}", i, keyVal);
24+ continue;
25+ }
26
27 Object valueArray = nums.arrayGet(i + 1);
28 if (valueArray.isArray()) {
29--
302.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 0c4efab918..3861bbbb2b 100644
--- a/meta-oe/recipes-support/poppler/poppler_22.04.0.bb
+++ b/meta-oe/recipes-support/poppler/poppler_22.04.0.bb
@@ -20,6 +20,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
20 file://CVE-2025-52886-0003.patch \ 20 file://CVE-2025-52886-0003.patch \
21 file://CVE-2025-52886-0004.patch \ 21 file://CVE-2025-52886-0004.patch \
22 file://CVE-2025-43718.patch \ 22 file://CVE-2025-43718.patch \
23 file://CVE-2025-52885.patch \
23 " 24 "
24SRC_URI[sha256sum] = "813fb4b90e7bda63df53205c548602bae728887a60f4048aae4dbd9b1927deff" 25SRC_URI[sha256sum] = "813fb4b90e7bda63df53205c548602bae728887a60f4048aae4dbd9b1927deff"
25 26