Bug 1594083 (CVE-2018-13348) - CVE-2018-13348 mercurial: Improper length check in mpatch.c
Summary: CVE-2018-13348 mercurial: Improper length check in mpatch.c
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2018-13348
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1594084 1594085
Blocks: 1594086
TreeView+ depends on / blocked
 
Reported: 2018-06-22 04:35 UTC by Sam Fowler
Modified: 2019-09-29 14:42 UTC (History)
7 users (show)

Fixed In Version: mercurial 4.6.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-27 04:51:52 UTC


Attachments (Terms of Use)

Description Sam Fowler 2018-06-22 04:35:41 UTC
Mercurial before version 4.6.1 does not properly check the length of binary patch data.


Upstream Changelog:

https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29


Upstream Patches:

https://www.mercurial-scm.org/repo/hg/rev/90a274965de7

Comment 1 Sam Fowler 2018-06-22 04:36:08 UTC
Created mercurial tracking bugs for this issue:

Affects: fedora-all [bug 1594084]

Comment 3 Doran Moppert 2018-07-27 04:47:36 UTC
In earlier versions of mercurial (inc 2.6.2), the pointer was maintained at the end of the region that would be read, so overflow was not possible.


Note You need to log in before you can comment on or make changes to this bug.