vendor:
Linux Kernel
by:
Kptr-lib
7.8
CVSS
HIGH
Stack Offset Leak
119
CWE
Product Name: Linux Kernel
Affected Version From: 4.13.0-16-generic
Affected Version To: 4.13.0-16-generic
Patch Exists: Yes
Related CWE: N/A
CPE: o:linux:linux_kernel
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Linux
2018
Linux Kernel Stack Offset Leak Vulnerability
This exploit is related to a vulnerability in the Linux kernel which allows an attacker to leak the kernel stack offset. This vulnerability is caused by a lack of proper validation of user-supplied input when setting the timex structure in the adjtimex() system call. By setting the timex.modes field to 0x8000, an attacker can cause the kernel to leak the kernel stack offset in the timex.tai field. This can be used to calculate the kernel base address, which can then be used to gain arbitrary code execution in the kernel.
Mitigation:
The best way to mitigate this vulnerability is to apply the latest security patches from the vendor.