diff options
author | Yogita Urade <yogita.urade@windriver.com> | 2025-04-17 11:23:52 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2025-05-17 12:19:53 -0600 |
commit | 7c900fa798cfd8cc10c4ed41f7f025fc03b8fbc7 (patch) | |
tree | 2dee5c50bd866348e27cc28eed26297b5d443cb9 | |
parent | bc6cafa570a5b8cc494626b9cb2addba721b196b (diff) | |
download | meta-openembedded-7c900fa798cfd8cc10c4ed41f7f025fc03b8fbc7.tar.gz |
poppler: fix CVE-2025-32364
A floating-point exception in the PSStack::roll function of
Poppler before 25.04.0 can cause an application to crash when
handling malformed inputs associated with INT_MIN.
Reference:
https://nvd.nist.gov/vuln/detail/CVE-2025-32364
Upstream patch:
https://gitlab.freedesktop.org/poppler/poppler/-/commit/d87bc726c7cc98f8c26b60ece5f20236e9de1bc3
Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-support/poppler/poppler/CVE-2025-32364.patch | 28 | ||||
-rw-r--r-- | meta-oe/recipes-support/poppler/poppler_23.04.0.bb | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler/CVE-2025-32364.patch b/meta-oe/recipes-support/poppler/poppler/CVE-2025-32364.patch new file mode 100644 index 0000000000..04af0278ce --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler/CVE-2025-32364.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From d87bc726c7cc98f8c26b60ece5f20236e9de1bc3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Albert Astals Cid <aacid@kde.org> | ||
3 | Date: Mon, 24 Mar 2025 00:44:54 +0100 | ||
4 | Subject: [PATCH] PSStack::roll: Protect against doing int = -INT_MIN | ||
5 | |||
6 | CVE: CVE-2025-32364 | ||
7 | Upstream-Status: Backport [https://gitlab.freedesktop.org/poppler/poppler/-/commit/d87bc726c7cc98f8c26b60ece5f20236e9de1bc3] | ||
8 | |||
9 | Signed-off-by: Yogita Urade <yogita.urade@windriver.com> | ||
10 | --- | ||
11 | poppler/Function.cc | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/poppler/Function.cc b/poppler/Function.cc | ||
15 | index 043ae8e..65888a0 100644 | ||
16 | --- a/poppler/Function.cc | ||
17 | +++ b/poppler/Function.cc | ||
18 | @@ -1066,7 +1066,7 @@ void PSStack::roll(int n, int j) | ||
19 | PSObject obj; | ||
20 | int i, k; | ||
21 | |||
22 | - if (unlikely(n == 0)) { | ||
23 | + if (unlikely(n == 0 || j == INT_MIN)) { | ||
24 | return; | ||
25 | } | ||
26 | if (j >= 0) { | ||
27 | -- | ||
28 | 2.40.0 | ||
diff --git a/meta-oe/recipes-support/poppler/poppler_23.04.0.bb b/meta-oe/recipes-support/poppler/poppler_23.04.0.bb index e76692bbee..e68fe151e9 100644 --- a/meta-oe/recipes-support/poppler/poppler_23.04.0.bb +++ b/meta-oe/recipes-support/poppler/poppler_23.04.0.bb | |||
@@ -12,6 +12,7 @@ SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \ | |||
12 | file://CVE-2024-6239-0001.patch \ | 12 | file://CVE-2024-6239-0001.patch \ |
13 | file://CVE-2024-6239-0002.patch \ | 13 | file://CVE-2024-6239-0002.patch \ |
14 | file://CVE-2024-56378.patch \ | 14 | file://CVE-2024-56378.patch \ |
15 | file://CVE-2025-32364.patch \ | ||
15 | " | 16 | " |
16 | SRC_URI[sha256sum] = "b6d893dc7dcd4138b9e9df59a13c59695e50e80dc5c2cacee0674670693951a1" | 17 | SRC_URI[sha256sum] = "b6d893dc7dcd4138b9e9df59a13c59695e50e80dc5c2cacee0674670693951a1" |
17 | 18 | ||