From 09f471bfd03952c617233431d7735f91a6e7f3cf Mon Sep 17 00:00:00 2001 From: Yue Tao Date: Thu, 8 May 2014 18:16:24 +0800 Subject: subversion: fix for Security Advisory CVE-2013-4277 Svnserve in Apache Subversion 1.4.0 through 1.7.12 and 1.8.0 through 1.8.1 allows local users to overwrite arbitrary files or kill arbitrary processes via a symlink attack on the file specified by the --pid-file option. http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-4277 (From OE-Core rev: e0e483c5b2f481240e590ebb7d6189a211450a7e) Signed-off-by: Yue Tao Signed-off-by: Roy Li Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- .../subversion/subversion/subversion-CVE-2013-4277.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch (limited to 'meta/recipes-devtools/subversion/subversion') diff --git a/meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch b/meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch new file mode 100644 index 0000000..21b8ef0 --- /dev/null +++ b/meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch @@ -0,0 +1,15 @@ +Upstream-Status: Backport + +--- a/subversion/svnserve/main.c ++++ b/subversion/svnserve/main.c +@@ -403,8 +403,9 @@ static svn_error_t *write_pid_file(const + const char *contents = apr_psprintf(pool, "%" APR_PID_T_FMT "\n", + getpid()); + ++ SVN_ERR(svn_io_remove_file(filename, pool)); + SVN_ERR(svn_io_file_open(&file, filename, +- APR_WRITE | APR_CREATE | APR_TRUNCATE, ++ APR_WRITE | APR_CREATE | APR_EXCL, + APR_OS_DEFAULT, pool)); + SVN_ERR(svn_io_file_write_full(file, contents, strlen(contents), NULL, + pool)); -- cgit v1.1