CVE-2026-56288: NULL Pointer Dereference in GNU patch

Published Jul 9, 2026
·
Updated

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

Affected Software

4 affected componentsFixes available
GNU patch
GNU patch<=2.8.0
Microsoft azl3 patch 2.7.6-9<2.7.6-10
2.7.6-10
Microsoft azl3 patch 2.7.6-10<2.7.6-10
2.7.6-10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.7.6-10
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch e6d6a4e021660679d7fc9150f981d4920f722313

Event History

Jul 9, 2026
CVE Published
via MITRE·09:29 AM
Data Sourced
via MITRE·09:29 AM
DescriptionWeakness
Data Sourced
via NVD·11:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 10, 2026
Data Sourced
via Microsoft·08:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:01 AM
Affected Software
Updated
via Microsoft·08:01 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56288?

CVE-2026-56288 has a medium severity rating of 4.6.

2

How do I fix CVE-2026-56288?

To fix CVE-2026-56288, update to the latest version of GNU patch that addresses this vulnerability.

3

What type of vulnerability is CVE-2026-56288?

CVE-2026-56288 is classified as a NULL pointer dereference vulnerability.

4

What can be affected by CVE-2026-56288?

CVE-2026-56288 specifically affects the GNU patch software when processing malformed unified-diff patch files.

5

What are the implications of CVE-2026-56288?

The implications of CVE-2026-56288 include potential application crashes and corruption of internal data structures.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203