Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=269045815252211cda35710c9961fe15287321d5
commit 269045815252211cda35710c9961fe15287321d5 Author: kikadf <[email protected]> Date: Wed Jan 28 11:22:54 2015 +0100 elfutils-0.159-2-x86_64 * Fix CVE-2014-9447 * Fix up2date diff --git a/source/lib/elfutils/CVE-2014-9447.patch b/source/lib/elfutils/CVE-2014-9447.patch new file mode 100644 index 0000000..60cf763 --- /dev/null +++ b/source/lib/elfutils/CVE-2014-9447.patch @@ -0,0 +1,39 @@ +From 147018e729e7c22eeabf15b82d26e4bf68a0d18e Mon Sep 17 00:00:00 2001 +From: Alexander Cherepanov <[email protected]> +Date: Sun, 28 Dec 2014 19:57:19 +0300 +Subject: libelf: Fix dir traversal vuln in ar extraction. + +read_long_names terminates names at the first '/' found but then skips +one character without checking (it's supposed to be '\n'). Hence the +next name could start with any character including '/'. This leads to +a directory traversal vulnerability at the time the contents of the +archive is extracted. + +The danger is mitigated by the fact that only one '/' is possible in a +resulting filename and only in the leading position. Hence only files +in the root directory can be written via this vuln and only when ar is +executed as root. + +The fix for the vuln is to not skip any characters while looking +for '/'. + +Signed-off-by: Alexander Cherepanov <[email protected]> + +Origin: upstream, https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=147018e729e7c22eeabf15b82d26e4bf68a0d18e + +Index: elfutils-0.160/libelf/elf_begin.c +=================================================================== +--- elfutils-0.160.orig/libelf/elf_begin.c 2015-01-16 15:25:43.362757594 -0600 ++++ elfutils-0.160/libelf/elf_begin.c 2015-01-16 15:25:43.354757632 -0600 +@@ -736,10 +736,7 @@ read_long_names (Elf *elf) + break; + + /* NUL-terminate the string. */ +- *runp = '\0'; +- +- /* Skip the NUL byte and the \012. */ +- runp += 2; ++ *runp++ = '\0'; + + /* A sanity check. Somebody might have generated invalid + archive. */ diff --git a/source/lib/elfutils/FrugalBuild b/source/lib/elfutils/FrugalBuild index b27914c..52d2c4d 100644 --- a/source/lib/elfutils/FrugalBuild +++ b/source/lib/elfutils/FrugalBuild @@ -1,25 +1,33 @@ # Compiling Time: 0.88 SBU # Maintainer: James Buren <[email protected]> +options+=('asneeded') + pkgname=elfutils pkgver=0.159 -pkgrel=1 +pkgrel=2 pkgdesc="Collection of libraries and utilities for working with ELF object files and DWARF debugging information" url="https://fedorahosted.org/$pkgname" depends=('glibc') groups=('lib') [ "$CARCH" == "arm" ] && groups=(${groups[@]} 'devel-core') # till elf-less gcc is updated on arm archs=('i686' 'x86_64' 'arm') -up2date="Flasttarbz2 https://fedorahosted.org/releases/e/l/$pkgname" +up2date="lynx -dump https://fedorahosted.org/releases/e/l/$pkgname | sed -n 's|.*elfutils/\(.*\)/.*|\1|p' | tail -1" source=(https://fedorahosted.org/releases/e/l/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2) replaces=('libelf') provides=('libelf') conflicts=('libelf') sha1sums=('4ff214cdb95a10b03cf413f3d018393a838f98fc') +# FSA fix *** +source=(${source[@]} CVE-2014-9447.patch) +sha1sums=(${sha1sums[@]} '2368401c30066900770cc3e70d43dfb4a3795df2') +# *********** + + build() { - Fcd + Fpatchall CFLAGS+=" -g" Fmake --program-prefix="eu-" if [ "$CARCH" != ppc -a "$CARCH" != arm ]; then _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
