Description
GNU patch through 2.7.6 contains a free(p_line[p_end]) Double Free vulnerability in the function another_hunk in pch.c that can cause a denial of service via a crafted patch file. NOTE: this issue exists because of an incomplete fix for CVE-2018-6952.
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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | patch | No fix yet | — |
| Ubuntu 24.04 LTS | patch | No fix yet | — |
| Ubuntu 22.04 LTS | patch | No fix yet | — |
| Ubuntu 20.04 LTS | patch | No fix yet | — |
| Ubuntu 18.04 LTS | patch | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | patch | No fix yet | — |
| Ubuntu Pro 14.04 LTS | patch | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | patch | 2.7.6-150000.5.6.1 | SUSE-SU-2024:2780-1 |
| SLES 15 SP5 | patch | 2.7.6-150000.5.6.1 | SUSE-SU-2024:2780-1 |
| SLES 12 SP5 | patch | 2.7.5-8.11.1 | SUSE-SU-2024:2704-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | patch | 2.7.5-8.11.1 | SUSE-SU-2024:2704-1 |
| SLE Micro 6.0 | patch | 2.7.6-3.1 | SUSE-SU-2025:20075-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | patch | 2.7.6-8.1 | openSUSE-SU-2024:14239-1 |
| openSUSE Leap 15.6 | patch | 2.7.6-150000.5.6.1 | SUSE-SU-2024:2780-1 |
| openSUSE Leap 15.5 | patch | 2.7.6-150000.5.6.1 | SUSE-SU-2024:2780-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | patch | 2.7.6-r7 | — |
| Alpine v3.23 | patch | 2.7.6-r7 | — |
| Alpine v3.22 | patch | 2.7.6-r7 | — |
| Alpine v3.21 | patch | 2.7.6-r7 | — |
| Alpine v3.20 | patch | 2.7.6-r7 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | patch | 2.7.6-r7 | — |
| Alpine v3.18 | patch | 2.7.6-r7 | — |
| Alpine v3.17 | patch | 2.7.6-r7 | — |
| Alpine v3.16 | patch | 2.7.6-r7 | — |
| Alpine v3.15 | patch | 2.7.6-r7 | — |
| Alpine v3.14 | patch | 2.7.6-r7 | — |
| Alpine v3.13 | patch | 2.7.6-r7 | — |
| Alpine v3.12 | patch | 2.7.6-r7 | — |
| Alpine v3.11 | patch | 2.7.6-r7 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | patch | No fix yet | — |
| Azure Linux 2 (CBL-Mariner) | patch | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | patch | 2.7.6-r3 | — |
Advisories 6
- SUSE-SU-2025:20075-1 Security update for patch SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2024:14239-1 patch-2.7.6-8.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2780-1 Security update for patch SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2704-1 Security update for patch SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-0225 Dell PowerProtect Data Domain: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 1, 2025
- VDE-2025-053 Phoenix Contact: Multiple Vulnerabilities in PLCnext Firmware CERT@VDE · Jul 8, 2025