Skip to contentSkip to conversation

Add regression test for CVE-2017-16939

PATCH New Michael Moese 2 participants 2 messages Mar 9, 2018 – Mar 13, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add regression test for CVE-2017-16939

Based on the reproducing code from Mohammed Ghannam, published on
https://blogs.securiteam.com/index.php/archives/3535

Warning! If the kernel is vulnerable to this CVE, it will definitely die. So do not run this on a production machine!

---
Changes to v1:
v1 was copied from the original reproducer. This v2 now simplified things, like not using any fork() and only allocating memory in the setup(). In addition, the many small functions were merged into still rather short setup() and run().

---
 runtest/cve                    |  1 +
 testcases/cve/.gitignore       |  1 +
 testcases/cve/cve-2017-16939.c | 89 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 91 insertions(+)
 create mode 100644 testcases/cve/cve-2017-16939.c
runtest/cve +1 -0
index 0c385c670..78799e2ff 100644
@@ -30,3 +30,4 @@ cve-2017-17807 request_key04
 cve-2017-1000364 stack_clash
 cve-2017-5754 meltdown
 cve-2017-17052 cve-2017-17052
+cve-2017-16939 cve-2017-16939
testcases/cve/.gitignore +1 -0
index c878069f1..f813e56ed 100644
@@ -12,3 +12,4 @@ cve-2017-5669
 meltdown
 stack_clash
 cve-2017-17052
+cve-2017-16939
testcases/cve/cve-2017-16939.c new file +89 -0

89 lines not on this page · raw message

Signature · 1 line
2.13.6