summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-03-11 12:11:53 +0100
committerGyorgy Sarvari <skandigraun@gmail.com>2026-03-11 14:38:28 +0100
commitac5e0e2ba08a7644096013aa30d9d7ca56d84006 (patch)
tree3e2389569b5c2a48a4c0df752088cce40581fe3b
parent47bcf0d9df8be47453e3a95e04e97da19c1885a3 (diff)
downloadmeta-openembedded-ac5e0e2ba08a7644096013aa30d9d7ca56d84006.tar.gz
exiv2: patch CVE-2026-25884
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-25884 Backport the commits referenced by the NVD advisory. Note that the regression tests are not included in this test. The patch contains binary data, which cannot be applied with any of the PATCHTOOLs in do_patch task. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
-rw-r--r--meta-oe/recipes-support/exiv2/exiv2/CVE-2026-25884.patch25
-rw-r--r--meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb1
2 files changed, 26 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/exiv2/exiv2/CVE-2026-25884.patch b/meta-oe/recipes-support/exiv2/exiv2/CVE-2026-25884.patch
new file mode 100644
index 0000000000..624c53f49b
--- /dev/null
+++ b/meta-oe/recipes-support/exiv2/exiv2/CVE-2026-25884.patch
@@ -0,0 +1,25 @@
1From cfbe7e48cbfa63b88b3dcf9d99272330f8349c4f Mon Sep 17 00:00:00 2001
2From: Kevin Backhouse <kevinbackhouse@github.com>
3Date: Sat, 31 Jan 2026 15:31:55 +0000
4Subject: [PATCH] Fix out-of-bounds read.
5
6CVE: CVE-2026-25884
7Upstream-Status: Backport [https://github.com/Exiv2/exiv2/commit/5b8f1f4d92b8f27a5a80e0c3d3eb9dce7620d9f1]
8Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
9---
10 src/crwimage_int.cpp | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/crwimage_int.cpp b/src/crwimage_int.cpp
14index 570de75..8791dbd 100644
15--- a/src/crwimage_int.cpp
16+++ b/src/crwimage_int.cpp
17@@ -812,7 +812,7 @@ namespace Exiv2 {
18 Image& image,
19 ByteOrder /*byteOrder*/)
20 {
21- std::string s(reinterpret_cast<const char*>(ciffComponent.pData()));
22+ auto s = std::string(reinterpret_cast<const char*>(ciffComponent.pData()), ciffComponent.size());
23 image.setComment(s);
24 } // CrwMap::decode0x0805
25
diff --git a/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb b/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb
index 4700173de4..602ef3910f 100644
--- a/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb
+++ b/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb
@@ -32,6 +32,7 @@ SRC_URI = "https://github.com/Exiv2/${BPN}/releases/download/v${PV}/${BP}-Source
32 file://CVE-2021-37621-2.patch \ 32 file://CVE-2021-37621-2.patch \
33 file://CVE-2021-37622-1.patch \ 33 file://CVE-2021-37622-1.patch \
34 file://CVE-2021-37622-2.patch \ 34 file://CVE-2021-37622-2.patch \
35 file://CVE-2026-25884.patch \
35 " 36 "
36SRC_URI[sha256sum] = "a79f5613812aa21755d578a297874fb59a85101e793edc64ec2c6bd994e3e778" 37SRC_URI[sha256sum] = "a79f5613812aa21755d578a297874fb59a85101e793edc64ec2c6bd994e3e778"
37 38