From patchwork Sun Sep 1 14:35:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 172720 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp3182835ily; Sun, 1 Sep 2019 07:37:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqww+jvZk14JMaFF5H9I8hTdgni98MbRcjLBVurOEmf80EklSJl1/udt1jg40xsMeOdH/tec X-Received: by 2002:a17:902:169:: with SMTP id 96mr24443978plb.297.1567348658439; Sun, 01 Sep 2019 07:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567348658; cv=none; d=google.com; s=arc-20160816; b=GIZdLxZNgYVPjBlBUtKtrZSXg6YUno8wBPRdUAGrNPo22KejtupRD1zFAX5tNKs5o0 kxruPg5ij2Df4eWPS7oQxrPPhLoI/N+j8W6B0Lx027/uhRt0anN7XF6+WPIs5680/IP8 oYx9p7HqgpZ0se0sUgVvLAETZUChb0zasQ573Rhzf3WniMzkmQD11LKPDH00RN179Kmt UySlgijh3mzvRCMYvjUCwgNKzkzGEuEric/P+JGhD24vWonjyweje/4BRtuX9Pv/IX2+ e22eP5YQmE+Fc6qVwaoNfFhz46si0RR1qb1nd3UlRqBzYl7MT/VCNS5ljDLeitUHsekd lp4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=nKs4YIwZOUIpV8SfjeDKgom8cicln2RO4591jzg9lHg=; b=r01v/J+ucfJeXraOZ1CCzaY4Ni7mXY0oxb3AB+Bj96lpPNO/rDqq35BXR9IqYIfGhz jK5yOgfyEcdR8Fokw36RWww2JtRFSNCAqdRt4khy2jv8MCfsgCfVZO/haRjsqZHFl5hM k6zJWv9juCAvs5sOWlSU49RPwhzCkqNMEwbdcSd2tBkk/Nkh2nT0W0Iv3HRcfJHjjGEs NL+S7+rOH3AJ7bFHc7bWmR/zpRu9JfiTX+F6wMBCCT5/xa3dIGADg7VR8xDm814J13WB AGGxb8bFcQkvY0hBqsPjG6uT9618TsNhW2sdeDqxXak4i4H5k/yfQO9LGvQN7e4Vb/An yifw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=qOoxvYaG; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id c67si11552931pfb.211.2019.09.01.07.37.38; Sun, 01 Sep 2019 07:37:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=qOoxvYaG; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id E091E7F4A4; Sun, 1 Sep 2019 14:36:53 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mail.openembedded.org (Postfix) with ESMTP id 00F107F421 for ; Sun, 1 Sep 2019 14:36:31 +0000 (UTC) Received: by mail-pf1-f182.google.com with SMTP id y9so7380418pfl.4 for ; Sun, 01 Sep 2019 07:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=hnT581ksGjvHz3tiL++Grc54cuBUBtoclFnz+7uX0dY=; b=qOoxvYaGtTxlMHWDSDgGp5bc/NHz1uZ6ZFs8f7O7lU8cHaBU+/zukY/mxNrkE5VDxe og94TeHwkvKdZnkkupt05MM+gapZlnjLDxXuDX/dbvjOrfmKQzH4O7GHOSznGwLSwc+i sPD4udxeaGlxWI+wTEqOea0eDmtdnBpKOznETmCTaf5tzEdQlCkxtELFNa6SknoRQ6la 6ccF4U2H4EJLaJ0qjwk/2NImhr1w9SBb5+Aj2eGqKCCT7goR7xDE5EjFSSzJ2iQh5N2Y oTUUpN/DzNg/RvgDkY7O2OQMRW/YuBJuTbyENAmG0XSUcydNqTsGbitPmBCETYrLrH2z gwMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=hnT581ksGjvHz3tiL++Grc54cuBUBtoclFnz+7uX0dY=; b=aqJCYMcmhBzaMdYxXXsJCa2Vm/YM6qZBbNhgeEd+xmQQFAUQ9i0VoZ7xlCMJRLRvDe teZfK/+HMMTG10DT4PkH32uW5poiiPW0bXh7OJr3g9oumniu92lw5Dv4zekLiwRU9QGk 7evyacIFxQbk5mqTiEFCWl75ua4k8JfRyWokjTzQhOzp50MI0OblTv0pxTcgjuOrYamn IjRkzVXZKDJXIwP8niGvwXVg+KYHm4M8oCDIgdxBh3xBdNOLxSmj2N+9ooX6GLxpQUGN 0ZWSpBQ/4G1zYjAlE4DdxDjVlKl5m6dSPbo7Wkjxgs2EomFpOHDgQB85s2vOdTlDZaXE uiZg== X-Gm-Message-State: APjAAAXMQNgxiXYfLOvpJLmV2AsU5cHK7dddaKhQ7ZxIhzuT8Gv5HhKd y19/KLaZbB1NCjvgM2C9eyIpWL7G X-Received: by 2002:a17:90a:3462:: with SMTP id o89mr3850970pjb.2.1567348592859; Sun, 01 Sep 2019 07:36:32 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:c33:1d53:5246:e59:bfe9]) by smtp.gmail.com with ESMTPSA id s16sm15911381pfs.6.2019.09.01.07.36.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 01 Sep 2019 07:36:32 -0700 (PDT) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Sun, 1 Sep 2019 07:35:46 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [warrior 08/43] tiff: fix CVE-2019-6128 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton (From OE-Core rev: 7293e417dd9bdd04fe0fec177a76c9286234ed46) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- .../libtiff/tiff/CVE-2019-6128.patch | 52 ++++++++++++++++++++++ meta/recipes-multimedia/libtiff/tiff_4.0.10.bb | 2 +- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-multimedia/libtiff/tiff/CVE-2019-6128.patch -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-multimedia/libtiff/tiff/CVE-2019-6128.patch b/meta/recipes-multimedia/libtiff/tiff/CVE-2019-6128.patch new file mode 100644 index 0000000..6f1fd4d --- /dev/null +++ b/meta/recipes-multimedia/libtiff/tiff/CVE-2019-6128.patch @@ -0,0 +1,52 @@ +CVE: CVE-2019-6128 +Upstream-Status: Backport +Signed-off-by: Ross Burton + +From 0c74a9f49b8d7a36b17b54a7428b3526d20f88a8 Mon Sep 17 00:00:00 2001 +From: Scott Gayou +Date: Wed, 23 Jan 2019 15:03:53 -0500 +Subject: [PATCH] Fix for simple memory leak that was assigned CVE-2019-6128. + +pal2rgb failed to free memory on a few errors. This was reported +here: http://bugzilla.maptools.org/show_bug.cgi?id=2836. +--- + tools/pal2rgb.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/tools/pal2rgb.c b/tools/pal2rgb.c +index 01d8502ec..9492f1cf1 100644 +--- a/tools/pal2rgb.c ++++ b/tools/pal2rgb.c +@@ -118,12 +118,14 @@ main(int argc, char* argv[]) + shortv != PHOTOMETRIC_PALETTE) { + fprintf(stderr, "%s: Expecting a palette image.\n", + argv[optind]); ++ (void) TIFFClose(in); + return (-1); + } + if (!TIFFGetField(in, TIFFTAG_COLORMAP, &rmap, &gmap, &bmap)) { + fprintf(stderr, + "%s: No colormap (not a valid palette image).\n", + argv[optind]); ++ (void) TIFFClose(in); + return (-1); + } + bitspersample = 0; +@@ -131,11 +133,14 @@ main(int argc, char* argv[]) + if (bitspersample != 8) { + fprintf(stderr, "%s: Sorry, can only handle 8-bit images.\n", + argv[optind]); ++ (void) TIFFClose(in); + return (-1); + } + out = TIFFOpen(argv[optind+1], "w"); +- if (out == NULL) ++ if (out == NULL) { ++ (void) TIFFClose(in); + return (-2); ++ } + cpTags(in, out); + TIFFGetField(in, TIFFTAG_IMAGEWIDTH, &imagewidth); + TIFFGetField(in, TIFFTAG_IMAGELENGTH, &imagelength); +-- +2.21.0 diff --git a/meta/recipes-multimedia/libtiff/tiff_4.0.10.bb b/meta/recipes-multimedia/libtiff/tiff_4.0.10.bb index 152fa81..a82d744 100644 --- a/meta/recipes-multimedia/libtiff/tiff_4.0.10.bb +++ b/meta/recipes-multimedia/libtiff/tiff_4.0.10.bb @@ -6,8 +6,8 @@ CVE_PRODUCT = "libtiff" SRC_URI = "http://download.osgeo.org/libtiff/tiff-${PV}.tar.gz \ file://libtool2.patch \ + file://CVE-2019-6128.patch" " - SRC_URI[md5sum] = "114192d7ebe537912a2b97408832e7fd" SRC_URI[sha256sum] = "2c52d11ccaf767457db0c46795d9c7d1a8d8f76f68b0b800a3dfe45786b996e4"