summaryrefslogtreecommitdiff
path: root/kernel/Kconfig.hz
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2012-10-19 13:56:51 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-28 10:02:11 -0700
commit58793e9b6ba06d22ce9cf444d190568157c858c9 (patch)
tree35f1f0bf217fdc7e9daa1162654a21be0a87c4fd /kernel/Kconfig.hz
parent7b48126837ed4804b9f6c1807a21d803cc35172d (diff)
downloadlwn-58793e9b6ba06d22ce9cf444d190568157c858c9.tar.gz
lwn-58793e9b6ba06d22ce9cf444d190568157c858c9.zip
kernel/sys.c: fix stack memory content leak via UNAME26
commit 2702b1526c7278c4d65d78de209a465d4de2885e upstream. 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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/Kconfig.hz')
0 files changed, 0 insertions, 0 deletions