Skip to main content
EPSS 0.2%top 94%

GNU patch is vulnerable to a NULL pointer dereference when processing a specially crafted unified-diff patch file. (CVE-2026-56288)

0
Low
Published: 07/09/2026 (07/09/2026, 11:16:00 UTC)
Source: GCVE Database
Product: patch

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

CVSS v3.1

Score 5.5medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

Ubuntu:Pro:14.04:LTSmore threats →ghsa
patch
pkg:deb/ubuntu/[email protected]+esm1?arch=source&distro=esm-infra-legacy/trusty
Affected versions
=2.7.1-3=2.7.1-4=2.7.1-4ubuntu1=2.7.1-4ubuntu2=2.7.1-4ubuntu2.3=2.7.1-4ubuntu2.4=2.7.1-4ubuntu2.4+esm1
Ubuntu:16.04:LTSmore threats →ghsa
patch
pkg:deb/ubuntu/[email protected]?arch=source&distro=xenial
Affected versions
=2.7.5-1=2.7.5-1ubuntu0.16.04.1=2.7.5-1ubuntu0.16.04.2
Ubuntu:18.04:LTSmore threats →ghsa
patch
pkg:deb/ubuntu/[email protected]?arch=source&distro=bionic
Affected versions
=2.7.5-1build1=2.7.6-1=2.7.6-2ubuntu1=2.7.6-2ubuntu1.1
Ubuntu:20.04:LTSmore threats →ghsa
patch
pkg:deb/ubuntu/[email protected]?arch=source&distro=focal
Affected versions
=2.7.6-6
Ubuntu:22.04:LTSmore threats →ghsa
patch
pkg:deb/ubuntu/[email protected]?arch=source&distro=jammy
Affected versions
=2.7.6-7=2.7.6-7build1=2.7.6-7build2
Ubuntu:24.04:LTSmore threats →ghsa
patch
pkg:deb/ubuntu/[email protected]?arch=source&distro=noble
Affected versions
=2.7.6-7build2=2.7.6-7build3
Ubuntu:25.10more threats →ghsa
patch
pkg:deb/ubuntu/[email protected]?arch=source&distro=questing
Affected versions
=2.7.6-7build3=2.8-1=2.8-2
Ubuntu:26.04:LTSmore threats →ghsa
patch
pkg:deb/ubuntu/[email protected]?arch=source&distro=resolute
Affected versions
=2.8-2=2.8-2build1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-56288
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:14.04:LTS","Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS"]
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a58b47468715ace43d8d348

Added to database: 07/16/2026, 10:37:40 UTC

Last enriched: 07/16/2026, 11:48:03 UTC

Last updated: 09/14/2026, 10:01:32 UTC

Views: 28

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses