<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
	<DocumentTitle xml:lang="en">An update for patch is now available for openEuler-24.03-LTS-SP3,openEuler-24.03-LTS-SP4,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP4,openEuler-24.03-LTS-SP1</DocumentTitle>
	<DocumentType>Security Advisory</DocumentType>
	<DocumentPublisher Type="Vendor">
		<ContactDetails>openeuler-security@openeuler.org</ContactDetails>
		<IssuingAuthority>openEuler security committee</IssuingAuthority>
	</DocumentPublisher>
	<DocumentTracking>
		<Identification>
			<ID>openEuler-SA-2026-3056</ID>
		</Identification>
		<Status>Final</Status>
		<Version>1.0</Version>
		<RevisionHistory>
			<Revision>
				<Number>1.0</Number>
				<Date>2026-07-19</Date>
				<Description>Initial</Description>
			</Revision>
		</RevisionHistory>
		<InitialReleaseDate>2026-07-19</InitialReleaseDate>
		<CurrentReleaseDate>2026-07-19</CurrentReleaseDate>
		<Generator>
			<Engine>openEuler SA Tool V1.0</Engine>
			<Date>2026-07-19</Date>
		</Generator>
	</DocumentTracking>
	<DocumentNotes>
		<Note Title="Synopsis" Type="General" Ordinal="1" xml:lang="en">patch security update</Note>
		<Note Title="Summary" Type="General" Ordinal="2" xml:lang="en">An update for patch is now available for openEuler-24.03-LTS-SP3,openEuler-24.03-LTS-SP4,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP4,openEuler-24.03-LTS-SP1</Note>
		<Note Title="Description" Type="General" Ordinal="3" xml:lang="en">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)</Note>
		<Note Title="Topic" Type="General" Ordinal="4" xml:lang="en">An update for patch is now available for openEuler-24.03-LTS-SP3,openEuler-24.03-LTS-SP4,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP4,openEuler-24.03-LTS-SP1.

openEuler Security has rated this update as having a security impact of medium. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section.</Note>
		<Note Title="Severity" Type="General" Ordinal="5" xml:lang="en">Medium</Note>
		<Note Title="Affected Component" Type="General" Ordinal="6" xml:lang="en">patch</Note>
	</DocumentNotes>
	<DocumentReferences>
		<Reference Type="Self">
			<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-3056</URL>
		</Reference>
		<Reference Type="openEuler CVE">
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2026-56288</URL>
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2026-56289</URL>
		</Reference>
		<Reference Type="Other">
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2026-56288</URL>
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2026-56289</URL>
		</Reference>
	</DocumentReferences>
	<ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
		<Branch Type="Product Name" Name="openEuler">
			<FullProductName ProductID="openEuler-24.03-LTS-SP3" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">openEuler-24.03-LTS-SP3</FullProductName>
			<FullProductName ProductID="openEuler-24.03-LTS-SP4" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">openEuler-24.03-LTS-SP4</FullProductName>
			<FullProductName ProductID="openEuler-20.03-LTS-SP4" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">openEuler-20.03-LTS-SP4</FullProductName>
			<FullProductName ProductID="openEuler-22.03-LTS-SP4" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">openEuler-22.03-LTS-SP4</FullProductName>
			<FullProductName ProductID="openEuler-24.03-LTS-SP1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">openEuler-24.03-LTS-SP1</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="aarch64">
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-2.7.6-23.oe2403sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-debuginfo-2.7.6-23.oe2403sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-debugsource-2.7.6-23.oe2403sp3.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-2.7.6-23.oe2403sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-debuginfo-2.7.6-23.oe2403sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-debugsource-2.7.6-23.oe2403sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-2.7.6-16.oe2003sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-debuginfo-2.7.6-16.oe2003sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-debugsource-2.7.6-16.oe2003sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-2.7.6-16.oe2203sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-debuginfo-2.7.6-16.oe2203sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-debugsource-2.7.6-16.oe2203sp4.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-2.7.6-23.oe2403sp1.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-debuginfo-2.7.6-23.oe2403sp1.aarch64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-debugsource-2.7.6-23.oe2403sp1.aarch64.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="src">
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-2.7.6-23.oe2403sp3.src.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-2.7.6-23.oe2403sp4.src.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-2.7.6-16.oe2003sp4.src.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-2.7.6-16.oe2203sp4.src.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-2.7.6-23.oe2403sp1.src.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="x86_64">
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-2.7.6-23.oe2403sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-debuginfo-2.7.6-23.oe2403sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-debugsource-2.7.6-23.oe2403sp3.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-2.7.6-23.oe2403sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-debuginfo-2.7.6-23.oe2403sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-debugsource-2.7.6-23.oe2403sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-2.7.6-16.oe2003sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-debuginfo-2.7.6-16.oe2003sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-debugsource-2.7.6-16.oe2003sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-2.7.6-16.oe2203sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-debuginfo-2.7.6-16.oe2203sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-debugsource-2.7.6-16.oe2203sp4.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-2.7.6-23.oe2403sp1.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debuginfo-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-debuginfo-2.7.6-23.oe2403sp1.x86_64.rpm</FullProductName>
			<FullProductName ProductID="patch-debugsource-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-debugsource-2.7.6-23.oe2403sp1.x86_64.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="noarch">
			<FullProductName ProductID="patch-help-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">patch-help-2.7.6-23.oe2403sp3.noarch.rpm</FullProductName>
			<FullProductName ProductID="patch-help-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">patch-help-2.7.6-23.oe2403sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="patch-help-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">patch-help-2.7.6-16.oe2003sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="patch-help-2.7.6-16" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">patch-help-2.7.6-16.oe2203sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="patch-help-2.7.6-23" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">patch-help-2.7.6-23.oe2403sp1.noarch.rpm</FullProductName>
		</Branch>
	</ProductTree>
	<Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">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</Note>
		</Notes>
		<ReleaseDate>2026-07-19</ReleaseDate>
		<CVE>CVE-2026-56288</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-24.03-LTS-SP3</ProductID>
				<ProductID>openEuler-24.03-LTS-SP4</ProductID>
				<ProductID>openEuler-20.03-LTS-SP4</ProductID>
				<ProductID>openEuler-22.03-LTS-SP4</ProductID>
				<ProductID>openEuler-24.03-LTS-SP1</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Medium</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>4.6</BaseScore>
				<Vector>AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>patch security update</Description>
				<DATE>2026-07-19</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-3056</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
	<Vulnerability Ordinal="2" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">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</Note>
		</Notes>
		<ReleaseDate>2026-07-19</ReleaseDate>
		<CVE>CVE-2026-56289</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-24.03-LTS-SP3</ProductID>
				<ProductID>openEuler-24.03-LTS-SP4</ProductID>
				<ProductID>openEuler-20.03-LTS-SP4</ProductID>
				<ProductID>openEuler-22.03-LTS-SP4</ProductID>
				<ProductID>openEuler-24.03-LTS-SP1</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Medium</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>4.6</BaseScore>
				<Vector>AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>patch security update</Description>
				<DATE>2026-07-19</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-3056</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
</cvrfdoc>