mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
tiff: Fix CVE-2025-9165
Upstream-Commit: ed141286a3
(From OE-Core rev: 08823f96a400055e5924bae3af0d2dfaf488148b)
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
4a1254610c
commit
ed56389e82
32
meta/recipes-multimedia/libtiff/tiff/CVE-2025-9165.patch
Normal file
32
meta/recipes-multimedia/libtiff/tiff/CVE-2025-9165.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
From ed141286a37f6e5ddafb5069347ff5d587e7a4e0 Mon Sep 17 00:00:00 2001
|
||||
From: Su_Laus <sulau@freenet.de>
|
||||
Date: Fri, 8 Aug 2025 21:35:30 +0200
|
||||
Subject: [PATCH] tiffcmp: fix memory leak when second file cannot be opened.
|
||||
|
||||
Closes #728, #729
|
||||
|
||||
Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0]
|
||||
CVE: CVE-2025-9165
|
||||
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
||||
---
|
||||
tools/tiffcmp.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/tools/tiffcmp.c b/tools/tiffcmp.c
|
||||
index 2a35fe6..f812c7d 100644
|
||||
--- a/tools/tiffcmp.c
|
||||
+++ b/tools/tiffcmp.c
|
||||
@@ -103,7 +103,10 @@ main(int argc, char* argv[])
|
||||
return (2);
|
||||
tif2 = TIFFOpen(argv[optind+1], "r");
|
||||
if (tif2 == NULL)
|
||||
+ {
|
||||
+ TIFFClose(tif1);
|
||||
return (2);
|
||||
+ }
|
||||
dirnum = 0;
|
||||
while (tiffcmp(tif1, tif2)) {
|
||||
if (!TIFFReadDirectory(tif1)) {
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -64,6 +64,7 @@ SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \
|
||||
file://CVE-2025-8851.patch \
|
||||
file://CVE-2025-9900.patch \
|
||||
file://CVE-2025-8961.patch \
|
||||
file://CVE-2025-9165.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "0e46e5acb087ce7d1ac53cf4f56a09b221537fc86dfc5daaad1c2e89e1b37ac8"
|
||||
|
||||
Reference in New Issue
Block a user