p PatchFirst

CVE-2026-56288

CVE-2026-56288 · NULL Pointer Dereference in GNU patch

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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 4.6 · Medium · EPSS 0.1%

Published
Updated

Stack: system

Affected products and versions

  • patch

    Versions
    • ≥ 0, ≤ 2.8.0: Affected (semver)

    No fix published

  • patch Debian:12

    Versions
    • 2.7.6-7
    • 2.8-1
    • 2.8-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Debian:13

    Versions
    • 2.8-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Debian:14

    Versions
    • 2.8-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:Pro:14.04:LTS

    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
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:16.04:LTS

    Versions
    • 2.7.5-1
    • 2.7.5-1ubuntu0.16.04.1
    • 2.7.5-1ubuntu0.16.04.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:18.04:LTS

    Versions
    • 2.7.5-1build1
    • 2.7.6-1
    • 2.7.6-2ubuntu1
    • 2.7.6-2ubuntu1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:20.04:LTS

    Versions
    • 2.7.6-6
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:22.04:LTS

    Versions
    • 2.7.6-7
    • 2.7.6-7build1
    • 2.7.6-7build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:24.04:LTS

    Versions
    • 2.7.6-7build2
    • 2.7.6-7build3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:25.10

    Versions
    • 2.7.6-7build3
    • 2.8-1
    • 2.8-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:26.10

    Versions
    • 2.8-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • patch Ubuntu:26.04:LTS

    Versions
    • 2.8-2
    • 2.8-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →