libgit2: CVE-2018-10887: integer overflow leads to out-of-bounds read in git_delta_apply, allowing to read before base array

Related Vulnerabilities: CVE-2018-10887  

Debian Bug report logs - #903509
libgit2: CVE-2018-10887: integer overflow leads to out-of-bounds read in git_delta_apply, allowing to read before base array

version graph

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

Date: Tue, 10 Jul 2018 20:09:01 UTC

Severity: important

Tags: security, upstream

Found in version libgit2/0.26.0+dfsg.1-1.2

Fixed in version libgit2/0.27.4+dfsg.1-0.1

Done: Salvatore Bonaccorso <carnil@debian.org>

Bug is archived. No further changes may be made.

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, team@security.debian.org, Russell Sim <russell.sim@gmail.com>:
Bug#903509; Package src:libgit2. (Tue, 10 Jul 2018 20:09: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, team@security.debian.org, Russell Sim <russell.sim@gmail.com>. (Tue, 10 Jul 2018 20:09: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: libgit2: CVE-2018-10887: integer overflow leads to out-of-bounds read in git_delta_apply, allowing to read before base array
Date: Tue, 10 Jul 2018 22:06:10 +0200
Source: libgit2
Version: 0.26.0+dfsg.1-1.2
Severity: important
Tags: security upstream

Hi,

The following vulnerability was published for libgit2.

CVE-2018-10887[0]:
| A flaw was found in libgit2 before version 0.27.3. It has been
| discovered that an unexpected sign extension in git_delta_apply
| function in delta.c file may lead to an integer overflow which in turn
| leads to an out of bound read, allowing to read before the base
| object. An attacker may use this flaw to leak memory addresses or
| cause a Denial of Service.

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-2018-10887
    https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10887
[1] https://github.com/libgit2/libgit2/commit/3f461902dc1072acb8b7607ee65d0a0458ffac2a
[2] https://github.com/libgit2/libgit2/commit/c1577110467b701dcbcf9439ac225ea851b47d22

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore



Marked as fixed in versions libgit2/0.27.4+dfsg.1-0.1. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Sun, 12 Aug 2018 05:39:07 GMT) (full text, mbox, link).


Marked Bug as done Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Sun, 12 Aug 2018 05:39:08 GMT) (full text, mbox, link).


Notification sent to Salvatore Bonaccorso <carnil@debian.org>:
Bug acknowledged by developer. (Sun, 12 Aug 2018 05:39:09 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 10 Sep 2018 07:25:34 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 18:22:59 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.