diff options
author | Kees Cook <keescook@chromium.org> | 2012-10-19 22:56:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-19 23:07:47 +0200 |
commit | 2702b1526c7278c4d65d78de209a465d4de2885e (patch) | |
tree | a41af3d56a6e37af19bc7ed392f2580750ba86cb /kernel/rcutree_trace.c | |
parent | linux/coredump.h needs asm/siginfo.h (diff) | |
download | linux-2702b1526c7278c4d65d78de209a465d4de2885e.tar.xz linux-2702b1526c7278c4d65d78de209a465d4de2885e.zip |
kernel/sys.c: fix stack memory content leak via UNAME26
Calling uname() with the UNAME26 personality set allows a leak of kernel
stack contents. This fixes it by defensively calculating the length of
copy_to_user() call, making the len argument unsigned, and initializing
the stack buffer to zero (now technically unneeded, but hey, overkill).
CVE-2012-0957
Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: PaX Team <pageexec@freemail.hu>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/rcutree_trace.c')
0 files changed, 0 insertions, 0 deletions