Control: tags 852627 + pending Dear maintainer,
I've prepared an NMU for lcms2 (versioned as 2.8-3.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should delay it longer. Regards.
diff -Nru lcms2-2.8/debian/changelog lcms2-2.8/debian/changelog --- lcms2-2.8/debian/changelog 2016-12-18 23:24:18.000000000 +0100 +++ lcms2-2.8/debian/changelog 2017-01-26 21:34:36.000000000 +0100 @@ -1,3 +1,10 @@ +lcms2 (2.8-3.1) unstable; urgency=high + + * Non-maintainer upload. + * Added an extra check to MLU bounds (CVE-2016-10165) (Closes: #852627) + + -- Salvatore Bonaccorso <car...@debian.org> Thu, 26 Jan 2017 21:34:36 +0100 + lcms2 (2.8-3) unstable; urgency=medium * New patch: lcms2-fix-strFrom16-byte-order.patch. diff -Nru lcms2-2.8/debian/patches/Added-an-extra-check-to-MLU-bounds.patch lcms2-2.8/debian/patches/Added-an-extra-check-to-MLU-bounds.patch --- lcms2-2.8/debian/patches/Added-an-extra-check-to-MLU-bounds.patch 1970-01-01 01:00:00.000000000 +0100 +++ lcms2-2.8/debian/patches/Added-an-extra-check-to-MLU-bounds.patch 2017-01-26 21:34:36.000000000 +0100 @@ -0,0 +1,25 @@ +From 5ca71a7bc18b6897ab21d815d15e218e204581e2 Mon Sep 17 00:00:00 2001 +From: Marti <marti.ma...@tktbrainpower.com> +Date: Mon, 15 Aug 2016 23:31:39 +0200 +Subject: [PATCH] Added an extra check to MLU bounds + +Thanks to Ibrahim el-sayed for spotting the bug +--- + src/cmstypes.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/cmstypes.c b/src/cmstypes.c +index cb61860..c7328b9 100644 +--- a/src/cmstypes.c ++++ b/src/cmstypes.c +@@ -1460,6 +1460,7 @@ void *Type_MLU_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU + + // Check for overflow + if (Offset < (SizeOfHeader + 8)) goto Error; ++ if ((Offset + Len) > SizeOfTag + 8) goto Error; + + // True begin of the string + BeginOfThisString = Offset - SizeOfHeader - 8; +-- +2.1.4 + diff -Nru lcms2-2.8/debian/patches/series lcms2-2.8/debian/patches/series --- lcms2-2.8/debian/patches/series 2016-12-18 23:24:18.000000000 +0100 +++ lcms2-2.8/debian/patches/series 2017-01-26 21:34:36.000000000 +0100 @@ -1,3 +1,4 @@ prepare-for-libtoolizing.patch dont-write-uninitialized-memory-for-color-strings.patch lcms2-fix-strFrom16-byte-order.patch +Added-an-extra-check-to-MLU-bounds.patch