summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorAnkur Tyagi <ankur.tyagi85@gmail.com>2025-10-10 14:25:13 +1300
committerAnuj Mittal <anuj.mittal@intel.com>2025-10-30 14:43:34 +0800
commite9af1614d1d3bd6da0b8128d8cb7d33f74be8797 (patch)
tree99723dbb957ddb90f78c8c9f8c193f0c9ce0db6d /meta-oe
parent7c56524a8d889a6d52ff0062dd534944497a2adc (diff)
downloadmeta-openembedded-e9af1614d1d3bd6da0b8128d8cb7d33f74be8797.tar.gz
libraw: patch CVE-2025-43964
Details https://nvd.nist.gov/vuln/detail/CVE-2025-43964 Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> (cherry picked from commit 95f680e0df1844b259cb07d6668bf381439f784f) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/libraw/libraw/0003-CVE-2025-43964.patch29
-rw-r--r--meta-oe/recipes-support/libraw/libraw_0.21.2.bb1
2 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/libraw/libraw/0003-CVE-2025-43964.patch b/meta-oe/recipes-support/libraw/libraw/0003-CVE-2025-43964.patch
new file mode 100644
index 0000000000..d7d7664da3
--- /dev/null
+++ b/meta-oe/recipes-support/libraw/libraw/0003-CVE-2025-43964.patch
@@ -0,0 +1,29 @@
1From 0ecd9906f70114a974809bb35b4ec9fe7fed9011 Mon Sep 17 00:00:00 2001
2From: Alex Tutubalin <lexa@lexa.ru>
3Date: Sun, 2 Mar 2025 11:35:43 +0300
4Subject: [PATCH] CVE-2025-43964
5
6additional checks in PhaseOne correction tag 0x412 processing
7
8CVE: CVE-2025-43964
9Upstream-Status: Backport [https://github.com/LibRaw/LibRaw/commit/a50dc3f1127d2e37a9b39f57ad9bb2ebb60f18c0]
10
11(cherry picked from commit a50dc3f1127d2e37a9b39f57ad9bb2ebb60f18c0)
12Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
13---
14 src/decoders/load_mfbacks.cpp | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/src/decoders/load_mfbacks.cpp b/src/decoders/load_mfbacks.cpp
18index f89aecce..95015d27 100644
19--- a/src/decoders/load_mfbacks.cpp
20+++ b/src/decoders/load_mfbacks.cpp
21@@ -495,6 +495,8 @@ int LibRaw::phase_one_correct()
22 unsigned w0 = head[1] * head[3], w1 = head[2] * head[4];
23 if (w0 > 10240000 || w1 > 10240000)
24 throw LIBRAW_EXCEPTION_ALLOC;
25+ if (w0 < 1 || w1 < 1)
26+ throw LIBRAW_EXCEPTION_IO_CORRUPT;
27 yval[0] = (float *)calloc(head[1] * head[3] + head[2] * head[4], 6);
28 yval[1] = (float *)(yval[0] + head[1] * head[3]);
29 xval[0] = (ushort *)(yval[1] + head[2] * head[4]);
diff --git a/meta-oe/recipes-support/libraw/libraw_0.21.2.bb b/meta-oe/recipes-support/libraw/libraw_0.21.2.bb
index d4750630e0..1303c0e8ac 100644
--- a/meta-oe/recipes-support/libraw/libraw_0.21.2.bb
+++ b/meta-oe/recipes-support/libraw/libraw_0.21.2.bb
@@ -6,6 +6,7 @@ SRC_URI = " \
6 git://github.com/LibRaw/LibRaw.git;branch=0.21-stable;protocol=https \ 6 git://github.com/LibRaw/LibRaw.git;branch=0.21-stable;protocol=https \
7 file://0001-CVE-2025-43961-CVE-2025-43962.patch \ 7 file://0001-CVE-2025-43961-CVE-2025-43962.patch \
8 file://0002-CVE-2025-43963.patch \ 8 file://0002-CVE-2025-43963.patch \
9 file://0003-CVE-2025-43964.patch \
9" 10"
10SRCREV = "1ef70158d7fde1ced6aaddb0b9443c32a7121d3d" 11SRCREV = "1ef70158d7fde1ced6aaddb0b9443c32a7121d3d"
11S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"