A privilege escalation flaw in udev
A privilege escalation flaw in udev
Posted Apr 22, 2009 22:40 UTC (Wed) by nix (subscriber, #2304)Parent article: A privilege escalation flaw in udev
nodes outside /dev? (Or, more generally, why isn't a special mount option
required to create device nodes on a filesystem? The ability to create
device nodes absolutely anywhere is a 'feature' of Unix that I've never
seen be of actual use to anyone except attackers.)
This would have fixed the NFS problem, at least, although not the udev
hole (as udev would have created the node in /dev, which would have had
that flag...)
(More evilly still, if you indicate this in the superblock and have it be
set at mkfs time --- also not problematic for your average system with a
tmpfs /dev --- this lets us recycle the now-unused st_rdev field in the
inode for something else. Not a huge saving, true, but it *is* a saving,
and there are a *lot* of inodes on your average system.)
Posted Apr 23, 2009 0:05 UTC (Thu)
by jreiser (subscriber, #11027)
[Link]
Before there was kernel-level virtualization (vmware, xen, kvm, ...) there were partial virtualization environments which needed devices. If you have a machine with trusted users only and/or global protection, then mknod() can be handy for experiments.
Posted Apr 23, 2009 0:39 UTC (Thu)
by dlang (guest, #313)
[Link] (2 responses)
Posted Apr 23, 2009 15:24 UTC (Thu)
by Tet (guest, #5433)
[Link] (1 responses)
Posted Apr 24, 2009 10:37 UTC (Fri)
by nix (subscriber, #2304)
[Link]
(RAID-atop-LVM is not prone to this because you don't get the same excess
Posted Apr 23, 2009 11:52 UTC (Thu)
by etienne_lorrain@yahoo.fr (guest, #38022)
[Link] (1 responses)
How would you ask ioctl like BLKBSZGET, BLKSSZGET, BLKGETSIZE,
There is maybe a better solution (without having to guess the mount
Posted Apr 23, 2009 13:56 UTC (Thu)
by nix (subscriber, #2304)
[Link]
Posted Apr 23, 2009 13:52 UTC (Thu)
by Ross (guest, #4065)
[Link]
I believe that installers also create these files in /tmp if you want another example.
Can anyone think of a reason why mknod() allows *anyone* to create device
nodes outside /dev?
A privilege escalation flaw in udev
A privilege escalation flaw in udev
A privilege escalation flaw in udev
A privilege escalation flaw in udev
get it wrong you get a silent substantial slowdown...
RMW cycles.)
A privilege escalation flaw in udev
> to create device nodes outside /dev?
BLKGETSIZE64, HDIO_GETGEO_BIG, to the file system which contains
a file given as parameter?
As an example:
http://www.mirrorservice.org/sites/download.sourceforge.n...
point *name*) - I am listening...
A privilege escalation flaw in udev
A privilege escalation flaw in udev
under /mnt or wherever. The kernel shouldn't "know" that /dev is special.