Stories
Slash Boxes
Comments

News for nerds, stuff that matters

New Linux Kernel Vulnerability

Posted by CmdrTaco on Sun Mar 07, 2004 11:22 AM
from the well-thats-just-not-pleasant dept.
Stop Or I'll Noop writes "Paul Starzetz writes, "A critical security vulnerability has been found in the Linux kernel memory management code inside the mremap(2) system call due to missing function return value check. This bug is completely unrelated to the mremap bug disclosed on 05-01-2003 except concerning the same internal kernel function code." Full scoop here." Update: 03/07 20:53 GMT by T : This vulnerability (and fixes) were mentioned briefly in an update to this earlier posting.
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • by Space cowboy (13680) * on Sunday March 07 2004, @11:23AM (#8490972)
    (Last Journal: Friday April 27 2007, @02:20PM)
    I'm not sure whether this is a triumph of the distributed nature of the kernel, or a catastrophic failure of the whole model... The mremap() code was presumably
    looked at in great depth just recently, after a critical vulnerability was found. A few weeks go by and another hugely important hole is found...


    Since no special privileges are required to use the mremap(2) system call any
    process may use its unexpected behavior to disrupt the kernel memory management
    subsystem.

    Proper exploitation of this vulnerability leads to local privilege escalation
    giving an attacker full super-user privileges. The vulnerability may also lead
    to a denial-of-service attack on the available system memory.


    Now I know the consequences of a problem bear little relation to its root cause, but I am a little surprised at how this managed to find its way through all these eyes looking at the offending code a week or so ago. Actually making it work as a security hole looks to be reasonably complex, (which may be why it wasn't found, I guess), but if one piece of code can have 2 major vulnerabilities in as many weeks, maybe it's time to start worrying about when Linux *does* take over the desktop...

    I thought the automated 'Stanford Checker' (sp ?) was ideal for this sort of problem ? (Where the returned value from a function is ignored...) Perhaps it was flagged up but took some in-depth analysis for the kernel developers to realise it really was a problem...

    So, is this a master-stroke of the development model, with various people around the world all individually checking code and Hey! Someone found something, or is it a "failure" where all those people missed it the first time around, and it's a pure fluke it was found now.... I'm still not sure, but I'll give the benefit of the doubt to the model - hey, it's been fixed! :-)

    Simon
  • Wasn't there a (third) problem with mremap back around summertime too? These all sound like barebones, common mistakes. Who is contributing this source? Was it all the same person? Maybe we should be checking his/her code a bit more closely!

    • by Anonymous Coward on Sunday March 07 2004, @11:32AM (#8491046)
      Maybe is was Linus, and we should stop accepting his contributions :-)
      [ Parent ]
    • This is medium old news. (Score:5, Informative)

      by Anonymous Coward on Sunday March 07 2004, @11:47AM (#8491153)
      This is the second mremap() vulnerability finaly making it to slashdot. Note the date on the linked page, March 1.

      You just thought it was the third because you already heard about two, and forgot that sometimes things take a week or so to make it to /.
      [ Parent ]
    • by Otter (3800) on Sunday March 07 2004, @11:53AM (#8491198)
      (Last Journal: Tuesday November 27, @03:27PM)
      These all sound like barebones, common mistakes. Who is contributing this source? Was it all the same person? Maybe we should be checking his/her code a bit more closely!

      19 minutes later, and no one has blamed SCO yet? What's wrong with you people today?

      [ Parent ]
      • 1 reply beneath your current threshold.
  • Install windows! (Score:4, Funny)

    by Compunerd (107084) on Sunday March 07 2004, @11:25AM (#8490990)
    (http://karlsbakk.net/)
    Get windows CD
    Boot
    Install

    bah
  • Damn (Score:4, Insightful)

    by Broken_Windows (658461) on Sunday March 07 2004, @11:26AM (#8490993)
    (http://www.linuxbeginner.org/)
    I really did not want to spend my Sunday patching kernels.
  • dupe (Score:5, Insightful)

    by Feyr (449684) * on Sunday March 07 2004, @11:27AM (#8490999)
    (Last Journal: Friday January 03 2003, @03:39PM)
    huu dupe? that thing was released over a week ago!
  • Not a new vulnerability (Score:5, Informative)

    by Anonymous Coward on Sunday March 07 2004, @11:27AM (#8491003)
    This is the same vulderability that was disclosed a few weeks ago. The advisory was updated on March 1st to include exploit code.
  • by rivaldufus (634820) on Sunday March 07 2004, @11:27AM (#8491004)
    After all, if they can expect people to license Linux from them, they should be providing support.
  • Does this mean... (Score:3, Funny)

    by mcx101 (724235) on Sunday March 07 2004, @11:28AM (#8491009)

    ...I'm going to have to patch the kernels on the Debian servers and reboot again?

    That'll be the third time in as many months.

  • Well, as they say... (Score:2, Funny)

    by Anonymous Coward on Sunday March 07 2004, @11:28AM (#8491011)
    In Linux it's a bug...

    In Windows it's a feature.
  • by Anonymous Coward on Sunday March 07 2004, @11:30AM (#8491016)
    Just compare the time and effort putting together the 3 page write up on the bug to the cost of reviewing and fixing the code in question when it was originally written. I believe the study that found that once the bug leaves the development shop to go to consumers it costs $9000 per line to fix. It's as true in open source as it is for closed source.
    • So it costs $9,000, so what? by raehl (Score:2) Sunday March 07 2004, @12:02PM
    • by cperciva (102828) on Sunday March 07 2004, @12:34PM (#8491385)
      (http://www.daemonology.net/)
      I believe the study that found that once the bug leaves the development shop to go to consumers it costs $9000 per line to fix.

      That figure depends largely upon how many customers you have and how sophisticated your patch-distribution system is. In pre-internet days, a critical problem might have meant shipping a floppy disk to each of your customers (of course, this reduced the chance of problems being classified as "critical"). Now, most security problems in FreeBSD can be fixed in two minutes using 50kB of bandwidth and binary patches [daemonology.net]. Most operating systems fall somewhere in the middle, distributing entire [apple.com] files [microsoft.com], or even complete [redhat.com] packages [debian.org], every time a one-line security fix is necessary, with the effect of requiring a 50-fold (or more, in the case of packages) increase in bandwidth (and, over slow connections, time).

      Someone from Microsoft explained this to me as "we've got huge amounts of bandwidth, so we really don't need to save bandwidth by using patches"... it doesn't surprise me that Microsoft ignores the fact that delta compression would benefit their customers, but I expected better from Apple or the Linux community.
      [ Parent ]
  • by Anonymous Coward on Sunday March 07 2004, @11:30AM (#8491020)
    So we can get back to bitching about Window's security flaws :D
  • Not a big deal really (Score:5, Informative)

    by jmoen (169557) <jmoen AT foco DOT no> on Sunday March 07 2004, @11:31AM (#8491030)
    (http://foco.no/)
    Seems like none of the current releases are affected by this anyway. Ref. the article:
    Only version: 2.2 up to and including 2.2.25, 2.4 up to to and including 2.4.24, 2.6 up to to and including 2.6.2

    -jmoen-
  • by Padrino121 (320846) on Sunday March 07 2004, @11:31AM (#8491032)
    Slowly but surely as Linux is getting more mainstream it seems the same kind of holes that perpetually plague Windows exist in Linux as well.

    It might be time to take a page from the MS book and take a few weeks for a full line by line audit.
  • Somewhere . . . (Score:5, Funny)

    by Prince Vegeta SSJ4 (718736) on Sunday March 07 2004, @11:32AM (#8491035)
    A Giddy Billionaire is scheming:

    Kernel 2.6.4-rc2-bk3: Never, I'll Never turn to the Dark side, I'm open source...like my father before me.

    Bill: So be it, open source

    Bill: if you will not be turned, you will be destroyed (shooting purple lightning bolts)

    Bill: You will pay the price for your lack of vision

    Kernel 2.6.4-rc2-bk3: Linus please (in agony).

    .....to be continued

    I await my -5 (Troll)

  • Clueless lamer (Score:1)

    by baudbarf (451398) <slashdot3&baudbarf,com> on Sunday March 07 2004, @11:32AM (#8491036)
    (http://www.baudbarf.com/)
    How does one go about patching his kernel, pray tell?
  • From the link... (Score:3, Informative)

    by Spoing (152917) on Sunday March 07 2004, @11:32AM (#8491040)
    (http://slashdot.org/)
    1. Synopsis: Linux kernel do_mremap VMA limit local privilege escalation vulnerability

    Local, not remote.

    In general: If an attacker has local access or can gain the equivelent by using a remote access tool, a local exploit can be a problem.

    So, personally I'm not too worried though others with different types of users or configurations might have a high level of concern.

  • Old news (Score:5, Informative)

    by phaze3000 (204500) on Sunday March 07 2004, @11:34AM (#8491053)
    (http://cisco-configs.com/)
    This is why 2.6.3 was released, as discussed in this [slashdot.org] slashdot story from the 18th of Feb. The date on the linked article is March 1 - this is a second document on the same vulnerability that gives more details. It was not released at the time to give people a chance to patch.
    • Re:Old news by Anonymous Coward (Score:1) Sunday March 07 2004, @11:53AM
  • known since 18. feb. 2004 (Score:5, Informative)

    by gst (76126) on Sunday March 07 2004, @11:34AM (#8491058)
    actually this vulnerability was announced on 18. feb. 2004 by isec (see http://lwn.net/Articles/71682/).

    isec just waited some weeks until they released the exploit...
  • Laymens terms? (Score:2, Funny)

    by oldosadmin (759103) on Sunday March 07 2004, @11:35AM (#8491061)
    (http://www.oldos.org/)
    Could someone please say what this vulnerability is in English? That article made my head hurt.
    • Re:Laymens terms? (Score:5, Funny)

      by WWWWolf (2428) <wwwwolf@iki.fi> on Sunday March 07 2004, @11:50AM (#8491172)
      (http://www.iki.fi/wwwwolf/)

      Sure. A program can ask the operating system kernel to Do Things. Now, someone has found out that when you ask the kernel to Do Things certain way, the kernel subsequently thinks you are the Boss.

      Like, you have this stack of forms you want the computer signed. You hand them over to the computer. One of the papers is "Do whatever I say" form that would give you the Power. The computer won't read it and just signs it along with the others, then hands you the forms back.

      How's that for an explanation?

      [ Parent ]
  • Important to Remember (Score:3, Interesting)

    by rudy_wayne (414635) on Sunday March 07 2004, @11:36AM (#8491078)
    When a Windows vulnerability is patched, it is proof that closed source software is evil.

    Wne a Linux vulnerability is patched, it is proof that open source software is wonderful.

    • Re:Important to Remember (Score:5, Funny)

      by Anonymous Coward on Sunday March 07 2004, @11:58AM (#8491222)
      TO DO:

      Log onto slashdot.
      Bash Microsoft.
      Bash the bashers of Microsoft.
      Bash the bashers of the bashers of Microsoft.
      ... ad infinitum
      [ Parent ]
    • Re:Important to Remember (Score:5, Funny)

      by FattMattP (86246) on Sunday March 07 2004, @12:09PM (#8491283)
      (http://spf.pobox.com/)
      When a Windows vulnerability is patched, it is proof that closed source software is evil.
      You misspelled if.
      [ Parent ]
    • Re:Important to Remember (Score:5, Insightful)

      by KingOfBLASH (620432) on Sunday March 07 2004, @12:38PM (#8491399)
      (Last Journal: Sunday October 10 2004, @02:36PM)
      When a Windows vulnerability is patched, it is proof that closed source software is evil.

      Wne [sic] a Linux vulnerability is patched, it is proof that open source software is wonderful.

      You know there are -- among the many, many, many open vulnerabilities out there -- two which are particularly problematic for Windows users. (There are many more out there, but I figure I'll focus in on these two for now.

      The first one [slashdot.org] allows an attacker to mask the real address of the site you're viewing in IE. So, go and open up a spam claiming that Paypal needs you to update your credit card number, and you'll actually see PayPal.com as the URL. The second one [slashdot.org] allows an attacker to crash IE and exploit arbitrary code when a user views a picture on a web page under IE.

      As a Computer Programmer, I understand how hard it is to create 100% bug free code. Any system as complex as Windows or Linux is bound to contain some bugs and / or vulnerabilities. However, when an exploit is found in Windows (to the best of my knowledge those two exploits have yet to be patched), it takes forever to get a fix to the public.

      On the other hand, as soon as I heard of the vulnerability in the Linux Kernel, I have the following options:

      1. Patch it myself and submit the patch for everyone elses benefit
      2. Disable the use of the system call that can be used to create the vulnerability until a patch is found.
      3. Help test patches created by someone else -- possibly with much stronger C skills then mine (Hey, Linus can outprogram anyone as far as I'm concerned. There's no dishonor in being outgunned by the best)

      Now, whereas I am pretty certain Slackware will have a package available for me to update my kernel in another 48 - 72 hours, and if it's absolutely urgent for me to fix it I can either disable it or fix it myself (something Windoze won't let you do -- although the nature of the vulnerability in the kernel may make disabling it impractical. But still, at least you have the option), Microsoft has not, to the best of my knowledge, fixed these vulnerabilities, even though it's been months.

      This is why Open Source Software is so great. Technically sophisticated users hold the destiny of the software in their own hands. And I haven't even begun to get started on how great it is not to submit annoying feature requests, but to make software do what you want it to do.

      [ Parent ]
    • Re:Important to Remember by FooBarWidget (Score:1) Sunday March 07 2004, @01:35PM
    • Re:Important to Remember by eldacan (Score:1) Sunday March 07 2004, @12:12PM
    • Re:Important to Remember by gaijin99 (Score:1) Sunday March 07 2004, @12:47PM
    • Re:Important to Remember by catenos (Score:3) Sunday March 07 2004, @01:21PM
    • 5 replies beneath your current threshold.
  • by chrysalis (50680) on Sunday March 07 2004, @11:41AM (#8491116)
    (http://00f.net/)
    Another kernel vulnerability was recently found in all FreeBSD (4.X and 5.x) versions.

    The TCP/IP stack can be stopped by sending unordered TCP fragments.

    This is a serious remote vulnerability, and any FreeBSD with an open TCP port should be patched ASAP.

    Here's a link to the official advisory :

    ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisorie s/ FreeBSD-SA-04:04.tcp.asc

    Regardless of the operating system you are running, always keep everything up to date.

  • by nuckin futs (574289) on Sunday March 07 2004, @11:44AM (#8491137)
    No need to worry, and we all know why...
    a patch will be out (if it isn't already out) within days, sometimes hours. I don't have to rely on MS.
  • Not the way to make friends. (Score:2, Interesting)

    by stock (129999) <stock@stokkie.net> on Sunday March 07 2004, @11:49AM (#8491166)
    (http://crashrecovery.org/)
    This guy investigating mremap is saving a new vulnerability for every week. He's working only to get his name printed everywhere. I cannot take this seriously. If he's a genuine security analyst, he'd fix _all_ mremap related bugs within 1 patch.

    My biggest grief, is him not releasing source code patches for genuine kernel.org kernels. If he's so good to release sploits, he's good enough to submit source code patches.

    Robert
  • Date format (Score:5, Insightful)

    by mandrews (139863) on Sunday March 07 2004, @11:49AM (#8491167)
    (http://slashdot.org/)
    disclosed on 05-01-2003

    OK time for me to tilt at a few windmills. Aside from the date being off by a year (the link quotes the date as 05-01-2004), is this supposed to be 1st of May or the 5th of January?

    In an international forum and for clarity, ISO 8601 dates [cam.ac.uk]. Therefore: 2004-01-05.

    Sorry for the rant, but I work for an international company, and have spent sizable parts of meetings trying to figure out which version of a document is "most recent", 2/3/04 or 3/2/04.

    • Re:Date format by mwillems (Score:2) Sunday March 07 2004, @11:57AM
    • Can't agree more (Score:5, Insightful)

      ISO dates are the way to go - for the sanity of everybody concerned. They sort lexically in a sensible way, they're in a reasonable order, and they're unambiguous (YYYY- not YY-).

      This, of course, is why nobody uses them.

      *sigh*

      As the evil dictator-like sysadmin, at work all my in-house intranet tools report ISO dates. I had a few people confused at first, but now it's the accepted format at work for things like archive directories (hundreds of directories named NN-NN-NN, NN.NN.NN or NNNNNN can get rather confusing - YYYY-MM-DD is so much easier).

      Now, if only the /rest/ of the world would change over.

      While we're at it, can we have the ISO paper sizes adopted by the few holdouts, too? (I only wish...)
      [ Parent ]
    • Re:Date format by Lehk228 (Score:2) Sunday March 07 2004, @12:59PM
    • DD-MMM-YYYY by ChrisCampbell47 (Score:2) Sunday March 07 2004, @01:00PM
      • Re:DD-MMM-YYYY by Helvick (Score:2) Sunday March 07 2004, @04:18PM
        • 1 reply beneath your current threshold.
    • Re:Date format by Nicolas Pillot (Score:2) Sunday March 07 2004, @01:38PM
    • Re:Date format by erikharrison (Score:2) Sunday March 07 2004, @01:45PM
      • Re:Date format by Zaiff Urgulbunger (Score:1) Sunday March 07 2004, @04:47PM
        • Re:Date format by Zaiff Urgulbunger (Score:2) Monday March 08 2004, @12:53PM
    • OT: Re:Date format by MightyYar (Score:1) Sunday March 07 2004, @02:04PM
  • by redmoss (108579) on Sunday March 07 2004, @11:53AM (#8491197)
    (http://yoderhome.com/)
    This is partially redundant to a few of the other posts here saying that this vulnerability was already disclosed several weeks ago. However, I thought I'd add that if you already patched, check the vulnerability ID; in this case it's CAN-2004-0077. Your patch should have specifically mentioned this ID. If not, you need to patch again.

    Thank $DEITY I don't need to patch/reboot again. I was starting to get a bit annoyed at having to patch the kernel twice in two months. Scheduling reboots of machines in use by many people is no fun.
  • Patched in 2.6.3 apparently (Score:5, Informative)

    by petabyte (238821) on Sunday March 07 2004, @11:58AM (#8491219)
    I'm fairly sure this was patched in 2.6.3. Running the test code included in the advisory on my 2.6.3 (vanilla) system shows:

    [+] kernel 2.6.3 vulnerable: NO exploitable NO

    There's also a patch to mremap listed in the 2.6.3 ChangeLog. So I don't know how "new" this bug is.
  • MS vs Linux debugging. (Score:5, Insightful)

    by innerweb (721995) on Sunday March 07 2004, @12:03PM (#8491252)
    If this had been a bug in MS, we may might not have heard about it for months or years unless someone on the outside published it. The crackers would have still had a good chance to have known about it.

    What winds up happening is I pay MS to produce a product that I have very little input on. I buy the off the shelf solution to then develop 50% of the solution anyway. And, then it crashes, the documents are incorrect (updates might be available on their web sites), and I have no way of figuring out what the issues are without paying more $s for something I paid for already. If I tried to pull the same trick, I would loose my client.

    Linux side is someone spots the issue, makes us aware of it in most cases. People have something more important than a paycheck at stake get to work on a fix for the problem. A, or multiple, potential fix(es) is(are) put up. Sometimes a fix goes straight in with minimal review (it works, most liked it), sometimes the fix gets kicked around to hash out any potential problems (in the full light of day, normally my apps do not break when the fix is rolled out.)

    I like the public knowledge aspect of OSS. Yep, hackers have access to it also, but closed source never seemed to stop them, it just stop me from protecting myself.

    Maybe we need to look at the next step for OSS? Maybe there is a better model for building OSS? Maybe companies might start providing more donations (like cheap lic fees) to a foundation that rewards freelance OSS programmers with cash for tackling certain problems (and does not pay until the code is peer reviewed and bug checked to a reasonable extent.) Maybe that would work better... Are certain organizations not starting to do that?

    Given how much OSS has accomplished in the past decade with its relative lack of fees and "structure", imagine what might happen if more companies started using their proprietary source software budget to put bounties out on features they needed in OSS. True, not all features would they want to make public, but enough they would wat to so as to dramatically cut everyone's costs (GNU lic is important because of this). Most companies actually have very close to the same needs. But, their money goes to legal and marketing fees more than it seems to go to actual development fees with off the sheld software. What an economic waste! Check out John Nash [nobel.se] for a rather different rather OSS view of the world.

    In the end, you are left with a decision. The programmers at MS are very bright. The programmers in OSS are very bright. The real difference is the perceived safety of being able to blame MS (who you can not hold responsible yet - name one successful law suit against MS for the failure of their software to function as advertised) versus the cost effectiveness of not paying for huge legal and marketing fees (as well as other corporate overhead having very little to do with getting better or more code). I am not against programmers getting paid. I am against sloth and leeches in a corporate setting destroying the market in which programmers get paid.

    InnerWeb

  • Fixed on SUSE kernels??? (Score:3, Interesting)

    by multipart (732754) on Sunday March 07 2004, @12:05PM (#8491257)

    I can't exploit this on my SUSE kernel. All I get (after many attempts) is:

    [+] kernel 2.4.21-192-athlon vulnerable: YES exploitable YES
    MMAP #65530 0x50bfa000 - 0x50bfb000 [-] Failed

    Perhaps this hasn't gone completely unnoticed...

  • Does not compute. (Score:4, Interesting)

    by Raven42rac (448205) on Sunday March 07 2004, @12:09PM (#8491281)
    Let me get this straight, it has nothing to do with the bug from a year ago, except that it affects the same code in the same system call? Call me unenlightened, but, that sounds pretty similar to me.
  • grsecurity (Score:2, Interesting)

    by mslinux (570958) on Sunday March 07 2004, @12:21PM (#8491345)
    Wouldn't grsecurity provide protection for this?
  • by Anonymous Coward on Sunday March 07 2004, @12:35PM (#8491387)
    this hole was found and patched by vendors a month ago. i personally submitted to slashdot at least 10 stories detailing this hole and how to patch it, and i was quite obviously ignored.

    http://www.slackware.com/changelog/stable.php?cp u= i386
    "
    Wed Feb 18 03:44:42 PST 2004
    patches/kernels/: Recompiled to fix another bounds-checking error in
    the kernel mremap() code. (this is not the same issue that was fixed
    on Jan 6) This bug could be used by a local attacker to gain root
    privileges. Sites should upgrade to a new kernel. After installing
    the new kernel, be sure to run 'lilo'.
    For more details, see:
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN- 2004-0077
    Thanks to Paul Starzetz for finding and researching this issue.
    (* Security fix *)
    "

    2.4.25 and 2.6.3 are NOT affected by this hole, and there is a patch for 2.4.24 which you can make yourself by diffing a vanilla 2.4.24 kernel with slackware 9.1's 2.4.24 kernel source package.

    CmdrTaco, before you post another "announcement" like this, do your homework. last thing we need is more security disinformation surrounding linux.
  • Are we sure? (Score:3, Interesting)

    by tomstdenis (446163) <tomstdenisNO@SPAMgmail.com> on Sunday March 07 2004, @12:36PM (#8491391)
    (http://libtom.org/)
    I ran the test code in the advisory on a stock 2.4.25 build and it printed out NO and NO for both questions [vulnerable and exploitable].

    Is this really a bug? [tinfoilhatmode] Is the advisory code correct? Or is this just so old that both 2.4 and 2.6 lines have it fixed already?

    Tom
  • which are vulnerable (Score:5, Informative)

    by CAIMLAS (41445) on Sunday March 07 2004, @12:44PM (#8491424)
    (http://forums.boiledfrog.us/ | Last Journal: Friday February 21 2003, @01:08PM)
    Ok, so I read the write up.

    Here's the immediately pertinent part:

    Proper exploitation of this vulnerability leads to local privilege escalation giving an attacker full super-user privileges. The vulnerability may also lead to a denial-of-service attack on the available system memory.

    Tested and known to be vulnerable kernel versions are all

    So it looks like we've all got to update to the latest of respective trees. I guess the days of running a kernel for months on end are pretty much over.

  • -AC kernels not affected. (Score:3, Interesting)

    by Anonymous Coward on Sunday March 07 2004, @12:46PM (#8491430)
    Just what the subject says.
  • Supposed vulnerability (Score:2, Interesting)

    by sloanster (213766) <ringfan.mainphrame@com> on Sunday March 07 2004, @01:09PM (#8491585)
    (Last Journal: Tuesday November 29 2005, @05:15PM)
    Just to add my .02, I've tested this exploit code on a representative sample my boxes here, some running stock fedora kernels, some running 2.6 kernels, and NONE of the systems is exploitable, though the reports vary depending on kernel.

    So, before the fud machine starts churning out all these opinions on how insecure linux is, let's check our facts OK?

    neo: /home/jjs
    (tty/dev/pts/1): bash: 1016 > ./a.out

    [+] kernel 2.6.3-ck1 vulnerable: NO exploitable NO

    gibson: /home/jjs
    (tty/dev/pts/1): bash: 126 > ./a.out

    [+] kernel 2.4.22-1.2174.nptlsmp vulnerable: YES exploitable YES

    MMAP #65525 0x50bf5000 - 0x50bf6000
    [-] Failed

  • by Pvt_Waldo (459439) on Sunday March 07 2004, @01:29PM (#8491717)
    When are they ever going to get their act together and stop releasing such a buggy OS with these security violations!

    Oh.... wait....
  • by Sinical (14215) on Sunday March 07 2004, @01:31PM (#8491730)
    My gateway box:

    [+] kernel 2.2.25 vulnerable: YES exploitable NO

    cerberus:~$ uptime
    11:32:26 up 353 days, 12:09, 1 user, load average: 0.02, 0.02, 0.00

    cerberus:~$ uname -a
    Linux cerberus 2.2.25 #3 Wed Mar 19 22:23:56 MST 2003 i586 unknown

    Argh, now it'll be another 1.5 years before I can watch it roll over.
  • Double standard? (Score:1, Interesting)

    by steve_stern (686745) on Sunday March 07 2004, @01:36PM (#8491764)
    (http://steven-stern.blogspot.com/)
    When a Linux bug is found, its a triumph of the open-source community. "Look, we had access to the source code, we found a bug, and we fixed it".

    When Windows has a bug [slashdot.org] a comment saying "The bugs aren't in the software. THEY'RE IN THE CORPORATE CULTURE OF THIS PARTICULAR VENDOR" get modded to +5 Insightful.

    Another +5 Insightful comment says "I still wouldn't say Microsoft is getting 'better' though. They'd be getting 'better' if the vulnerabilities didn't exist in the first place!"

    I wonder what he has to say about this vulnerability existing in the first place.

    This patch requires a reboot, right? Kinda funny that nobody complains about it, but in this article [slashdot.org], someone says "Of course I like to reboot all the time. Otherwise I would be running Linux" in response to his newly-patched computer asking him if he'd like to reboot.

  • Proof-of-Concept Code (Score:5, Interesting)

    by 0xB00F (655017) on Sunday March 07 2004, @01:38PM (#8491785)
    (http://www.geocities.com/jessieballer/ | Last Journal: Saturday March 15 2003, @07:56AM)
    I tried the "Proof-of-Concept" code. Nice thing about it is that it tells you two things. 1) If your kernel is vulnerable 2) If your vulnerability is exploitable.

    I have one kernel that is vulnerable but not exploitable according to the Proof-of-Concept code. Saves me some time to not patch, recompile and reboot a new kernel.

    I wish future vulnerability announcements will be like this one. e.g. contain Proof-of-Concept exploit code that can tell me whether or not the kernel/software I am running is vulnerable and/or exploitable.
  • by buddha42 (539539) on Sunday March 07 2004, @01:42PM (#8491803)
    Can somebody explain to me why debian doesn't seem to be adressing this?

    http://www.debian.org/security/ [debian.org]

  • The code that SCO wrote.
  • Public knowledge for over two weeks (Score:5, Interesting)

    by bigberk (547360) <bigberk@users.pc9.org> on Sunday March 07 2004, @02:55PM (#8492177)

    The advisory [www.isec.pl] was released Feb. 18, so this has all been public knowledge for over two weeks. This USENET post [google.com] shows the vulnerability and upcoming exploit was known about, and slashdot is just plain late on this one.

    You have had two weeks to patch your systems. I know slackware's advisory [slackware.com] was sent right after the vulnerability became public knowledge.

  • The Doom of Linux! (Score:1)

    by I-R-Baboon (140733) on Sunday March 07 2004, @03:34PM (#8492385)

    Version: 2.2 up to and including 2.2.25, 2.4 up to to and including 2.4.24, 2.6 up to to and including 2.6.2

    And me having kept up to date running a 2.6.3 kernel. [kernel.org]

    The horrors!

  • uptime (Score:1)

    by Andrewkov (140579) on Sunday March 07 2004, @04:49PM (#8492844)
    Great, there goes my uptime record..
  • Hmm i'd say that mremap() bug is one big dirty giant hole, which has been lurking for ages. The fact that the kernel maintainers don't have a simple fix in the form of a small patch is striking.

    In fact : the complete vmmem remap MM stuff has been rewritten going from 2.4.24 to 2.4.25. The only sane thing to do, is to install 2.4.25 from scratch. That polish kernel hacker certainly lifted some heavy rock, and now all the dirty stuff is flying in your face. The exploit he posted sofar gives me root-shell on ALL my Linux machines.

    Robert
  • Code audit time? (Score:2)

    by Platinum Dragon (34829) on Sunday March 07 2004, @08:15PM (#8494001)
    (http://platinumdragon.ca/ | Last Journal: Monday May 23 2005, @01:59AM)
    Since security is something programmers always need to be concerned about, maybe it's time a few kernel hackers devoted a few months to thorough vulnerability audits of at least the 2.4 and 2.6 kernels? I get the feeling everyone's been so busy adding hardware support, features, and backporting stuff to earlier stable kernels that security may have fallen to the wayside. The particular way that the kernel is developed doesn't seem to lend itself to a freeze and audit, but maybe this is something a few of the kernel gods could undertake before 2.7 is branched.

    If nothing else, it would demonstrate that the Linux folk are as serious about clean, secure code as the BSD teams, and heck, it's an intrinsically Good Thing to do from time to time.
  • by Anonymous Coward on Sunday March 07 2004, @08:18PM (#8494015)
    It should be noted that this is simply a new way of exploiting the same mremap bug that had been reported before. It was fixed with the 2.4.25 kernel patch.
  • Damit SCO (Score:1, Offtopic)

    Go fix your code.

  • by sharath_48105 (711716) on Monday March 08 2004, @01:39AM (#8495917)
    Here's the output I get: [+] kernel 2.6.1 vulnerable: YES exploitable YES MMAP #65530 0x50bfa000 - 0x50bfb000 [+] Success Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination But no root shell... :( How can this lead to an exploit? Must have been fixed before.
  • change of language ? (Score:2, Funny)

    by rkoot (557181) on Monday March 08 2004, @02:46AM (#8496157)
    Wouldn't it be a good idea to rewrite the kernel in a different language, say, Ada95?
    I believe that these exploits couldn't be in the kernel *if* it was written in Ada95.

    r.

  • Re:Which kernels are effected (Score:4, Informative)

    by Broken_Windows (658461) on Sunday March 07 2004, @11:28AM (#8491010)
    (http://www.linuxbeginner.org/)
    From the release: Version: 2.2 up to and including 2.2.25, 2.4 up to to and including 2.4.24, 2.6 up to to and including 2.6.2
    [ Parent ]
  • Re:2.6.3? (Score:5, Interesting)

    Oops. That HTML posting problem. This was what I was trying to say:

    Apparently, only <= 2.6.2 is affected. How could this be fixed in 2.6.3 without anyone noticing that it might be a problem in earlier kernels?
    [ Parent ]
    • Re:2.6.3? by Anonymous Coward (Score:1) Sunday March 07 2004, @12:19PM
    • Re:2.6.3? by Anonymous Coward (Score:1) Sunday March 07 2004, @12:52PM
    • 1 reply beneath your current threshold.
  • i beg your pardon? (Score:5, Insightful)

    by hot_Karls_bad_cavern (759797) on Sunday March 07 2004, @11:42AM (#8491121)
    (Last Journal: Wednesday February 23 2005, @01:02PM)
    "...And how do you avid windows-baiters react to it? How come you hypocrites just blow Windows bugs out of proportion while attempting to cover up Linux kernel holes?..."

    Um, the source code for the *fix* is listed *in* the article (you didn't read it did you?)

    i don't call posting fixed code and owning up to an exploitable coding error "covering up".
    [ Parent ]
  • Re:Here we go again (Score:5, Informative)

    by bafu (580052) on Sunday March 07 2004, @11:46AM (#8491145)

    Do I laugh or do I cry? ...

    Laugh, I would say. While both laughing and crying are versatile enough to be used regardless of whether it is a time of great happiness or great sadness, laughing is definitely more "out there".

    just when I had finished compiling 2.4.25 on my systems..

    Anyone who "just finished compiling" the latest release of their favorite kernel tree is all set (assuming the installed it), since this "new kernel vulnerability" is only new in the /. sense. I would think that people who are super-concerned about such things would recognize that in reading the bulletin.

    Did I read the security bullentin correctly

    No, you did not. :-( When it said...

    2.2 up to and including 2.2.25, 2.4 up to to and including 2.4.24, 2.6 up to to and including 2.6.2

    ...you mistook the 2.2 for a 2.4 and thought that it effected your 2.4.25 kernel.

    [ Parent ]
  • by lordsilence (682367) on Sunday March 07 2004, @11:48AM (#8491159)
    (http://www.ekero.com/)
    Or I simply wrote that by purpose to see if you'd pull another flame on me.
    On the other hand, I could just be trying to make an excuse :)
    You'll never know will you?
    This is getting too much off-topic.
    [ Parent ]
  • Re:*squelch* (Score:2)

    by fwarren (579763) on Sunday March 07 2004, @12:12PM (#8491305)
    (http://fwarren.homelinux.net/)
    Sorry,

    A script kidddy would need to get local access to the box to be able to run code that could exploit this. Not a worry.

    Now if this was a windows exploit, since your average user runs as administrator, then yes, script kiddies of the world would by rejoicing.

    [ Parent ]
    • Re:*squelch* by Alioth (Score:2) Sunday March 07 2004, @03:32PM
    • 1 reply beneath your current threshold.
  • by Jeremy Erwin (2054) on Sunday March 07 2004, @12:14PM (#8491311)
    (Last Journal: Monday March 28 2005, @11:39AM)
    RTFA!

    Version: 2.2 up to and including 2.2.25, 2.4 up to to and including 2.4.24, 2.6 up to to and including 2.6.2.


    No, these kernels are affected. My guess is that kernels 2.2.26, 2.4.25. and 2.6.3 will be effected. The effect of a vulnerability is usually a bugfix release, as an unpatched kernel negatively affects security.
    [ Parent ]
  • Re:Dead or not.. (Score:1)

    by LuckyStarr (12445) on Sunday March 07 2004, @02:10PM (#8491995)
    If you really consider this (thinking of FreeBSD), use the old branch (4.x). I managed to crash the kernel of 5.1 repeatedly by copying stuff via scp. :-( They apparently need to do some homework on the new branch. The old one is quite stable though.
    [ Parent ]
  • 33 replies beneath your current threshold.