summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-11-22 20:31:23 +0100
committerGyorgy Sarvari <skandigraun@gmail.com>2025-11-30 15:13:57 +0100
commitaa979d9766305670126dfaeb8a634a2ad18b7bca (patch)
tree4ee27174980d3c60c8a39e2350986e1287150949 /meta-oe
parentb91b961b3f89e686b7f9b7f12d1c766164437f39 (diff)
downloadmeta-openembedded-aa979d9766305670126dfaeb8a634a2ad18b7bca.tar.gz
exiv2: patch CVE-2021-29623
Details: https://nvd.nist.gov/vuln/detail/CVE-2021-29623 Pick the patch from the PR mentioned in teh nvd report. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/exiv2/exiv2/CVE-2021-29623.patch29
-rw-r--r--meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb20
2 files changed, 40 insertions, 9 deletions
diff --git a/meta-oe/recipes-support/exiv2/exiv2/CVE-2021-29623.patch b/meta-oe/recipes-support/exiv2/exiv2/CVE-2021-29623.patch
new file mode 100644
index 0000000000..1c61d64e46
--- /dev/null
+++ b/meta-oe/recipes-support/exiv2/exiv2/CVE-2021-29623.patch
@@ -0,0 +1,29 @@
1From 54ff4ef5f5cc82c276a079a66b307e9a6f70908c Mon Sep 17 00:00:00 2001
2From: Kevin Backhouse <kevinbackhouse@github.com>
3Date: Tue, 11 May 2021 12:14:33 +0100
4Subject: [PATCH] Use readOrThrow to check error conditions of iIo.read().
5
6CVE: CVE-2021-29623
7Upstream-Status: Backport [https://github.com/Exiv2/exiv2/commit/82e46b5524fb904e6660dadd2c6d8e5e47375a1a]
8Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
9---
10 src/webpimage.cpp | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/src/webpimage.cpp b/src/webpimage.cpp
14index 6248414..6578937 100644
15--- a/src/webpimage.cpp
16+++ b/src/webpimage.cpp
17@@ -757,9 +757,9 @@ namespace Exiv2 {
18 byte webp[len];
19 byte data[len];
20 byte riff[len];
21- iIo.read(riff, len);
22- iIo.read(data, len);
23- iIo.read(webp, len);
24+ readOrThrow(iIo, riff, len, Exiv2::kerCorruptedMetadata);
25+ readOrThrow(iIo, data, len, Exiv2::kerCorruptedMetadata);
26+ readOrThrow(iIo, webp, len, Exiv2::kerCorruptedMetadata);
27 bool matched_riff = (memcmp(riff, RiffImageId, len) == 0);
28 bool matched_webp = (memcmp(webp, WebPImageId, len) == 0);
29 iIo.seek(-12, BasicIo::cur);
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 b210fa6340..c8c5edbed4 100644
--- a/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb
+++ b/meta-oe/recipes-support/exiv2/exiv2_0.27.3.bb
@@ -4,19 +4,21 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=625f055f41728f84a8d7938acc35bdc2"
4 4
5DEPENDS = "zlib expat" 5DEPENDS = "zlib expat"
6 6
7SRC_URI = "https://github.com/Exiv2/${BPN}/releases/download/v${PV}/${BP}-Source.tar.gz" 7SRC_URI = "https://github.com/Exiv2/${BPN}/releases/download/v${PV}/${BP}-Source.tar.gz \
8 file://0001-Use-compiler-fcf-protection-only-if-compiler-arch-su.patch \
9 file://CVE-2021-29457.patch \
10 file://CVE-2021-29458.patch \
11 file://CVE-2021-29463.patch \
12 file://CVE-2021-29464.patch \
13 file://CVE-2021-29470.patch \
14 file://CVE-2021-29473.patch \
15 file://CVE-2021-3482.patch \
16 file://CVE-2021-29623.patch \
17 "
8SRC_URI[sha256sum] = "a79f5613812aa21755d578a297874fb59a85101e793edc64ec2c6bd994e3e778" 18SRC_URI[sha256sum] = "a79f5613812aa21755d578a297874fb59a85101e793edc64ec2c6bd994e3e778"
9 19
10# Once patch is obsolete (project should be aware due to PRs), dos2unix can be removed either 20# Once patch is obsolete (project should be aware due to PRs), dos2unix can be removed either
11inherit dos2unix 21inherit dos2unix
12SRC_URI += "file://0001-Use-compiler-fcf-protection-only-if-compiler-arch-su.patch \
13 file://CVE-2021-29457.patch \
14 file://CVE-2021-29458.patch \
15 file://CVE-2021-29463.patch \
16 file://CVE-2021-29464.patch \
17 file://CVE-2021-29470.patch \
18 file://CVE-2021-29473.patch \
19 file://CVE-2021-3482.patch"
20 22
21S = "${WORKDIR}/${BPN}-${PV}-Source" 23S = "${WORKDIR}/${BPN}-${PV}-Source"
22 24