Logo
vulnerabilityCVE-2026-56289
Name
CVE-2026-56289
Source
NVD ( link)Debian ( link)
Description
GNU patch is vulnerable to a denial of service (DoS) due to improper validation of hunk (single block of changes in diff) line offsets in unified-diff input. A specially crafted patch can specify an extremely large line number, causing the application to enter an effectively infinite processing loop while attempting to locate the requested position. This results in excessive CPU consumption and prevents the process from completing. An attacker can trigger this behavior by supplying a malicious patch file, causing the utility to become unresponsive and require manual termination. This issue has been fixed in the commit faba04ef4f2b410257f76c1b9dc85e350929c4b9
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
patch
Exploitable

Vulnerability Ratings#


4.6
CVSSv4
5.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
2.7.6
Exploitable
buildroot
master
2.7.6
Exploitable
openwrt
openwrt-25.12
2.8-r1
Exploitable
yocto
kirkstone
2.7.6
Exploitable
yocto
master
2.8
Patched
yocto
scarthgap
2.7.6
Exploitable

Resolved with patches#


patch (yocto:master)

#
Title
Author
Resolve
1
=?UTF-8?q?Don=E2=80=99t=20infloop=20on=20null=20ranges?=
Paul Eggert <eggert@cs.ucla.edu>
CVE-2026-56289