exiv2: CVE-2017-18005: Null Pointer Dereference in the Exiv2::DataValue::toLong function

Related Vulnerabilities: CVE-2017-18005  

Debian Bug report logs - #885981
exiv2: CVE-2017-18005: Null Pointer Dereference in the Exiv2::DataValue::toLong function

version graph

Reported by: Salvatore Bonaccorso <carnil@debian.org>

Date: Mon, 1 Jan 2018 09:42:02 UTC

Severity: normal

Tags: fixed-upstream, patch, security, upstream

Found in version exiv2/0.24-1

Forwarded to https://github.com/Exiv2/exiv2/issues/168

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, carnil@debian.org, team@security.debian.org, secure-testing-team@lists.alioth.debian.org, team@security.debian.org, secure-testing-team@lists.alioth.debian.org, Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>:
Bug#885981; Package src:exiv2. (Mon, 01 Jan 2018 09:42:04 GMT) (full text, mbox, link).


Acknowledgement sent to Salvatore Bonaccorso <carnil@debian.org>:
New Bug report received and forwarded. Copy sent to carnil@debian.org, team@security.debian.org, secure-testing-team@lists.alioth.debian.org, team@security.debian.org, secure-testing-team@lists.alioth.debian.org, Debian KDE Extras Team <pkg-kde-extras@lists.alioth.debian.org>. (Mon, 01 Jan 2018 09:42:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Salvatore Bonaccorso <carnil@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: exiv2:CVE-2017-18005: Null Pointer Dereference in the Exiv2::DataValue::toLong function
Date: Mon, 01 Jan 2018 10:38:32 +0100
Source: exiv2
Version: 0.24-1
Severity: normal
Tags: patch security upstream
Forwarded: https://github.com/Exiv2/exiv2/issues/168

Hi,

the following vulnerability was published for exiv2.

CVE-2017-18005[0]:
| Exiv2 0.26 has a Null Pointer Dereference in the
| Exiv2::DataValue::toLong function in value.cpp, related to crafted
| metadata in a TIFF file.

The underlying issue according to [2] is that the code is trying to
pring a value in the if statement:

if (Params::instance().printItems_ & Params::prValue)

when this might not be possible. Fix is done via [2].

If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2017-18005
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-18005
[1] https://github.com/Exiv2/exiv2/issues/168
[2] https://github.com/Exiv2/exiv2/pull/199

Please adjust the affected versions in the BTS as needed, please
double check my assessment for it back to 0.24-1 is done right.
The poc does not trigger, if I'm not completely wrong the affected
code is there.

Regards,
Salvatore



Changed Bug title to 'exiv2: CVE-2017-18005: Null Pointer Dereference in the Exiv2::DataValue::toLong function' from 'exiv2:CVE-2017-18005: Null Pointer Dereference in the Exiv2::DataValue::toLong function'. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Mon, 01 Jan 2018 09:51:08 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Thu, 22 Mar 2018 17:39:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jun 19 14:00:33 2019; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.