Module exploits into the host?
Even with the skas patch, is it possible for an insmod to allow an attacker to break out of a UML?
If not, why not?
If so, are there any configurations that are not vulnerable to this?
Signature · 1 line
Robin
Quoted 2 lines · Robin Green
Even with the skas patch, is it possible for an insmod to allow an attacker to break out of a UML?
Yes.
kernel code has full access as the user the kernel runs as, skas or not. This is required for UML to work as the UML kernel needs to access numerous resources on the host to be able to do anything.
If you want to minimize this, run the UML chrooted (and absolutely not as root). The use of process capabilities can also be used to limit the possible damage, or any of the security extensions to Linux.
Regards
Henrik
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
[uml-devel] More security questions (was: Module exploits into the host?)
Quoted 5 lines · Henrik Nordstrom
Quoted 2 lines · Robin Green
Even with the skas patch, is it possible for an insmod to allow an attacker to break out of a UML?
Yes.
OK thanks.
Two more security questions:
1. Has the lcall vulnerability been fixed? By a change in the mainline kernel?
2. I read on some mailing list (not this one) that in tt mode, processes within a UML instance can read and write to each other's memory! Ah, here we are, from last year:
http://www.paul.sladen.org/vserver/archives/200305/0074.html
Is this true, or just a rumour?
I have a security proposal to post next, but first I want to understand the current state of play of UML security.
Signature · 1 line
Robin
Re: [uml-devel] More security questions (was: Module exploits into the host?)
Alle 00:14, giovedì 4 marzo 2004, Robin Green ha scritto:
Quoted 18 lines · Henrik Nordstrom
Quoted 5 lines · Robin Green
Quoted 2 lines
Even with the skas patch, is it possible for an insmod to allow an attacker to break out of a UML?
Yes.
OK thanks.
Two more security questions:
1. Has the lcall vulnerability been fixed? By a change in the mainline kernel?
2. I read on some mailing list (not this one) that in tt mode, processes within a UML instance can read and write to each other's memory! Ah, here we are, from last year:
Quoted 6 lines
http://www.paul.sladen.org/vserver/archives/200305/0074.html
Is this true, or just a rumour?
I have a security proposal to post next, but first I want to understand the current state of play of UML security.
I think it can be true if you do not enable the "jail" mode. At least, in TT mode, without jail mode, any process can read the kernel memory; actually I don't think it can also read the other process memory *directly*, but it is possible if you can read the kernel datas you can get to do this (however not very simply).
Signature · 14 lines
Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&opÌk _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Re: [uml-devel] More security questions (was: Module exploits into the host?)
In reply to Robin GreenQuoted 2 lines · [email protected] said:
1. Has the lcall vulnerability been fixed? By a change in the mainline kernel?
No. It's easy enough to do - I just haven't got around to it yet.
Quoted 3 lines
2. I read on some mailing list (not this one) that in tt mode, processes within a UML instance can read and write to each other's memory!
Yes, they can do that through the UML kernel memory, which is mapped writeable into each process.
This is impossible in skas mode.
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Re: [uml-devel] More security questions (was: Module exploits into the host?)
Quoted 5 lines · Jeff Dike
Quoted 2 lines · [email protected] said:
1. Has the lcall vulnerability been fixed? By a change in the mainline kernel?
No. It's easy enough to do - I just haven't got around to it yet.
OK, thanks. I've summarised the info in this thread, and added some more, on the UML wiki at
http://uml.harlowhill.com/index.php/Security
Please go ahead and make any corrections/additions you think appropriate.
Please could you also add a link to this on the main UML sf site?
Signature · 1 line
Robin
Henrik Nordstrom wrote:
| If you want to minimize this, run the UML chrooted (and absolutely not as | root). The use of process capabilities can also be used to limit the | possible damage, or any of the security extensions to Linux.
Also, don't build module support into the kernel, and edit drivers/char/mem.c to disable writes to /dev/mem and /dev/kmem.
Cameron.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
And disable hostfs on your UML kernel (even if you're not passing a hostfs to the UML instance on its command line). ----- Original Message -----
From: "Cameron Patrick" <[email protected]>
To: <[email protected]>
Sent: Thursday, March 04, 2004 10:36 PM
Subject: Re: [uml-devel] Module exploits into the host?
Quoted 10 lines
Henrik Nordstrom wrote:
| If you want to minimize this, run the UML chrooted (and absolutely not as | root). The use of process capabilities can also be used to limit the | possible damage, or any of the security extensions to Linux.Also, don't build module support into the kernel, and edit
drivers/char/mem.cto disable writes to/dev/memand/dev/kmem.Cameron.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&opÌk
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
[uml-devel] CFP workshop on UML Security (was: Module exploits into the host?)
Sorry for the crosspost, and beeing slightly off-topic (but at last it's related to the thread)
As the CCC (www.ccc.de/muc.ccc.de) is doing the easterheg in Munich/Germany I wanted to ask if any UML-poweruser/-developer is living in/near Munich/Germany and willing to do/help on a UML workshop?
Focussing on the added security by using UML. Part of the workshop should be breaking out of UML.
Unfortuntely I don't have any experience doing so, only the ideas/gotchas presented in this thread.
Please reply offline to: [email protected]
Signature · 15 lines
/"\ Goetz Bock at blacknet dot de -- secure mobile Linux everNETting \ / (c) 2003 as GNU FDL 1.1 X [ 1. Use descriptive subjects - 2. Edit a reply for brevity - ] / \ [ 3. Reply to the list - 4. Read the archive *before* you post ] ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel