Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538426 - sys-devel/patch-2.7.4 version bump, fixes directory traversal (CVE-2015-1196)
Summary: sys-devel/patch-2.7.4 version bump, fixes directory traversal (CVE-2015-1196)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-01 11:57 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-02-03 14:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2015-02-01 11:57:04 UTC
Changes until version 2.7.4:

* When a file isn't being deleted because the file contents don't match the
  patch, the resulting message is now "Not deleting file ... as content
  differs from patch" instead of "File ... is not empty after patch; not
  deleting".
* Function names in hunks (from diff -p) are now preserved in reject files.
* Patch no longer follows symbolic links to input and output files.  This
  ensures that symbolic links created by git-style patches cannot cause
  patch to write outside the working directory (CVE-2015-1196).
* Various fixes.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-02-01 14:14:44 UTC
+*patch-2.7.4 (01 Feb 2015)
+
+  01 Feb 2015; Lars Wendler <polynomial-c@gentoo.org> -patch-2.7.1-r3.ebuild,
+  -patch-2.7.2.ebuild, +patch-2.7.4.ebuild,
+  -files/patch-2.7.1-Fix-removing-empty-directories.patch,
+  -files/patch-2.7.1-dry-run-mode-create-temp-files-in-temp-dir.patch,
+  -files/patch-2.7.1-initialize_data_structures_early_enough.patch,
+  -files/patch-2.7.1-prevent_depend_on_autotools.patch:
+  Version bump (bug #538426). Removed old.
+
Comment 2 Hanno Böck gentoo-dev 2015-02-03 12:18:14 UTC
sorry for the noise, I'm confused here. The changelog posted above indicates that CVE-2015-1196 is fixed in 2.7.4. However CVE-2015-1196 is already handled in #536614 - however there it is indicated this is fixed in 2.7.3.

Seems the upstream NEWS file is not really clear which issue was fixed in which version. Do we need fast-track stabilization of 2.7.4 for security reasons?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-03 14:28:05 UTC
(In reply to Hanno Boeck from comment #2)
> sorry for the noise, I'm confused here. The changelog posted above indicates
> that CVE-2015-1196 is fixed in 2.7.4. However CVE-2015-1196 is already
> handled in #536614 - however there it is indicated this is fixed in 2.7.3.

Yes, that's why I didn't tag this onto the security bug report.

> Seems the upstream NEWS file is not really clear which issue was fixed in
> which version. Do we need fast-track stabilization of 2.7.4 for security
> reasons?

Not if the other bug handles this. We could retroactively fix the NEWS file. :)