---
title: CVE-2026-56289
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2026-56289
---

# CVE-2026-56289

Publication date 9 July 2026

Last updated 16 July 2026

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/CVE-2026-56289#priority-reason )

## Cvss 3 Severity Score

**5.5 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2026-56289#impact-score)

Toggle side navigation

## Description

GNU patch is vulnerable to a denial of service (DoS) due to improper
validation of hunk (single block of changes in diff) line offsets in
unified-diff input. A specially crafted patch can specify an extremely
large line number, causing the application to enter an effectively infinite
processing loop while attempting to locate the requested position.
This results in excessive CPU consumption and prevents the process from
completing.
An attacker can trigger this behavior by supplying a malicious patch file,
causing the utility to become unresponsive and require manual termination.
This issue has been fixed in the commit
faba04ef4f2b410257f76c1b9dc85e350929c4b9

[Read the notes from the security team](https://ubuntu.com/security/CVE-2026-56289#notes)

### Why is this CVE low priority?

Only a DoS in a command line tool

[Learn more about Ubuntu priority](https://ubuntu.com/security/cves/about#priority)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| patch | 26.10 stonking | Vulnerable |
| 26.04 LTS resolute | Vulnerable |
| 25.10 questing | Ignored end of life, was needs-triage |
| 24.04 LTS noble | Vulnerable |
| 22.04 LTS jammy | Vulnerable |
| 20.04 LTS focal | Vulnerable |
| 18.04 LTS bionic | Vulnerable |
| 16.04 LTS xenial | Vulnerable |
| 14.04 LTS trusty | Vulnerable |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2026-56289#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

This is a DoS in a command line tool with little security
impact, marking priority as low

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| patch | * Upstream:   [?id=fab](https://cgit.git.savannah.gnu.org/cgit/patch.git/commit/?id=faba04ef4f2b410257f76c1b9dc85e350929c4b9) |

## Severity score breakdown

CVSS version:

CVSS v4.0

[CVSS v4.0](https://ubuntu.com/security/CVE-2026-56289)
[CVSS v3.0](https://ubuntu.com/security/CVE-2026-56289)

**Base score**

4.6 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | Low |
  | Attack requirements | None |
  | Privileges required | None |
  | User interaction | Active |
  | Vulnerable system - Confidentiality impact | None |
  | Vulnerable system - Integrity impact | None |
  | Vulnerable system - Availability impact | Low |
  | Subsequent system - Confidentiality impact | None |
  | Subsequent system - Integrity impact | None |
  | Subsequent system - Availability impact | Low |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 4.6 · Medium |
  | Base + Threat score | - |
  | Base + Environmental score | - |
  | Base + Threat + Environmental score | - |

**Vector:** 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

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-56289)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-56289)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2026-56289)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2026-56289)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2026-56289>
* <https://cert.pl/en/posts/2026/07/CVE-2026-56288>
