CVE-2026-56288

MEDIUM CVSS 4.0: 4.6 EPSS 0.11%
Updated Oct 25, 2026
Gnu
Parameter Value
CVSS 4.6 (MEDIUM)
Affected Versions before 2.8.0
Type CWE-476 (NULL Pointer Dereference)
Vendor Gnu
Public PoC No

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

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
Low
Partial disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Gnu Patch
cpe:2.3:a:gnu:patch:*:*:*:*:*:*:*:*
— <= 2.8.0