Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Linode Kernel Exploits leading to Host Access

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> General Discussion
Author Message
kenny



Joined: 27 Jun 2003
Posts: 66

Posted: Thu Jan 08, 2004 11:08 am    Post subject: Linode Kernel Exploits leading to Host Access  

caker wrote: Kernel 2.4.24-linode19-1um brings us up to date with the latest Linux kernel version (2.4.24 changelog) which contains a local root exploit fix (details here and here), and also brings us up to date with the latest UML patch (2.4.23-1um).
disclaimer: this is a question :)

This is how I understand the linode setup..
host->linode kernel (this process on the host)->your linode.
so it wouldn't be safe to allow modules inserted into a linode's kernel as they would basically be executing code on the host machine..

http://isec.pl/vulnerabilities/isec-0013-mremap.txt says:
Quote: Impact:
=======

Since no special privileges are required to use the mremap(2) system
call any process may misuse its unexpected behavior to disrupt the kernel
memory management subsystem. Proper exploitation of this vulnerability may
lead to local privilege escalation including execution of arbitrary code
with kernel level access. Proof-of-concept exploit code has been created
and successfully tested giving UID 0 shell on vulnerable systems.
If I understand this correctly, this can lead back up to the host machine since it is allows "execution of arbitrary code with kernel level access".. right?

Kenny
Back to top  
Quik



Joined: 17 Sep 2003
Posts: 124

Posted: Thu Jan 08, 2004 11:49 am    Post subject:  

I asked this in a far more simple way in his original thread, but no reply :(

I guess Chris would have realised and patched for such a major thing if it were exploitable.
Back to top  
bji



Joined: 27 Aug 2003
Posts: 182

Posted: Thu Jan 08, 2004 6:33 pm    Post subject:  

Quik wrote: I asked this in a far more simple way in his original thread, but no reply :(

I guess Chris would have realised and patched for such a major thing if it were exploitable.

I think that you are right. If there was a kernel exploit which allowed the execution of arbitrary code in the kernel, then this exploit could be used by a Linode to run arbitrary code as the user that runs the Linode on the host. Given that the same bug (or other bugs, known or unknown) might allow a local user on the host to get root, then this is potentially a vulnerability for the entire Linode host.
Back to top  
kenny



Joined: 27 Jun 2003
Posts: 66

Posted: Fri Jan 09, 2004 1:45 pm    Post subject:  

Quik wrote: I asked this in a far more simple way in his original thread, but no reply :(

I guess Chris would have realised and patched for such a major thing if it were exploitable.
Quik wrote: Do the host machines need to be upgraded to this too?

I thought you were asking about the host machine's kernel. If it works how I think it does, then just having vulnerable linode kernels available is a risk to the host machine... of course it probably doesn't work how I think it does :)

kenny
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2385
Location: Galloway, NJ

Posted: Fri Jan 09, 2004 7:48 pm    Post subject:  

I think there is a good chance that if the UML is vulnerable, that the host would be exposed. I don't believe exploits designed for an i386 kernel would have the desired effect if ran from within UML, but it's not that far off that someone could customize an exploit to de-virtualize the addressing of the UML's memory stack, and modify the exact memory location on the host where it needs it...

I'll be putting a box here locally through some tests and should know more by tomorrow.

On a related topic, I've trimmed the list of available kernels down to ones that aren't vulnerable (with the exception of the djc kernel, which I'll be updating shortly). I also keyed config profiles to point to Latest 2.4 if you were pointing to one of the older kernels.

-Chris
Back to top  
dmuench



Joined: 30 Oct 2003
Posts: 51
Location: Rochester, NY

Posted: Fri Jan 09, 2004 9:19 pm    Post subject:  

Any chance the updated djc kernel will still have freeswan in it? I still _really_ need ipsec.
Back to top  
 
       Linode.com Forum Forum Index -> General Discussion
Page 1 of 1