CVE-2026-56288
published medium CVSS 4.0 · 4.6NULL Pointer Dereference in GNU patch
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GNU | — | patch0 through 2.8.0 · Other versions: unaffected | Affected | Not stated | CERT-PL |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | patch | Fixed | 2.8.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-12-SP5 | patchx86_64 | Advisory build | 2.7.5-8.14.1 | SUSE-SU-2026:2922-1 |
| Alpine Linux | v3.24 | patch | Fixed | 2.8.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP7 | patchaarch64 | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
| SUSE / openSUSE | SLE-15-SP7 | patchppc64le | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP7 | patchs390x | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
| SUSE / openSUSE | SLE-15-SP7 | patchx86_64 | Advisory build | 2.7.6-150000.5.12.1 | SUSE-SU-2026:3161-1 |
| SUSE / openSUSE | SLE-16 | patchaarch64 | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | SLE-16 | patchppc64le | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | SLE-16 | patchs390x | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | SLE-16 | patchx86_64 | Advisory build | 2.7.6-160000.4.1 | SUSE-SU-2026:22651-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchaarch64 | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchppc64le | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchs390x | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | patchx86_64 | Advisory build | 2.7.6-160000.4.1 | OPENSUSE-SU-2026:21332-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchaarch64 | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchppc64le | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchs390x | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | patchx86_64 | Advisory build | 2.8-3.1 | OPENSUSE-SU-2026:11260-1 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.6 / 10
- Severity
- medium
- Provider
- CERT-PL · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GNU | patch | 0 through 2.8.0 (affected · semver)Default: unaffected | CERT-PL · cna |
Weaknesses
1- CWE-476 CWE-476 NULL Pointer Dereference
References
3Provider assertions
2CERT-PL · cna
NULL Pointer Dereference in GNU patch
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 206ef0773c6c95637bfd6039f65a1b5ac2fa00f3fcf6f094170223317edf9998
- Ingested
- 23 Sep 2026, 09:21:21 UTC
- Source record
- Official CVE record