Bug 1510455 (CVE-2017-15298)

Summary: CVE-2017-15298 git: Mishandling layers of tree objects
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aileenc, alazarot, amahdal, anstephe, besser82, ccoleman, c.david86, chazlett, chrisw, dedgar, dmcphers, drusso, erridzzi, etirelli, gvarsami, hhorak, ibek, jbowes, jcoleman, jgoulding, jmadigan, jolee, jorton, jshepherd, kconner, kpiwko, kverlaen, ldimaggi, lgriffin, lpetrovi, ngough, nwallace, paradhya, pbraun, pstodulk, pwright, rrajasek, rsynek, rwagner, rzhang, sdaley, tcunning, tkirby, tmz, vhalbert
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:30:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1510457    
Bug Blocks:    

Description Andrej Nemec 2017-11-07 12:55:30 UTC
Git through 2.14.2 mishandles layers of tree objects, which allows remote attackers to cause a denial of service (memory consumption) via a crafted repository, aka a Git bomb. This can also have an impact of disk consumption; however, an affected process typically would not survive its attempt to build the data structure in memory before writing to disk.

External References:

https://kate.io/blog/git-bomb/

References:

https://github.com/Katee/git-bomb

Comment 1 Andrej Nemec 2017-11-07 12:56:48 UTC
Created git tracking bugs for this issue:

Affects: fedora-all [bug 1510457]

Comment 2 Todd Zullinger 2017-11-07 16:48:34 UTC
git <= 2.14.3 is vulnerable here, I believe.  The upstream commit which resolves this is https://git.kernel.org/pub/scm/git/git.git/commit/?id=a937b37e76 (merged yesterday).  I imagine we'll see some maint releases from upstream shortly.  The commit applies cleanly to 2.9.x (which f25 runs).  I didn't look any further back than that.