security: Test for uname26 exploit cve-2012-0957
PATCH 1/1 security: Test for uname26 exploit cve-2012-0957
Attempt to exploit the uname kernel memory leak which occurred when the UNAME26 personality was set.
Signed-off-by Richard Palethorpe <[email protected]>
--- testcases/kernel/security/uname/.gitignore | 1 + testcases/kernel/security/uname/Makefile | 20 ++++++ testcases/kernel/security/uname/cve-2012-0957.c | 86 +++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 testcases/kernel/security/uname/.gitignore create mode 100644 testcases/kernel/security/uname/Makefile create mode 100644 testcases/kernel/security/uname/cve-2012-0957.c
testcases/kernel/security/uname/.gitignore new file +1 -0
@@ -0,0 +1 @@ +cve-2012-0957
testcases/kernel/security/uname/Makefile new file +20 -0
@@ -0,0 +1,20 @@ +# Copyright (c) 2017 Linux Test Project +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +top_srcdir ?= ../../../.. + +include $(top_srcdir)/include/mk/testcases.mk +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/security/uname/cve-2012-0957.c new file +86 -0
86 lines not on this page · raw message
Signature · 1 line
2.11.0