From owner-svn-ports-head@freebsd.org Wed Jan 25 01:36:44 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E706CBE1F4; Wed, 25 Jan 2017 01:36:44 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 197FB3BB; Wed, 25 Jan 2017 01:36:44 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0P1ah2O032640; Wed, 25 Jan 2017 01:36:43 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0P1ahUl032638; Wed, 25 Jan 2017 01:36:43 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201701250136.v0P1ahUl032638@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Wed, 25 Jan 2017 01:36:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432410 - in head/sysutils/screen: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 01:36:44 -0000 Author: cy Date: Wed Jan 25 01:36:42 2017 New Revision: 432410 URL: https://svnweb.freebsd.org/changeset/ports/432410 Log: Circumvent a trivial root privilege escalation. See: https://lists.gnu.org/archive/html/screen-devel/2017-01/msg00025.html Reported by: Tim Zingelman Security: CVE not assigned yet Modified: head/sysutils/screen/Makefile head/sysutils/screen/files/patch-screen.c Modified: head/sysutils/screen/Makefile ============================================================================== --- head/sysutils/screen/Makefile Wed Jan 25 00:34:08 2017 (r432409) +++ head/sysutils/screen/Makefile Wed Jan 25 01:36:42 2017 (r432410) @@ -3,6 +3,7 @@ PORTNAME= screen PORTVERSION= 4.5.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://ftp.gnu.org/gnu/screen/ \ ftp://ftp.gnu.org/gnu/screen/ \ Modified: head/sysutils/screen/files/patch-screen.c ============================================================================== --- head/sysutils/screen/files/patch-screen.c Wed Jan 25 00:34:08 2017 (r432409) +++ head/sysutils/screen/files/patch-screen.c Wed Jan 25 01:36:42 2017 (r432410) @@ -1,6 +1,21 @@ --- screen.c.orig 2017-01-17 11:28:29.397404660 -0800 -+++ screen.c 2017-01-18 04:54:50.874421000 -0800 -@@ -2222,7 +2222,7 @@ ++++ screen.c 2017-01-24 17:31:24.342944000 -0800 +@@ -674,11 +674,14 @@ + if (strlen(screenlogfile) > PATH_MAX) + Panic(0, "-L: logfile name too long. (max. %d char)", PATH_MAX); + ++#if 0 ++/* see https://lists.gnu.org/archive/html/screen-devel/2017-01/msg00025.html */ + FILE *w_check; + if ((w_check = fopen(screenlogfile, "w")) == NULL) + Panic(0, "-L: logfile name access problem"); + else + fclose(w_check); ++#endif + } + nwin_options.Lflag = 1; + break; +@@ -2222,7 +2225,7 @@ pn2 = pn = p + padlen; r = winmsg_numrend; while (p >= buf) {