Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I refrained from posting this in the Kernel Vulns thread earlier, due to its zero-day status. But now that the issue has been Slashdotted, there's no use in keeping us from publicly discussing this vulnerability. The link to the article (from which I quote below) is here. Brad Spengler's original announcement on the Dailydave mailing list is here.
Quote:
A researcher has published exploit code for a new vulnerability he discovered in the Linux kernel. The vulnerability is an especially interesting one in that the researcher who discovered it, Brad Spengler, has demonstrated that he can use the weakness to defeat many of the add-on security protections offered by SELinux and AppArmor.
Last edited by win32sux; 07-18-2009 at 11:34 AM.
Reason: Spelling/grammar.
Read about this on the Register. In that report he claims it took him less than 4 hours to write an exploit.
Quote:
Still, Spengler said it took him less than four hours to write a fully weaponized exploit that works on 32- and 64-bit versions of Linux, including the build offered by Red Hat.
In the article you point to it says 2 hours.. Somewhere between the two there's the true facts. Aparrently Linus says this is not a kernel problem but something inherited from Unix.
Last edited by {BBI}Nexus{BBI}; 07-18-2009 at 12:49 PM.
What I find amazing is the role which the compiler plays in this.
It is an interesting one isn't it. Though to be fair to the compiler, it looks like bad code caused it to make a bad decision.
Here's the code in question:
Code:
struct sock *sk = tun->sk; // initialize sk with tun->sk
if (!tun)
return POLLERR; // if tun is NULL return error
If there's a possibility of tun being NULL then initialising *sk from it before checking for NULL is clearly a dubious operation regardless of whether you check it afterwards.
Surely it's common sense that you should check it before you use it.
Code:
if (!tun)
return POLLERR; // if tun is NULL return error
struct sock *sk = tun->sk; // initialize sk with tun->sk
But then, I'm just a novice C coder, so I may be missing something in the details.
Source code for a exploit of a Linux kernel vulnerability has been posted by Brad Spengler (Brad is the author of grsecurity). I have to tell you right now – this was one of the most fascinating bugs I've read about lately.
Why is it so fascinating? Because a source code audit of the vulnerable code would never find this vulnerability (well, actually, it is possible but I assure you that almost everyone would miss it). However, when you add some other variables into the game, the whole landscape changes. more...
No update down the pipeline from Debian yet...
Updated to add:
Sorry, just noticed the sticky thread on this subject
Last edited by Robhogg; 07-19-2009 at 03:30 PM.
Reason: Embarrassment
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.