vendor:
by:
Georgi Guninski
5.5
CVSS
MEDIUM
Integer Overflow
190
CWE
Product Name:
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Platforms Tested: Linux
2004
vc_resize int overflow
This exploit takes advantage of an integer overflow vulnerability in the vc_resize function. By setting specific values for the vv.v_rows and vv.v_cols variables, an overflow occurs on i386 systems, leading to a potential security breach. The exploit uses the open system call to open the /dev/tty device, and then utilizes the ioctl function with the VT_RESIZEX command to trigger the vulnerability. The code also includes a sync system call to ensure that all pending disk writes are completed before the exploit is executed. Finally, a while loop is used to print the ;) character multiple times. This exploit was published on milw0rm.com on December 16, 2004.
Mitigation:
To mitigate this vulnerability, it is recommended to apply patches or updates provided by the vendor. Additionally, restricting access to the vulnerable function or device may also help prevent exploitation.