Bug 1188578 - patch: infinite loop with a crafted diff
Summary: patch: infinite loop with a crafted diff
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1188583
Blocks: 1188579
TreeView+ depends on / blocked
 
Reported: 2015-02-03 09:56 UTC by Vasyl Kaigorodov
Modified: 2019-09-29 13:27 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-25 06:00:56 UTC
Embargoed:


Attachments (Terms of Use)
loop2.patch.gz (187 bytes, application/gzip)
2015-02-03 09:58 UTC, Vasyl Kaigorodov
no flags Details

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.


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