Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538658 - <sys-devel/patch-2.7.4: infinite loop with a crafted diff
Summary: <sys-devel/patch-2.7.4: infinite loop with a crafted diff
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
Whiteboard: A3 [glsa]
Depends on:
Reported: 2015-02-03 11:56 UTC by Agostino Sarubbo
Modified: 2016-12-05 01:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2015-02-03 11:56:49 UTC
From ${URL} :

It was reported [1] that when processing a crafted diff patch will loop infinitely, which can lead 
to resourse consumption and local denial of service.


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Yury German Gentoo Infrastructure gentoo-dev 2015-03-16 00:44:29 UTC
Patch introduced by both Debian and RedHat. 

Maintainers, please advise.
Comment 2 Thomas Deutschmann gentoo-dev 2016-12-01 20:31:09 UTC
This is was fixed by upstream in v2.7.4. Tested via;bug=776271;filename=loop2.patch.gz;msg=5

@ Maintainer(s): Please cleanup sys-devel/patch and drop at least =sys-devel/patch-2.7.3.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-12-01 22:00:19 UTC
commit e00febb6b1e65871c8a4147f96338ae2eb0312c5
Author: Lars Wendler <>
Date:   Thu Dec 1 22:59:10 2016

    sys-devel/patch: Security cleanup (bug #538658).

    Package-Manager: portage-2.3.2
Comment 4 Thomas Deutschmann gentoo-dev 2016-12-05 00:13:07 UTC
New GLSA created.
Comment 5 GLSAMaker/CVETool Bot gentoo-dev 2016-12-05 01:18:25 UTC
This issue was resolved and addressed in
 GLSA 201612-12 at
by GLSA coordinator Aaron Bauman (b-man).