Slashdot Log In
Linux Kernel 2.6 Local Root Exploit
Posted by
kdawson
on Sunday February 10, @03:23PM
from the batten-the-hatches dept.
from the batten-the-hatches dept.
aquatix writes "This local root exploit (Debian, Ubuntu) seems to work everywhere I try it, as long as it's a Linux kernel version 2.6.17 to 2.6.24.1. If you don't trust your users (which you shouldn't), better compile a new kernel without vmsplice." Here is millw0rm's proof-of-concept code.
Related Stories
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading ... Please wait.

Beauty of OSS (Score:5, Insightful)
On the other hand though this is the beauty of open source. The problem is now known so I'm sure a fix is already on the way.
Re:Beauty of OSS (Score:5, Interesting)
.
Note: The above assumes that the kernel compiles, which may not always go as smoothly or be as you'd like. That doesn't change the fact that it is theoretically possible, though.
Re:Beauty of OSS (Score:5, Insightful)
Re:Beauty of OSS (Score:5, Interesting)
Re:Beauty of OSS (Score:5, Informative)
Or already here...
This appeared to work... [gmane.org]
Re:Beauty of OSS (Score:5, Informative)
nobody$
[..]
[+] mmap: 0xb7f29000
[+] root
root# ^D
nobody$
[..]
Exploit gone!
nobody$
[+] mmap: 0xb7f34000
[-] vmsplice
nobody$ no root for me anymore!
By Morten Hustveit:
"a modification of the exploit that finds the address of sys_vmsplice in the
kernel (using
(using mmap of
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464953#14 [debian.org]
The sound you hear... (Score:5, Funny)
jessica_biel_naked_in_my_bed.c ? (Score:5, Funny)
Re:jessica_biel_naked_in_my_bed.c ? (Score:5, Funny)
You need to include justin_timberlake.h and link it with the millionaires library.
Re:jessica_biel_naked_in_my_bed.c ? (Score:5, Funny)
Thank God (Score:5, Funny)
Re:Thank God (Score:5, Funny)
Re:Thank God (Score:5, Funny)
I know what you mean. It's nice not having to freak out periodically like this since you live in a constant state of panic anyway.
Before the inevitable occurs: (Score:5, Insightful)
The difference is that we know about this hole, and can now fix it - I'm just going to bed, and it will no doubt be fixed by the time I wake up. How many Windows security issues are known that haven't been fixed?
"Oh man, this is why Linux is great! We can find holes, and fix them, like, immediately!"
Yes, that's a strength of Linux. What I want to know is, what steps will be taken to ensure that bugs of this type - whatever they might be - don't crop up again? One advantage that a large paid organization can have is strict testing requirements - I'm honestly not sure if I believe the Linux kernel is held to the strong standards that a commercial kernel theoretically could be.
The existence of this bug is a failure on Linux's part. There's no way to get around that. Many mistakes were made, from the original code or design decision that caused this bug all the way up to it not being found until now. The bug will be fixed rapidly - but the process that let this bug be released needs to be looked at, casually at the very least, to figure out if there's a way to stop this class of error from ever happening again. (Whatever class of error it ends up being - I don't pretend to know.)
Re:Before the inevitable occurs: (Score:5, Insightful)
This is quite old code and I had to rewrite it to even compile.
Is this x86/x86_64 only? (Score:5, Interesting)
Funny comments :) (Score:5, Informative)
"Dovalim z knajpy a cumim ze Wojta zas nema co robit, kura." == something like "Just returned from the pub and saw that Wojta [a machine? Or a person? Unclear...] has nothing to do." [The last word might be a Czech expletive with a typo...?]
"Gizdi, tutaj mate cosyk na hrani, kym aj totok vykeca." == something like "Here's something for you to play with, boys,
"Stejnak je to stare jak cyp a aj jakesyk rozbite." == "Anyway, it's old as hell and somehow broken anyway"
The style (no way am I able to render *this* in English
This workaround works (Score:5, Informative)
The workaround posted in a follow-up in that thread works. I had a few vulnerable (tested) machines that I cannot reboot even if a patched kernel is released in the near future. I tried that fix, then tried the exploit again. The exploit no longer worked after using the fix (workaround).
Those machines were debian x64.
Ubuntu kernels do not appear to have vmsplice enabled by default.
Re:Misleading (Score:5, Informative)
Re:Misleading (Score:5, Insightful)
If the only people that have accounts on the machine have physical access to it, this exploit is a lot more work than just opening the box...
Re:Misleading (Score:5, Insightful)
Re:Misleading (Score:5, Funny)
Which reminds me, have you done your emerge -abuop6QvvvvVVvVVxz world yet today?
Re:Misleading (Score:5, Insightful)
Re:For those that would rather write than read. (Score:5, Informative)
Yes, I just verified the exploit on Linux 2.6.17.13 (Slackware 11.0) and Linux 2.6.21.5 (Slackware 12.0) and it works as advertised.
Re:I am so depressed ... (Score:5, Informative)
http://www.milw0rm.com/exploits/5093 [milw0rm.com]
Notice the original article links to 5092.