Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-56289

Опубликовано: 09 июл. 2026
Источник: redhat
CVSS3: 5.5

Описание

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

A flaw was found in GNU patch. This vulnerability allows a remote attacker to cause a Denial of Service (DoS) by supplying a specially crafted patch file. The improper validation of hunk (single block of changes in diff) line offsets in unified-diff input can lead to an effectively infinite processing loop, resulting in excessive CPU consumption and making the utility unresponsive, requiring manual termination.

Отчет

A moderate denial of service vulnerability was found in GNU patch, which ships in Red Hat Hardened Images. GNU patch does not properly validate hunk (single block of changes in diff) line offsets in unified-diff input: a specially crafted patch file that declares an extremely large line number causes the utility to enter an effectively infinite processing loop while attempting to locate the requested position, resulting in excessive CPU consumption and leaving the process unresponsive until it is manually terminated. Exploitation requires that a user or automated process apply the attacker-supplied malicious patch file; consequently Red Hat rates this flaw with a local attack vector and required user interaction (CVSS 5.5, CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H), whereas the upstream record characterizes the attacker as remote. Both assessments rate the overall severity as moderate. The Red Hat Hardened Images product is affected, and a fix is being pursued through the delegated resolution process.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-835
https://bugzilla.redhat.com/show_bug.cgi?id=2498462patch: GNU patch: Denial of Service via crafted unified-diff input

5.5 Medium

CVSS3

Связанные уязвимости

CVSS3: 5.5
ubuntu
4 месяца назад

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

CVSS3: 5.5
nvd
4 месяца назад

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

msrc
4 месяца назад

Loop with Unreachable Exit Condition in GNU patch

CVSS3: 5.5
debian
4 месяца назад

GNU patch is vulnerable to a denial of service (DoS) due to improper v ...

CVSS3: 3.6
redos
29 дней назад

Уязвимость patch

5.5 Medium

CVSS3