diff options
author | Yue Tao <Yue.Tao@windriver.com> | 2014-05-08 18:16:24 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-21 09:09:00 +0100 |
commit | 09f471bfd03952c617233431d7735f91a6e7f3cf (patch) | |
tree | 6cdfbb00ee284e712fec5408451927e6e8347fca /meta/recipes-devtools/subversion/subversion | |
parent | ab6c3223a69dcb40e4c4f53c6a11d4cc9bce83c1 (diff) | |
download | poky-09f471bfd03952c617233431d7735f91a6e7f3cf.tar.gz |
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 <Yue.Tao@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/subversion/subversion')
-rw-r--r-- | meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch | 15 |
1 files changed, 15 insertions, 0 deletions
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 0000000000..21b8ef0c3b --- /dev/null +++ b/meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | Upstream-Status: Backport | ||
2 | |||
3 | --- a/subversion/svnserve/main.c | ||
4 | +++ b/subversion/svnserve/main.c | ||
5 | @@ -403,8 +403,9 @@ static svn_error_t *write_pid_file(const | ||
6 | const char *contents = apr_psprintf(pool, "%" APR_PID_T_FMT "\n", | ||
7 | getpid()); | ||
8 | |||
9 | + SVN_ERR(svn_io_remove_file(filename, pool)); | ||
10 | SVN_ERR(svn_io_file_open(&file, filename, | ||
11 | - APR_WRITE | APR_CREATE | APR_TRUNCATE, | ||
12 | + APR_WRITE | APR_CREATE | APR_EXCL, | ||
13 | APR_OS_DEFAULT, pool)); | ||
14 | SVN_ERR(svn_io_file_write_full(file, contents, strlen(contents), NULL, | ||
15 | pool)); | ||