Affected versions
Ubuntu16.04:LTS/patch
- Affected versions
- * || =2.7.5-1 || =2.7.5-1ubuntu0.16.04.1 || =2.7.5-1ubuntu0.16.04.2
- Fixed version
- Not reported
Ubuntu18.04:LTS/patch
- Affected versions
- * || =2.7.5-1build1 || =2.7.6-1 || =2.7.6-2ubuntu1 || =2.7.6-2ubuntu1.1
- Fixed version
- Not reported
Ubuntu20.04:LTS/patch
- Affected versions
- * || =2.7.6-6
- Fixed version
- Not reported
Ubuntu22.04:LTS/patch
- Affected versions
- * || =2.7.6-7 || =2.7.6-7build1 || =2.7.6-7build2
- Fixed version
- Not reported
Ubuntu24.04:LTS/patch
- Affected versions
- * || =2.7.6-7build2 || =2.7.6-7build3
- Fixed version
- Not reported
Ubuntu25.10/patch
- Affected versions
- * || =2.7.6-7build3 || =2.8-1 || =2.8-2
- Fixed version
- Not reported
Ubuntu26.04:LTS/patch
- Affected versions
- * || =2.8-2 || =2.8-2build1
- Fixed version
- Not reported
Ubuntu26.10/patch
- Affected versions
- * || =2.8-2build1
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/patch
- Affected versions
- * || =2.7.1-3 || =2.7.1-4 || =2.7.1-4ubuntu1 || =2.7.1-4ubuntu2 || =2.7.1-4ubuntu2.3 || =2.7.1-4ubuntu2.4 || =2.7.1-4ubuntu2.4+esm1
- Fixed version
- Not reported
Description
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

