syscalls/accept02: add CVE-2017-8890 test case
PATCH 1/1 syscalls/accept02: add CVE-2017-8890 test case
In Kernels prior to 4.10.15 missing commit 657831ff the multicast group of a socket was copied over to a new socket created using the accept() syscall. This leads to a double free when closing both those sockets.
This can only be checked once a new socket was created which has to be closed eventually. That means that this test case can cause an unstable system if it does not succeed.
Signed-off-by Christian Amann <[email protected]>
--- runtest/syscalls | 2 + testcases/kernel/syscalls/accept/.gitignore | 1 + testcases/kernel/syscalls/accept/Makefile | 2 + testcases/kernel/syscalls/accept/accept02.c | 143 ++++++++++++++++++++++++++++ 4 files changed, 148 insertions(+) create mode 100644 testcases/kernel/syscalls/accept/accept02.c
runtest/syscalls +2 -0
@@ -2,6 +2,8 @@ abort01 abort01 accept01 accept01 +accept02 accept02 + accept4_01 accept4_01 access01 access01
testcases/kernel/syscalls/accept/.gitignore +1 -0
@@ -1 +1,2 @@ /accept01 +/accept02
testcases/kernel/syscalls/accept/Makefile +2 -0
@@ -21,3 +21,5 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk + +accept02: CFLAGS += -pthread
testcases/kernel/syscalls/accept/accept02.c new file +143 -0
143 lines not on this page · raw message
Signature · 1 line
2.16.4
PATCH 1/1 syscalls/accept02: add CVE-2017-8890 test case
Hi!
Pushed, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]