diff -Nru lxterminal-0.2.0/debian/changelog lxterminal-0.2.0/debian/changelog --- lxterminal-0.2.0/debian/changelog 2014-10-21 17:18:50.000000000 -0500 +++ lxterminal-0.2.0/debian/changelog 2017-07-11 00:48:57.000000000 -0500 @@ -1,3 +1,11 @@ +lxterminal (0.2.0-1ubuntu0.1) xenial-security; urgency=high + + * SECURITY UPDATE: insecure /tmp use denial of service (LP: #1690416) + - debian/patches/fix-CVE-2016-10369.patch + - CVE-2016-10369 + + -- Simon Quigley Tue, 11 Jul 2017 00:48:57 -0500 + lxterminal (0.2.0-1) unstable; urgency=low * Adding --disable-silent-rules to fix buildlog checker warning. diff -Nru lxterminal-0.2.0/debian/control lxterminal-0.2.0/debian/control --- lxterminal-0.2.0/debian/control 2014-10-21 16:56:19.000000000 -0500 +++ lxterminal-0.2.0/debian/control 2017-07-11 00:48:57.000000000 -0500 @@ -1,7 +1,8 @@ Source: lxterminal Section: x11 Priority: optional -Maintainer: Debian LXDE Maintainers +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian LXDE Maintainers Uploaders: Andrew Lee (李健秋) , Yao Wei (魏銘廷) , diff -Nru lxterminal-0.2.0/debian/patches/fix-CVE-2016-10369.patch lxterminal-0.2.0/debian/patches/fix-CVE-2016-10369.patch --- lxterminal-0.2.0/debian/patches/fix-CVE-2016-10369.patch 1969-12-31 18:00:00.000000000 -0600 +++ lxterminal-0.2.0/debian/patches/fix-CVE-2016-10369.patch 2017-07-11 00:48:57.000000000 -0500 @@ -0,0 +1,22 @@ +Description: use g_get_user_runtime_dir for socket directory + This bug is pointed out by stackexchange user that putting socket file in + /tmp is a potential risk. Putting the socket dir in user directory could + mitigate the risk. + . + This fixes CVE-2016-10369. +Author: Yao Wei +Origin: backport +Applied-Upstream: f99163c6ff8b2f57c5f37b1ce5d62cf7450d4648 +Last-Update: 2017-07-11 +--- a/src/unixsocket.c ++++ b/src/unixsocket.c +@@ -120,7 +120,8 @@ gboolean lxterminal_socket_initialize(LX + * This function returns TRUE if this process should keep running and FALSE if it should exit. */ + + /* Formulate the path for the Unix domain socket. */ +- gchar * socket_path = g_strdup_printf("/tmp/.lxterminal-socket%s-%s", gdk_get_display(), g_get_user_name()); ++ gchar * socket_path = g_strdup_printf("%s/.lxterminal-socket-%s", g_get_user_runtime_dir(), gdk_get_display()); ++ printf("%s\n", socket_path); + + /* Create socket. */ + int fd = socket(PF_UNIX, SOCK_STREAM, 0); diff -Nru lxterminal-0.2.0/debian/patches/series lxterminal-0.2.0/debian/patches/series --- lxterminal-0.2.0/debian/patches/series 2014-10-21 16:56:19.000000000 -0500 +++ lxterminal-0.2.0/debian/patches/series 2017-07-11 00:42:18.000000000 -0500 @@ -0,0 +1 @@ +fix-CVE-2016-10369.patch