Date: Sun, 22 Mar 2015 18:40:54 +0000 (UTC) From: Johan van Selst <johans@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r381946 - in head/archivers/rpm4: . files Message-ID: <201503221840.t2MIesv9045036@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: johans Date: Sun Mar 22 18:40:54 2015 New Revision: 381946 URL: https://svnweb.freebsd.org/changeset/ports/381946 QAT: https://qat.redports.org/buildarchive/r381946/ Log: Add security fix for CVE-2014-8118 PR: 198796 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Obtained from: https://bugzilla.redhat.com/show_bug.cgi?id=1168715 MFH: 2015Q1 Added: head/archivers/rpm4/files/patch-lib_cpio.c (contents, props changed) Modified: head/archivers/rpm4/Makefile Modified: head/archivers/rpm4/Makefile ============================================================================== --- head/archivers/rpm4/Makefile Sun Mar 22 18:39:33 2015 (r381945) +++ head/archivers/rpm4/Makefile Sun Mar 22 18:40:54 2015 (r381946) @@ -3,7 +3,7 @@ PORTNAME= rpm PORTVERSION= 4.12.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= archivers MASTER_SITES= http://rpm.org/releases/rpm-${PORTVERSION:R:R}.x/ \ ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/rpm-${PORTVERSION:E}.x/ Added: head/archivers/rpm4/files/patch-lib_cpio.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/rpm4/files/patch-lib_cpio.c Sun Mar 22 18:40:54 2015 (r381946) @@ -0,0 +1,15 @@ +Fix for CVE-2014-8118 as found at +https://bugzilla.redhat.com/show_bug.cgi?id=1168715 + +--- lib/cpio.c.orig 2015-03-22 19:29:29.000000000 +0100 ++++ lib/cpio.c 2015-03-22 19:29:30.000000000 +0100 +@@ -399,6 +399,9 @@ int rpmcpioHeaderRead(rpmcpio_t cpio, ch + + GET_NUM_FIELD(hdr.filesize, fsize); + GET_NUM_FIELD(hdr.namesize, nameSize); ++ if (nameSize <= 0 || nameSize > 4096) { ++ return RPMERR_BAD_HEADER; ++ } + + char name[nameSize + 1]; + read = Fread(name, nameSize, 1, cpio->fd);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503221840.t2MIesv9045036>