diff options
author | Yue Tao <Yue.Tao@windriver.com> | 2014-04-14 13:01:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-29 13:42:10 +0100 |
commit | 6874667333d83960d03f1b30030fe42b747b5972 (patch) | |
tree | 023d9886b71a4925eae45f1becb41d5458321050 /meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch | |
parent | f61238b9431e6470d7e76f8c37c51cebe069514a (diff) | |
download | openembedded-core-contrib-6874667333d83960d03f1b30030fe42b747b5972.tar.gz |
screen: fix for Security Advisory CVE-2009-1215
Race condition in GNU screen 4.0.3 allows local users to create or
overwrite arbitrary files via a symlink attack on the
/tmp/screen-exchange temporary file.
(From OE-Core rev: be8693bf151987f59c9622b8fd8b659ee203cefc)
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>
Conflicts:
meta/recipes-extended/screen/screen_4.0.3.bb
Diffstat (limited to 'meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch')
-rw-r--r-- | meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch b/meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch new file mode 100644 index 0000000000..538a8fa3b2 --- /dev/null +++ b/meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch @@ -0,0 +1,27 @@ +Upstream-Status: Backport + +This patch is a backport from screen_4.0.3-11+lenny1.diff +to fix CVE-2009-1215. + +Signed-off-by: Shenbo Huang<shenbo.huang@windriver.com) +--- + properly by keeping the umask instead of dropping + the 'public exchange file' concept. Modify dpatch 22. + <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521123> +--- + fileio.c | 5 ----- + 1 file changed, 5 deletions(-) +--- a/fileio.c ++++ b/fileio.c +@@ -365,11 +365,6 @@ int dump; + char *mode = "w"; + #ifdef COPY_PASTE + int public = 0; +-# ifdef _MODE_T +- mode_t old_umask; +-# else +- int old_umask; +-# endif + # ifdef HAVE_LSTAT + struct stat stb, stb2; + int fd, exists = 0; |