Bug 1188578

Summary: patch: infinite loop with a crafted diff
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: twaugh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-25 06:00:56 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: 1188583    
Bug Blocks: 1188579    
Attachments:
Description Flags
loop2.patch.gz none

Description Vasyl Kaigorodov 2015-02-03 09:56:43 UTC
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.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776271

Comment 1 Vasyl Kaigorodov 2015-02-03 09:58:36 UTC
Created attachment 987476 [details]
loop2.patch.gz

Comment 2 Vasyl Kaigorodov 2015-02-03 10:00:34 UTC
Added a reroducer, you can run it like this:

  $ patch any.h -i loop2.patch

Comment 3 Vasyl Kaigorodov 2015-02-03 10:02:14 UTC
Created patch tracking bugs for this issue:

Affects: fedora-all [bug 1188583]

Comment 4 Fedora Update System 2015-02-05 05:23:13 UTC
patch-2.7.4-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-04-04 07:20:39 UTC
patch-2.7.5-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.