OESA-2026-3056 (CVE-2026-56288)

Vulnerability from osv_openeuler – Published: 2026-07-19 11:11 – Updated: 2026-08-06 11:11 – Source website
VLAI
Summary
patch security update
Details

Patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.

Security Fix(es):

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(CVE-2026-56288)

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(CVE-2026-56289)


{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "patch-2.7.6-23.oe2403sp3.aarch64.rpm",
          "patch-debuginfo-2.7.6-23.oe2403sp3.aarch64.rpm",
          "patch-debugsource-2.7.6-23.oe2403sp3.aarch64.rpm"
        ],
        "noarch": [
          "patch-help-2.7.6-23.oe2403sp3.noarch.rpm"
        ],
        "src": [
          "patch-2.7.6-23.oe2403sp3.src.rpm"
        ],
        "x86_64": [
          "patch-2.7.6-23.oe2403sp3.x86_64.rpm",
          "patch-debuginfo-2.7.6-23.oe2403sp3.x86_64.rpm",
          "patch-debugsource-2.7.6-23.oe2403sp3.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP3",
        "name": "patch",
        "purl": "pkg:rpm/openEuler/patch\u0026distro=openEuler-24.03-LTS-SP3"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.7.6-23.oe2403sp3"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "patch-2.7.6-23.oe2403sp4.aarch64.rpm",
          "patch-debuginfo-2.7.6-23.oe2403sp4.aarch64.rpm",
          "patch-debugsource-2.7.6-23.oe2403sp4.aarch64.rpm"
        ],
        "noarch": [
          "patch-help-2.7.6-23.oe2403sp4.noarch.rpm"
        ],
        "src": [
          "patch-2.7.6-23.oe2403sp4.src.rpm"
        ],
        "x86_64": [
          "patch-2.7.6-23.oe2403sp4.x86_64.rpm",
          "patch-debuginfo-2.7.6-23.oe2403sp4.x86_64.rpm",
          "patch-debugsource-2.7.6-23.oe2403sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP4",
        "name": "patch",
        "purl": "pkg:rpm/openEuler/patch\u0026distro=openEuler-24.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.7.6-23.oe2403sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "patch-2.7.6-16.oe2003sp4.aarch64.rpm",
          "patch-debuginfo-2.7.6-16.oe2003sp4.aarch64.rpm",
          "patch-debugsource-2.7.6-16.oe2003sp4.aarch64.rpm"
        ],
        "noarch": [
          "patch-help-2.7.6-16.oe2003sp4.noarch.rpm"
        ],
        "src": [
          "patch-2.7.6-16.oe2003sp4.src.rpm"
        ],
        "x86_64": [
          "patch-2.7.6-16.oe2003sp4.x86_64.rpm",
          "patch-debuginfo-2.7.6-16.oe2003sp4.x86_64.rpm",
          "patch-debugsource-2.7.6-16.oe2003sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:20.03-LTS-SP4",
        "name": "patch",
        "purl": "pkg:rpm/openEuler/patch\u0026distro=openEuler-20.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.7.6-16.oe2003sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "patch-2.7.6-16.oe2203sp4.aarch64.rpm",
          "patch-debuginfo-2.7.6-16.oe2203sp4.aarch64.rpm",
          "patch-debugsource-2.7.6-16.oe2203sp4.aarch64.rpm"
        ],
        "noarch": [
          "patch-help-2.7.6-16.oe2203sp4.noarch.rpm"
        ],
        "src": [
          "patch-2.7.6-16.oe2203sp4.src.rpm"
        ],
        "x86_64": [
          "patch-2.7.6-16.oe2203sp4.x86_64.rpm",
          "patch-debuginfo-2.7.6-16.oe2203sp4.x86_64.rpm",
          "patch-debugsource-2.7.6-16.oe2203sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP4",
        "name": "patch",
        "purl": "pkg:rpm/openEuler/patch\u0026distro=openEuler-22.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.7.6-16.oe2203sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "aarch64": [
          "patch-2.7.6-23.oe2403sp1.aarch64.rpm",
          "patch-debuginfo-2.7.6-23.oe2403sp1.aarch64.rpm",
          "patch-debugsource-2.7.6-23.oe2403sp1.aarch64.rpm"
        ],
        "noarch": [
          "patch-help-2.7.6-23.oe2403sp1.noarch.rpm"
        ],
        "src": [
          "patch-2.7.6-23.oe2403sp1.src.rpm"
        ],
        "x86_64": [
          "patch-2.7.6-23.oe2403sp1.x86_64.rpm",
          "patch-debuginfo-2.7.6-23.oe2403sp1.x86_64.rpm",
          "patch-debugsource-2.7.6-23.oe2403sp1.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:24.03-LTS-SP1",
        "name": "patch",
        "purl": "pkg:rpm/openEuler/patch\u0026distro=openEuler-24.03-LTS-SP1"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.7.6-23.oe2403sp1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "Medium"
  },
  "details": "Patch takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions.\r\n\r\nSecurity Fix(es):\n\nGNU 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.\nAn attacker can trigger this condition with a malicious patch file, causing the utility to crash and resulting in a denial of service.\n\n\n\nThis issue has been fixed in the commit e6d6a4e021660679d7fc9150f981d4920f722313(CVE-2026-56288)\n\nGNU 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.\nThis results in excessive CPU consumption and prevents the process from completing.\nAn attacker can trigger this behavior by supplying a malicious patch file, causing the utility to become unresponsive and require manual termination.\n\n\n\nThis issue has been fixed in the commit faba04ef4f2b410257f76c1b9dc85e350929c4b9(CVE-2026-56289)",
  "id": "OESA-2026-3056",
  "modified": "2026-08-06T11:11:56Z",
  "published": "2026-07-19T11:11:56Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-3056"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-56288"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-56289"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "patch security update",
  "upstream": [
    "CVE-2026-56288",
    "CVE-2026-56289"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…