hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Linux vmsplice Local Root Exploit (2.6.17 - 2.6.24.1) [MERGED]
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Linux vmsplice Local Root Exploit (2.6.17 - 2.6.24.1) [MERGED]

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2008, 06:22 PM
luki luki is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: Los Angeles, CA
Posts: 723

Linux vmsplice Local Root Exploit (2.6.17 - 2.6.24.1) [MERGED]


Get ready for another round of patching and reboots. See: https://bugs.launchpad.net/ubuntu/+s...22/+bug/190587

Linux vmsplice Local Root Exploit
By qaaz
Linux 2.6.17 - 2.6.24.1

Debian also has a report but I'm trying to avoid linking to the source of the exploit. It works on 2.6.24, but only once. Then the box kernel panics (did for me). 2.6.24.1 is out as of couple days ago, but I'm not sure if it's still vulnerable. Seems like it is.


luki@tester:/tmp$ gcc t.c -o t
luki@tester:/tmp$ ./t
-----------------------------------
Linux vmsplice Local Root Exploit
By qaaz
-----------------------------------
[+] mmap: 0x0 .. 0x1000
[+] page: 0x0
[+] page: 0x20
[+] mmap: 0x4000 .. 0x5000
[+] page: 0x4000
[+] page: 0x4020
[+] mmap: 0x1000 .. 0x2000
[+] page: 0x1000
[+] mmap: 0xb7e6f000 .. 0xb7ea1000
[+] root
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

root@tester:/tmp# id
uid=0(root) gid=0(root) groups=0(root)
root@tester:/tmp#

__________________
Pings <1 ms, Unlimited Transfer, Lowest Price: http://localhost/

Reply With Quote


Sponsored Links
  #2  
Old 02-10-2008, 06:39 PM
Sam Robertson Sam Robertson is offline
Aspiring Evangelist
 
Join Date: Jan 2008
Location: United Kingdom
Posts: 408
Thanks for the headsup

**Goes to check servers**

Reply With Quote
  #3  
Old 02-10-2008, 06:50 PM
reposed reposed is offline
New Member
 
Join Date: Feb 2008
Posts: 1
Yes, this is bad.

Check hxxp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464953#14
for info about a temporary solution.

Reply With Quote
Sponsored Links
  #4  
Old 02-10-2008, 07:30 PM
jon-f jon-f is offline
Disabled
 
Join Date: May 2006
Posts: 1,398
dang, working on all centos and grsecurity kernels

Take it back, only a few grsecurity kernels it worked on, not sure the reason


Last edited by jon-f; 02-10-2008 at 07:44 PM.
Reply With Quote
  #5  
Old 02-10-2008, 08:29 PM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
Only 2.6.17+ is vuln.. centos < 5 should be okay (they run 2.6.9 iirc), but centos5 = vuln

Doesn't look like OpenVZ is vulnerable

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


Reply With Quote
  #6  
Old 02-10-2008, 09:17 PM
domainworldaccess domainworldaccess is offline
Web Hosting Guru
 
Join Date: Jul 2007
Location: Dallas, TX
Posts: 320
Confirm centos 5 is vuln

http://bugs.centos.org/view.php?id=2667

Current 4.6 = 2.6.9-67.0.4.ELsmp #1 is not vuln.


From Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=432251

Opened by Mark J. Cox (Security Response Team)on 2008-02-10 08:37 EST[reply] A new system call named vmsplice() was introduced in the 2.6.17release of the Linux kernel. COSEINC reported two issues affecting vmsplice, CVE-2008-0009 and CVE-2008-0010.On Saturday 20080210 a public exploit was released that utilised a similar flawin vmsplice (vmsplice_to_pipe function) to allow a local user to gain privilegeson some architectures. See alsohttp://marc.info/?t=120263655300003&r=1&w=2This issue will affect kernels 2.6.17+ and therefore affected Red Hat EnterpriseLinux 5, but not Red Hat Enterprise Linux 4, 3, or 2.1.

__________________
https://ServersAndHosting.com
Dedicated Servers | Guaranteed Hosting


Last edited by domainworldaccess; 02-10-2008 at 09:25 PM.
Reply With Quote
  #7  
Old 02-10-2008, 09:26 PM
jon-f jon-f is offline
Disabled
 
Join Date: May 2006
Posts: 1,398
ok guys here is a fix Ive ran on a few centos5 servers
http://home.powertech.no/oystein/ptpatch2008/

Just insert that module as per
https://bugzilla.redhat.com/show_bug.cgi?id=432251#c10

Reply With Quote
  #8  
Old 02-10-2008, 09:32 PM
domainworldaccess domainworldaccess is offline
Web Hosting Guru
 
Join Date: Jul 2007
Location: Dallas, TX
Posts: 320
Felosi - can you confirm working patch as suggested in RHN comment 10?

Comment #11 From Seva on 2008-02-10 18:38 EST[reply] Ola,I tried that module on a test system and got: <name> kernel: general protection fault: 0000 [1] SMP

__________________
https://ServersAndHosting.com
Dedicated Servers | Guaranteed Hosting

Reply With Quote
  #9  
Old 02-10-2008, 09:41 PM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
I just loaded that kernel module on half a dozen servers with no problem and verified that it caught any attempts. Thanks for the link felosi!

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


Reply With Quote
  #10  
Old 02-10-2008, 09:43 PM
jon-f jon-f is offline
Disabled
 
Join Date: May 2006
Posts: 1,398
yes patch works!

But the same servers the exploit did not work on which I have no idea why cause same exact kernel.. I think. It would not load the module cause invalid format.

But all machines I tested exploit on and got root, I was able to load the module.

Gonna be a busy night guys

Reply With Quote
  #11  
Old 02-10-2008, 09:48 PM
dysk dysk is offline
WHT Addict
 
Join Date: Jul 2003
Location: Olean, NY
Posts: 143
The module works for me. I'm currently compiling rhel/centos 5 kernels with the upstream patches and they should be ready in the morning. I'll post them when they're done and tested.

Of the machines that the proof of concept doesn't work, by any chance are they 64 bit? 64 bit machines are vulnerable, but the proof of concept that's been floating around has a bug that prevents it from running on 64 bit machines.

I do hyave one 32 bit machine that the exploit doesn't work on. It's got some 3rd party closed source drivers, so I suspect that one of those is interfering with the exploit.

Cheers,
Erek Dyskant
http://erek.blumenthals.com/blog/


Last edited by dysk; 02-10-2008 at 09:59 PM.
Reply With Quote
  #12  
Old 02-11-2008, 01:11 AM
RossH RossH is offline
Away
 
Join Date: Jun 2002
Posts: 5,278
So are we taking bets on how many web hosting companies are going to be hacked by the next week?

Reply With Quote
  #13  
Old 02-11-2008, 01:16 AM
MaB MaB is offline
Web Hosting Master
 
Join Date: Oct 2001
Posts: 1,244
some hostgator servers were hacked (http://forums.hostgator.com/showthread.php?t=27629)

I don't doubt that a bunch of other servers across many companies were hacked as well.

__________________
Avi Brender
Reliable Web Hosting by Elite Hosts, Inc
CPANEL Reseller Hosting - Fantastico - Rvskins - ClientExec


Reply With Quote
  #14  
Old 02-11-2008, 01:28 AM
jon-f jon-f is offline
Disabled
 
Join Date: May 2006
Posts: 1,398
ya its gonna be a real sh**storm

Reply With Quote
  #15  
Old 02-11-2008, 01:59 AM
rfxn rfxn is offline
Junior Guru
 
Join Date: Apr 2002
Location: Canada
Posts: 239
Ok for those of you getting the invalid module format error, make sure you have the specific kernel-devel package installed for your kernel. So if you are running a PAE kernel, be sure that kernel-PAE-devel is installed (all systems will need the valid kernel-devel package for your kernel build installed for successful compilation of the LKM patch).

You may also need to modify the Makefile on your system, just simply point the KPATH value to your kernel headers/source such as:
KPATH = /usr/src/kernels/2.6.18-53.1.6.el5PAE-i686

You should also make sure the system.map being used is in fact the correct one so hard coding the MAPFILE value would not hurt either:

MAPFILE = /boot/System.map-2.6.18-53.1.6.el5PAE

(also a given is if you are using custom kernel versions modify the paths accordingly)

Also just because the pof exploit wont run on x86_64 systems does not mean they are not vulnerable - a few register changes to the exploit will very quickly show that they are in fact vulnerable too.

Finally, be sure you do not forget to set the ptpatch2008 module to load on boot - some may overlook this simple fact and get nailed. I would recommend you load the module through a simple insmod entry to /etc/rc.local to be as uninvasive on upon the system as possible.

__________________
'Make no mistake, the odds are not in your favor -- you have to patch every hole,
but an attacker need find only one to get into your environment.'

R-fx Networks - Linux Software & Blog | http://www.rfxn.com



Last edited by rfxn; 02-11-2008 at 02:02 AM.
Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Researchers Urge System Admins to Check for New Apache Web Server Backdoor Malware Web Hosting News 2013-05-01 11:35:53
Cisco Researcher Discovers Possible Exploit Vector for DarkLeech Attacks Web Hosting News 2013-04-26 10:19:35
SSHD Rootkit in the Wild Blog 2013-02-22 16:44:08
CloudLinux Improves Virtualized File System for Shared Web Hosts Web Hosting News 2012-05-30 15:17:05
Web Host ZNet Offers Multi-Location Hosting at Indian and US Data Centers Web Hosting News 2011-06-09 18:48:56


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?