Summary
This update for patch fixes the following issues:
Security issues fixed:
- CVE-2019-13636: Fixed follow symlinks unless --follow-symlinks is given. This increases the security against malicious patches (bsc#1142041).
- CVE-2018-6952: Fixed swapping fakelines in pch_swap. This bug was causing a double free leading to a crash (bsc#1080985).
Bugfixes:
- Abort when cleaning up fails. This bug could cause an infinite loop when a patch wouldn't apply, leading to a segmentation fault (bsc#1111572).
- Pass the correct stat to backup files. This bug would occasionally cause backup files to be missing when all hunks failed to apply (bsc#1198106).
Fixed packages 4
| Release | Package | Fixed in |
|---|---|---|
| openSUSE · Leap 15.3 | patch | 2.7.6-150000.5.3.1 |
| openSUSE · Leap 15.4 | patch | 2.7.6-150000.5.3.1 |
| SUSE · SLES 15 SP3 Linux Enterprise Module for Basesystem 15 SP3 | patch | 2.7.6-150000.5.3.1 |
| SUSE · SLES 15 SP4 Linux Enterprise Module for Basesystem 15 SP4 | patch | 2.7.6-150000.5.3.1 |
Vulnerabilities 2
-
Unscored —
A double free exists in the another_hunk function in pch.c in GNU patch through 2.7.6.
-
Unscored —
In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affec…