Skip to main content
CVE-2026-56289VulnerabilityPublished Updated

GNU patch is vulnerable to a denial of service (DoS) due to improper validation of hunk (single block of changes in

Affects patchSource GCVE Database

0
Authoritative record:CVE-2026-56289· Medium 4.6

Not known to be exploited · CVSS 4.6 Medium.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
4.6Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 1% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10patchpkg:deb/ubuntu/patch?arch=source&distro=stonkingOther threatsAffected
  • =2.8-2build1
Fixed in–
Ubuntu 26.04 LTSpatchpkg:deb/ubuntu/patch?arch=source&distro=resoluteOther threatsAffected
  • =2.8-2
  • =2.8-2build1
Fixed in–
Ubuntu 25.10patchpkg:deb/ubuntu/patch?arch=source&distro=questingOther threatsAffected
  • =2.7.6-7build3
  • =2.8-1
  • =2.8-2
Fixed in–
Ubuntu 24.04 LTSpatchpkg:deb/ubuntu/patch?arch=source&distro=nobleOther threatsAffected
  • =2.7.6-7build2
  • =2.7.6-7build3
Fixed in–
Ubuntu 22.04 LTSpatchpkg:deb/ubuntu/patch?arch=source&distro=jammyOther threatsAffected
  • =2.7.6-7
  • =2.7.6-7build1
  • =2.7.6-7build2
Fixed in–
Ubuntu 20.04 LTSpatchpkg:deb/ubuntu/patch?arch=source&distro=focalOther threatsAffected
  • =2.7.6-6
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix for this vulnerability has been implemented in a specific commit. Users should update to the fixed version of GNU patch as indicated by their vendor or distribution. Since the vulnerability is fixed, applying the official patch or upgrading to a fixed release is the recommended mitigation.

Description

GNU patch contains a denial of service (DoS) vulnerability caused by improper validation of hunk line offsets in unified-diff input. A malicious patch file can specify an extremely large line number, causing the utility to enter an effectively infinite processing loop and consume excessive CPU resources, making the process unresponsive. This issue has been fixed in a specific commit.

References

Community reviews

Loading reviews…