CVE-2026-56288 NULL Pointer Dereference in GNU patch
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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
Upgrade path
12 packages: 5 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/patch(Debian 12) | = 2.7.6-7; = 2.8-1; = 2.8-2; = 2.8.1-1 +1 more | No fix listed | No fix yet |
| debian/patch(Debian 13) | = 2.8-2; = 2.8.1-1; All versions | No fix listed | No fix yet |
| debian/patch(Debian 14) | = 2.8-2; = 2.8.1-1; All versions | No fix listed | No fix yet |
| ubuntu/patch(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/patch(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/patch(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/patch(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/patch(Alpine v3.24) | < 2.8.1-r0 | 2.8.1-r0 | Fixed |
| azure linux patch(Azure Linux 3.0) | < 2.7.6-10 | 2.7.6-10 | Fixed |
| azure linux patch(Azure Linux 4.0) | < 0:2.8.1-6.azl4 | 0:2.8.1-6.azl4 | Fixed |
| GNU patch | <= 2.8.0 | after 2.8.0 | Fixed |
| redhat/patch-main(Red Hat hummingbird 1) | < 2.8-4.3.hum1 | 2.8-4.3.hum1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| GNU patch | <= 2.8.0 | No fix listed |
| redhat/patch-main(Red Hat:hummingbird:1) | < 2.8-4.3.hum1 | 2.8-4.3.hum1 |
| debian/patch(Debian:12) | All versions | No fix listed |
| debian/patch(Debian:12) | = 2.7.6-7 | No fix listed |
| debian/patch(Debian:12) | = 2.8-1 | No fix listed |
| debian/patch(Debian:12) | = 2.8-2 | No fix listed |
| debian/patch(Debian:12) | = 2.8.1-1 | No fix listed |
| debian/patch(Debian:13) | All versions | No fix listed |
| debian/patch(Debian:13) | = 2.8-2 | No fix listed |
| debian/patch(Debian:13) | = 2.8.1-1 | No fix listed |
| debian/patch(Debian:14) | All versions | No fix listed |
| debian/patch(Debian:14) | = 2.8-2 | No fix listed |
| debian/patch(Debian:14) | = 2.8.1-1 | No fix listed |
| ubuntu/patch(Ubuntu:22.04) | All versions | No fix listed |
| alpine/patch(Alpine:v3.24) | < 2.8.1-r0 | 2.8.1-r0 |
| ubuntu/patch(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/patch(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/patch(Ubuntu:26.10) | All versions | No fix listed |
| azure linux patch(Azure Linux:3.0) | < 2.7.6-10 | 2.7.6-10 |
| azure linux patch(Azure Linux:4.0) | < 0:2.8.1-6.azl4 | 0:2.8.1-6.azl4 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- cert.pl third-party-advisory
- cgit.git.savannah.gnu.org patch product
- cgit.git.savannah.gnu.org patch
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:38019 patch vendor-advisory
- Red Hat Bugzilla 2498468 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-56288 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory