Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[UNIX] IA32 System Call Emulation Vulnerability

Subject: [UNIX] IA32 System Call Emulation Vulnerability
Date: 25 Sep 2007 10:57:53 +0200
The following security advisory is sent to the securiteam mailing list, and can 
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  IA32 System Call Emulation Vulnerability
------------------------------------------------------------------------


SUMMARY

Insufficient validation of general-purpose register in IA32 system call 
emulation code may lead to local system compromise on x86_64 platform.

DETAILS

Vulnerable Systems:
 * Linux 2.6
 * Linux 2.4

On x86_64 platform the Linux kernel supports compatibility emulation for 
IA32 userland applications providing 32-bit system calls amongst other 
32-bit resources.

As a result of arch/x86_64/ia32/ia32entry.S code optimization invalid 
opcodes was used in the low level assembler routines providing 
insufficient validation of %RAX register in the following part of code 
(2.6):

---8<---
sysenter_do_call:
        cmpl    $(IA32_NR_syscalls-1),%eax
        ja      ia32_badsys
        IA32_ARG_FIXUP 1
        call    *ia32_sys_call_table(,%rax,8)
---8<---
cstar_do_call:
        cmpl $IA32_NR_syscalls-1,%eax
        ja  ia32_badsys
        IA32_ARG_FIXUP 1
        call *ia32_sys_call_table(,%rax,8)
---8<---
ia32_do_syscall:
        cmpl $(IA32_NR_syscalls-1),%eax
        ja  ia32_badsys
        IA32_ARG_FIXUP
        call *ia32_sys_call_table(,%rax,8) # xxx: rip relative
---8<---

Improperly validated 64-bit values stored in the %RAX register may lead to 
out-of-bounds system call table access resulting in the ability to execute 
arbitrary code in the context of the Linux kernel.

Impact:
Unprivileged local user may execute arbitrary code in the context of the 
Linux kernel running on x86_64 platform.

Disclosure timeline:
18th September 2007 - Vendor notification
24th September 2007 - Public disclosure


ADDITIONAL INFORMATION

The information has been provided by  <mailto:cliph@research.coseinc.com> 
Wojciech Purczynski.



======================================== 


This bulletin is sent to members of the SecuriTeam mailing list. 
To unsubscribe from the list, send mail with an empty subject line and body to: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
The information in this bulletin is provided "AS IS" without warranty of any 
kind. 
In no event shall we be liable for any damages whatsoever including direct, 
indirect, incidental, consequential, loss of business profits or special 
damages. 




<Prev in Thread] Current Thread [Next in Thread>
  • [UNIX] IA32 System Call Emulation Vulnerability, SecuriTeam <=