Linux - Security This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-18-2009, 09:24 AM
|
#1
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
New Linux Flaw Enables Null Pointer Exploits
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.
|
|
|
|
07-18-2009, 12:47 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 2 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,287
|
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.
|
|
|
|
07-18-2009, 01:13 PM
|
#3
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
Original Poster
|
What I find amazing is the role which the compiler plays in this.
As someone in the Slashdot discussion said, this is literally a GNU/Linux vulnerability.
|
|
|
|
07-18-2009, 02:30 PM
|
#4
|
|
Senior Member
Registered: May 2008
Posts: 2,843
|
Quote:
Originally Posted by win32sux
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.
|
|
|
|
07-19-2009, 03:26 PM
|
#5
|
|
Member
Registered: Sep 2004
Location: solihull.w-mids.uk
Distribution: Debian 5.0, CentOs, Solaris 8-10
Posts: 576
Rep:
|
"Interesting" exploitable kernel vulnerability found...
From the SANS Internet Storm Center:
Quote:
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
|
|
|
|
07-19-2009, 03:37 PM
|
#6
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
Original Poster
|
Quote:
Originally Posted by Robhogg
Sorry, just noticed the sticky thread on this subject 
|
No problem, I've merged your post into the sticky. 
|
|
|
|
07-19-2009, 03:42 PM
|
#7
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
Original Poster
|
Quote:
Originally Posted by Robhogg
No update down the pipeline from Debian yet...
|
What about upstream? Has anyone heard anything? Or are they still pointing fingers at each other?
Last edited by win32sux; 07-19-2009 at 03:43 PM.
|
|
|
|
07-21-2009, 04:53 AM
|
#8
|
|
Senior Member
Registered: May 2008
Posts: 2,843
|
It's in 2.6.27.27 and also in .30.2 by the looks of it.
|
|
|
|
07-28-2009, 03:59 PM
|
#9
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
Original Poster
|
Ubuntu issued USN-807-1 today, yet no mention of CVE-2009-1897. What's up with that?
EDIT: Nevermind, not even the latest Ubuntu release (at the time of this post) uses a 2.6.30.y kernel.
Last edited by win32sux; 07-29-2009 at 01:41 AM.
|
|
|
|
07-30-2009, 10:12 PM
|
#10
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
Original Poster
|
Thread unstickied (we've given it enough airtime). Replying to reset decay.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:27 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|