diff -Nru pcmanfm-1.2.0/debian/changelog pcmanfm-1.2.0/debian/changelog --- pcmanfm-1.2.0/debian/changelog 2014-02-25 06:54:22.000000000 -0600 +++ pcmanfm-1.2.0/debian/changelog 2017-08-03 16:55:35.000000000 -0500 @@ -1,3 +1,12 @@ +pcmanfm (1.2.0-1ubuntu0.1) trusty-security; urgency=medium + + * SECURITY UPDATE: Fix potential access violation, use runtime user dir + instead of tmp dir (LP: #1708542) + - fix-CVE-2017-8934.patch + - CVE-2017-8934 + + -- Simon Quigley Thu, 03 Aug 2017 16:55:35 -0500 + pcmanfm (1.2.0-1) unstable; urgency=low * Bump Standards-Version to actual one (fixes lintian warning, see QA page). diff -Nru pcmanfm-1.2.0/debian/control pcmanfm-1.2.0/debian/control --- pcmanfm-1.2.0/debian/control 2014-02-25 06:52:20.000000000 -0600 +++ pcmanfm-1.2.0/debian/control 2017-08-03 16:55:35.000000000 -0500 @@ -1,7 +1,8 @@ Source: pcmanfm Section: utils Priority: optional -Maintainer: Debian LXDE Maintainers +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian LXDE Maintainers Uploaders: Andrew Lee (李健秋) , Andriy Grytsenko Build-Depends: diff -Nru pcmanfm-1.2.0/debian/patches/fix-CVE-2017-8934.patch pcmanfm-1.2.0/debian/patches/fix-CVE-2017-8934.patch --- pcmanfm-1.2.0/debian/patches/fix-CVE-2017-8934.patch 1969-12-31 18:00:00.000000000 -0600 +++ pcmanfm-1.2.0/debian/patches/fix-CVE-2017-8934.patch 2017-08-03 16:55:35.000000000 -0500 @@ -0,0 +1,45 @@ +Description: Fix potential access violation, use runtime user dir instead of tmp dir. + This fixes CVE-2017-8934. +Author: Andriy Grytsenko +Origin: backport +Bug-Ubuntu: https://pad.lv/1708542 +Applied-Upstream: bc8c3d871e9ecc67c47ff002b68cf049793faf08 +Last-Update: 2017-08-03 +--- a/NEWS ++++ b/NEWS +@@ -1,3 +1,7 @@ ++* Fixed potential access violation, use runtime user dir instead of tmp dir ++ for single instance socket. ++ ++ + Changes on 1.2.0 since 1.1.0: + + * Implemented accessibility for the desktop managed by pcmanfm. +--- a/src/single-inst.c ++++ b/src/single-inst.c +@@ -2,7 +2,7 @@ + * single-inst.c: simple IPC mechanism for single instance app + * + * Copyright 2010 Hong Jen Yee (PCMan) +- * Copyright 2012 Andriy Grytsenko (LStranger) ++ * Copyright 2012-2017 Andriy Grytsenko (LStranger) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by +@@ -404,11 +404,16 @@ static void get_socket_name(SingleInstDa + } + else + dpynum = 0; ++#if GLIB_CHECK_VERSION(2, 28, 0) ++ g_snprintf(buf, len, "%s/%s-socket-%s-%d", g_get_user_runtime_dir(), ++ data->prog_name, host ? host : "", dpynum); ++#else + g_snprintf(buf, len, "%s/.%s-socket-%s-%d-%s", + g_get_tmp_dir(), + data->prog_name, + host ? host : "", + dpynum, + g_get_user_name()); ++#endif + } + diff -Nru pcmanfm-1.2.0/debian/patches/series pcmanfm-1.2.0/debian/patches/series --- pcmanfm-1.2.0/debian/patches/series 1969-12-31 18:00:00.000000000 -0600 +++ pcmanfm-1.2.0/debian/patches/series 2017-08-03 16:55:35.000000000 -0500 @@ -0,0 +1 @@ +fix-CVE-2017-8934.patch