{"id":"CVE-2026-56288","published":"2026-07-09T09:29:07Z","modified":"2026-07-09T12:57:48Z","title":"NULL Pointer Dereference in GNU patch","vendor":"GNU","product":"patch","tier":"tail","description":{"text":"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.\nAn attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service.\n\n\n\nThis issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00115,"percentile":0.01594,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://cert.pl/en/posts/2026/07/CVE-2026-56288","tags":["third-party-advisory"]},{"url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/","tags":["product"]},{"url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=e6d6a4e021660679d7fc9150f981d4920f722313","tags":["patch"]}],"priority":{"score":3.5,"factors":[{"name":"EPSS percentile","points":0.32},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"gnu","affectedVersions":[{"vendor":"GNU","product":"patch","versions":["<= 2.8.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-09T12:57:28.554596Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-42556","exploited":false,"provenance":"source"}}