OESA-2026-3056

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2026-3056
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2026-3056.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2026-3056
Upstream
  • CVE-2026-56288
  • CVE-2026-56289
Published
2026-07-19T03:49:18Z
Modified
2026-07-19T04:00:23.557891503Z
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)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS-SP4
patch

Package

Name
patch
Purl
pkg:rpm/openEuler/patch&distro=openEuler-20.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-16.oe2003sp4

Ecosystem specific

{
    "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"
    ],
    "src": [
        "patch-2.7.6-16.oe2003sp4.src.rpm"
    ],
    "noarch": [
        "patch-help-2.7.6-16.oe2003sp4.noarch.rpm"
    ],
    "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"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3056.json"
openEuler:22.03-LTS-SP4
patch

Package

Name
patch
Purl
pkg:rpm/openEuler/patch&distro=openEuler-22.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-16.oe2203sp4

Ecosystem specific

{
    "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"
    ],
    "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"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3056.json"
openEuler:24.03-LTS-SP1
patch

Package

Name
patch
Purl
pkg:rpm/openEuler/patch&distro=openEuler-24.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-23.oe2403sp1

Ecosystem specific

{
    "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"
    ],
    "src": [
        "patch-2.7.6-23.oe2403sp1.src.rpm"
    ],
    "noarch": [
        "patch-help-2.7.6-23.oe2403sp1.noarch.rpm"
    ],
    "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"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3056.json"
openEuler:24.03-LTS-SP3
patch

Package

Name
patch
Purl
pkg:rpm/openEuler/patch&distro=openEuler-24.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-23.oe2403sp3

Ecosystem specific

{
    "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"
    ],
    "src": [
        "patch-2.7.6-23.oe2403sp3.src.rpm"
    ],
    "noarch": [
        "patch-help-2.7.6-23.oe2403sp3.noarch.rpm"
    ],
    "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"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3056.json"
openEuler:24.03-LTS-SP4
patch

Package

Name
patch
Purl
pkg:rpm/openEuler/patch&distro=openEuler-24.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-23.oe2403sp4

Ecosystem specific

{
    "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"
    ],
    "src": [
        "patch-2.7.6-23.oe2403sp4.src.rpm"
    ],
    "noarch": [
        "patch-help-2.7.6-23.oe2403sp4.noarch.rpm"
    ],
    "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"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-3056.json"