Patch: Denial of Service — GLSA 201612-12

Patch is vulnerable to a locally generated Denial of Service condition.

Affected Packages

sys-devel/patch on all architectures
Affected versions < 2.7.4
Unaffected versions >= 2.7.4

Background

Patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.

Description

Due to a flaw in Patch, the application can enter an infinite loop when processing a specially crafted diff file.

Impact

A local attacker could pass a specially crafted diff file to Patch, possibly resulting in a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All patch users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=sys-devel/patch-2.7.4"
 

References

Release Date
December 05, 2016

Latest Revision
December 05, 2016: 1

Severity
normal

Exploitable
local

Bugzilla entries