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

exploitDog

redhat логотип

CVE-2026-56288

Опубликовано: 09 июл. 2026
Источник: redhat
CVSS3: 5
EPSS Низкий

Описание

GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal hunk (single block of changes in diff) data structures, causing the application to pass a NULL pointer to fwrite() during patch processing. An attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service. This issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313

A flaw was found in GNU patch. An attacker can exploit this by providing a specially crafted patch file, which leads to a NULL pointer dereference. This improper handling of end-of-file markers can corrupt internal data structures, causing the utility to crash. This results in a denial of service (DoS) for the affected system.

Отчет

A denial-of-service vulnerability of moderate severity was found in GNU patch, which is shipped in Red Hat Hardened Images. When patch processes a specially crafted unified-diff patch file, improper handling of consecutive end-of-file newline markers can corrupt internal hunk data structures, causing a NULL pointer to be passed to fwrite() during patch processing and the utility to crash. An attacker who supplies a malicious patch file that a user then applies can trigger this crash, disrupting patch processing on the affected system; the flaw has no impact on confidentiality or integrity, and exploitation requires local processing of an attacker-controlled patch file with user interaction. Red Hat Product Security rated this flaw Moderate impact (CVSS 3.1 score 5.0), slightly lower than the NIST score of 5.5 because applying the crafted patch file requires user interaction. The Red Hat Hardened Images product is affected by this flaw, and a fix is being pursued through the responsible upstream and product channels.

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

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-476
https://bugzilla.redhat.com/show_bug.cgi?id=2498468patch: GNU patch: Denial of Service via specially crafted patch file

EPSS

Процентиль: 2%
0.00115
Низкий

5 Medium

CVSS3

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

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

GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal hunk (single block of changes in diff) data structures, causing the application to pass a NULL pointer to fwrite() during patch processing. An attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service. This issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313

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

GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. Improper handling of consecutive end-of-file newline markers can corrupt internal hunk (single block of changes in diff) data structures, causing the application to pass a NULL pointer to fwrite() during patch processing. An attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service. This issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313

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

NULL Pointer Dereference in GNU patch

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

GNU patch is vulnerable to a NULL pointer dereference when processing ...

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

Уязвимость patch

EPSS

Процентиль: 2%
0.00115
Низкий

5 Medium

CVSS3