Description
An issue was discovered in GNU patch before 2.7.6. Out-of-bounds access within pch_write_line() in pch.c can possibly lead to DoS via a crafted input file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | patch | 2.7.6-1 | — |
| Debian 13 | patch | 2.7.6-1 | — |
| Debian 12 | patch | 2.7.6-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | patch | 2.7.5-1ubuntu0.16.04.1 | USN-3624-1 |
| Ubuntu 14.04 LTS | patch | 2.7.1-4ubuntu2.4 | USN-3624-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | patch | 2.7.1-11.el7 | RHSA-2019:2033 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | patch | 2.7.5-8.5.1 | SUSE-SU-2018:1128-1 |
| SLES 11 SP4 | patch | 2.5.9-252.22.7.1 | SUSE-SU-2018:1162-1 |
| SLES 11 SP3 | patch | 2.5.9-252.22.7.1 | SUSE-SU-2018:1162-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | patch | 2.7.5-8.5.1 | SUSE-SU-2018:1128-1 |
| SLES for SAP 11 SP4 | patch | 2.5.9-252.22.7.1 | SUSE-SU-2018:1162-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | patch | 2.5.9-252.22.7.1 | SUSE-SU-2018:1162-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | patch | 2.7.6-3.43 | openSUSE-SU-2024:11151-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.6 | patch | 2.7.5-r3 | — |
| Alpine v3.5 | patch | 2.7.5-r3 | — |
| Alpine v3.4 | patch | 2.7.5-r3 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | patch | 2.7.1-12.amzn2 | ALAS2-2019-1317 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | patch | 2.7.1-11.el7 | ELSA-2019-2033 |
Advisories 7
- RHSA-2019:2033 Red Hat Security Advisory: patch security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-3624-1 patch vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2018:1162-1 Security update for patch SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11151-1 patch-2.7.6-3.43 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1128-1 Security update for patch SUSE / openSUSE Security Updates · May 2, 2025
- ALAS2-2019-1317 Important: patch security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Nov 7, 2019
- ELSA-2019-2033 Low: patch security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 13, 2019
References
- USN-3624-2 vendor-advisory
- USN-3624-1 vendor-advisory
- https://git.savannah.gnu.org/cgit/patch.git/commit/src/pch.c?id=a0d7fe4589651c64bd16ddaaa634030bb0455866
- 103063 vdb-entry
- RHSA-2019:2033 vendor-advisory