Logo
vulnerabilityCVE-2026-56288
Name
CVE-2026-56288
Source
NVD ( link)Debian ( link)
Description
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
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
openwrt
master
2.8-r1
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
Avoid null pointer derefence with bad hunks
Paul Eggert <eggert@cs.ucla.edu>
CVE-2026-56288