{"id":"DHI-ahqr-kztb-qxbb-zyue","summary":"GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file…","details":"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","modified":"2026-11-20T19:00:05.839173410Z","published":"2026-11-10T13:39:41Z","upstream":["CVE-2026-56288"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-ahqr-kztb-qxbb-zyue"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56288"},{"type":"ADVISORY","url":"https://cert.pl/en/posts/2026/07/CVE-2026-56288"},{"type":"FIX","url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=e6d6a4e021660679d7fc9150f981d4920f722313"},{"type":"FIX","url":"https://cgit.git.savannah.gnu.org/cgit/patch.git/"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-56288"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-56288"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-56288"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-56288"}],"affected":[{"package":{"name":"patch","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/patch"},"versions":["2.8-r0","2.8-r1","2.8.1-r1","2.8.1-r2"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ahqr-kztb-qxbb-zyue.json"}},{"package":{"name":"patch","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/patch"},"versions":["2.8-2+deb13u0+dhi3","2.8-2+dhi1","2.8-2+dhi2","2.8-2+dhi3","2.8-2dhi0"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ahqr-kztb-qxbb-zyue.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}