
CVE catalog
CVE-2026-56288
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 hun
- Severity
- Medium · CVSS 5
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.11% · Oct 25, 2026
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
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | patch | sid | 2.8.1-1 | vulnerable |
| Debian | patch | forky | 2.8.1-1 | vulnerable |
| Debian | patch | trixie | 2.8-2 | vulnerable |
| Debian | patch | bookworm | 2.7.6-7 | vulnerable |
| Cpe | patch | Not reported | Not reported | vulnerable |
| Suse | patch | linux enterprise module for basesystem 15 sp7 | 2.7.6-150000.5.12.1 | fixed |
| Suse | patch | linux enterprise server 16.0 | 2.7.6-160000.4.1 | fixed |
| Suse | patch | linux enterprise server for sap applications 16.0 | 2.7.6-160000.4.1 | fixed |
| Suse | patch | linux micro 6.2 | 2.7.6-160000.4.1 | fixed |
| Opensuse | patch | leap 16.0 | 2.7.6-160000.4.1 | fixed |
| Opensuse | patch | tumbleweed | 2.8-3.1 | fixed |
| Cpe | patch | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | patch | source | sid | (unfixed) | unimportant | Not reported | Not reported |
| Debian | patch | source | forky | (unfixed) | unimportant | Not reported | Not reported |
| Debian | patch | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | patch | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Suse | patch | rpm | linux enterprise module for basesystem 15 sp7 | 2.7.6-150000.5.12.1 | Not reported | SUSE-SU-2026:3161-1 | Not reported |
| Suse | patch | rpm | linux enterprise server 16.0 | 2.7.6-160000.4.1 | Not reported | SUSE-SU-2026:22651-1 | Not reported |
| Suse | patch | rpm | linux enterprise server for sap applications 16.0 | 2.7.6-160000.4.1 | Not reported | SUSE-SU-2026:22651-1 | Not reported |
| Suse | patch | rpm | linux micro 6.2 | 2.7.6-160000.4.1 | Not reported | SUSE-SU-2026:22604-1 | Not reported |
| Opensuse | patch | rpm | leap 16.0 | 2.7.6-160000.4.1 | Not reported | OPENSUSE-SU-2026:21332-1 | Not reported |
| Opensuse | patch | rpm | tumbleweed | 2.8-3.1 | Not reported | OPENSUSE-SU-2026:11260-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [patch]Affected
Details (2)
2.7.6-7· amd64 · bookwormAffected
nvd · patch · debian · bookworm; nvd · patch · debian · 12
2.7.6-7· arm64 · bookwormAffected
nvd · patch · debian · bookworm; nvd · patch · debian · 12
[Debian 13 (Trixie)]
- [patch]Affected
Details (2)
2.8-2· amd64 · trixieAffected
nvd · patch · debian · 13
2.8-2· arm64 · trixieAffected
nvd · patch · debian · 13
[openSUSE Tumbleweed]
Observed:
References
- [https://cert.pl/en/posts/2026/07/CVE-2026-56288]
- [https://cgit.git.savannah.gnu.org/cgit/patch.git/]
- [https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=e6d6a4e021660679d7fc9150f981d4920f722313]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11260-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-56288]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-56288]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22604-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:22651-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3161-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11260-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:21332-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-56288]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-56288.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2274.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]