{"schema_version":"1.7.2","id":"OESA-2026-3056","modified":"2026-07-19T03:49:18Z","published":"2026-07-19T03:49:18Z","upstream":["CVE-2026-56288","CVE-2026-56289"],"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.\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)","affected":[{"package":{"ecosystem":"openEuler:24.03-LTS-SP3","name":"patch","purl":"pkg:rpm/openEuler/patch&distro=openEuler-24.03-LTS-SP3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-23.oe2403sp3"}]}],"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-SP4","name":"patch","purl":"pkg:rpm/openEuler/patch&distro=openEuler-24.03-LTS-SP4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-23.oe2403sp4"}]}],"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:20.03-LTS-SP4","name":"patch","purl":"pkg:rpm/openEuler/patch&distro=openEuler-20.03-LTS-SP4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-16.oe2003sp4"}]}],"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:22.03-LTS-SP4","name":"patch","purl":"pkg:rpm/openEuler/patch&distro=openEuler-22.03-LTS-SP4"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-16.oe2203sp4"}]}],"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:24.03-LTS-SP1","name":"patch","purl":"pkg:rpm/openEuler/patch&distro=openEuler-24.03-LTS-SP1"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.6-23.oe2403sp1"}]}],"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"]}}],"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"}],"database_specific":{"severity":"Medium"}}
