Slashdot Mirror


Local Root Exploit in Linux 2.4 and 2.6

Anonymous Coattails writes "Summary from the advisory: 'Locally exploitable flaws have been found in the Linux binary format loaders' uselib() functions that allow local users to gain root privileges.'"

107 of 795 comments (clear)

  1. *sits back* by Anonymous Coward · · Score: 3, Funny

    *awaits justifications and explanations of why this is nothing like Microsoft*

    1. Re:*sits back* by ackthpt · · Score: 5, Funny
      *awaits justifications and explanations of why this is nothing like Microsoft*

      Because in this case Linus Torvalds is our new overlord, and I for one, welcome him.

      --

      A feeling of having made the same mistake before: Deja Foobar
    2. Re:*sits back* by Anonymous Coward · · Score: 4, Interesting

      Second, it'll probably be patched rather quickly.

      I can only laugh out loud. Read this story for example.

    3. Re:*sits back* by Lodragandraoidh · · Score: 2, Funny
      "We are sorry, all circuits are busy..." - Microsloth Help Desk

      "You can download the fix
      • here
      ..." - Any Linux website within a days (perhaps hours) of the report.
      --

      Lodragan Draoidh
      The more you explain it, the more I don't understand it. - Mark Twain
    4. Re:*sits back* by andalay · · Score: 2, Insightful

      at poolsize_strategy():
      > int len;
      ^ signed integer
      >
      > sysctl_poolsize = random_state->poolinfo.POOLBYTES;
      >
      > /*
      >
      > /*
      > * We only handle the write case, since the read case gets
      > * handled by the default handler (and we don't care if the
      > * write case happens twice; it's harmless).
      > */
      > if (newval && newlen) {
      > len = newlen;
      ^ unsigned int converted to signed
      > if (len > table->maxlen)
      ^ comparison of two signed integers
      > len = table->maxlen;
      > if (copy_from_user(table->data, newval, len))
      ^ copy_from_user with len possibly > table->maxlen

      Is it just me or does newlen > max_signed_int mean len < 0

      If so, that would be interesting.

    5. Re:*sits back* by Jay+Carlson · · Score: 5, Insightful

      It's quite a bit like Microsoft in one way.

      The uselib() system call is quite old. It was introduced in Linux 0.12 as a quick way to support dynamically loaded, statically linked libraries.

      The way shared libraries worked was like this:

      libc was compiled and linked like a normal program would be, except that its start address was set to (say) 0x400b0000. printf() would be at (say) 0x400cb110.

      Main programs were linked down at 0x08048000 or so, and knew where in memory printf was. The kernel knew how to load your main program and jump to its start. However, there was nothing but a segfault waiting for you at 0x400cb110 initially. So how did the kernel know what shared libraries to load?

      Well, one possibility was to put a list of library paths into the executable and teach the kernel to load 'em. Ugh. Didn't SCO do that?

      Instead, the linker would add a little assembly language stub to start your main program. It looked a little like:

      uselib("/lib/libc.2.so")
      uselib("/lib/libm.2.so")

      and the uselib syscall would graft the contents of those files directly into memory, in the same fashion the kernel knew how to load the main program. Voila, calling printf at 0x400cb110 will now work.

      Eventually, this switched to a single uselib("/lib/ld.so") so we could have search paths and dynamic linking. But it was a pretty good start.

      After we all switched to ELF, uselib wasn't such a good idea, as ELF allows some more clever things than just direct-mapping the whole executable at a fixed address. /lib/ld-linux.so switched to using mmap(). If you haven't run an a.out or libc5 executable, it is extremely unlikely your machine has ever invoked this syscall.

      As part of the a.out->ELF transition, the uselib() syscall was preserved. It allowed old-style fixed location libraries to be dressed up in new ELF clothing. A few years ago I tried uselib() on MIPS, and had a miserable time trying to get GNU ld to make a library the kernel didn't reject. I gave up.

      So how is this bug like Microsoft? The bug is in a mechanism that is a holdover from an older, simpler time. Nobody saw a good reason to take it out. And it didn't get much security scrutiny until somebody said, "hey, what's THAT still doing in my OS? I bet it's got bugs!"

    6. Re:*sits back* by ip_fired · · Score: 2, Informative

      * When you copy newlen into len, this could cause len to be negative if newlen truly is an unsigned int.

      * It all depends what copy_from_user does. Does it check to make sure that len is sane? Is it an unsigned int, or a signed int. If it's signed, then a negative value is obviously not sane and should be rejected.

      Where did this code come from? What file please?

      --
      Don't count your messages before they ACK.
    7. Re:*sits back* by identity0 · · Score: 4, Funny

      I was going to make a comment about "rounding up workers for underground C mines", but I figured that didn't sound painful enough.

      So, I would like to remind Linus that I will be very useful in rounding up workers to toil in the underground Perl mines.

    8. Re:*sits back* by gmuslera · · Score: 2, Interesting
      One word: "LOCAL"

      The concept of local security is usually ignored in the MS side, that someone already using the machine could access/modify things that he should not.

      Most Microsoft related advisories/reports are centered in remote vulnerabilities, things that only have a meaning for a network connected machine accessing services or being accessed from outside.

      Of course, a local vulnerability could be exploited if some piece of software (i.e. a web app) have an entry point, and what should be running with the low apache priviledges or in a chroot jail becomes a systemwide security problem.

    9. Re:*sits back* by EvilAlien · · Score: 4, Insightful
      Compare apples to apples unless you are also willing to count vulnerabilities in all the GNU stuff, other opensource apps included in major distros, etc. There are far more vulnerabilities announced on a frequent basis for Open Source due to its strength: transparency. The actual numbers of vulnerabilities/flaws in Microsoft's closed source code is unknown until a vulnerability is detected and announced. Open Source also has the potential of a vulnerability coinciding with a patch since those who detect can also fix due to the openness of the code... Microsoft relies on "responsible disclosure" to ensure that they are able to release fixes with vulnerability announcements. Closed source means that announcements can be scheduled and planned for monthly "patch day"... open source means that a vulnerability and maybe the fix can be announced at any time, and therefore with greater frequency.

      So, as far as the number of vulnerabilities, you can't convince me (as someone in the industry) that Linux "wins". You also can't convince me that the Linux kernel has far fewer holes found than the Windows kernel. The available evidence does not support the claim. However, that doesn't mean that the Open Source development method tends towards greater potential quality than the closed source method.

      Also, remember that a local root vuln is only 1 remote non-root vuln away from becoming effectively a root vulnerability. Too many people who think they are responsible admins try to ignore or downplay the seriousness of local root vulnerabilities.

      Thats enough rambling for the day...

      --
      perl -e 'print $i=pack(c5, (41*2), sqrt(7056), (unpack(c,H)-2), oct(115), 10)'
    10. Re:*sits back* by SilverspurG · · Score: 2, Interesting

      I'm a Linux zealot, I admit it.

      But, well, no MS exploit is strictly a "remote root exploit" unless it's a local process running with admin privs.

      So... take this exploit along with any known exploit (say, libXpm or libtiff) on a user's web browser and you have a remote root exploit.

      --
      fast as fast can be. you'll never catch me.
    11. Re:*sits back* by Laur · · Score: 3, Insightful
      And dont forget, recompile the kernel!

      Then run a different distribution. On Debian a new kernel is just an apt-get away, no compiling required (unless you need something special of course). I'm sure other distros are similar.

      --
      When you lose something irreplaceable, you don't mourn for the thing you lost, you mourn for yourself. - Harpo Marx
    12. Re:*sits back* by Allnighterking · · Score: 2, Insightful

      For one thing it works. For another we admit it. For a third we don't have to lie about it.

      Oh yeah. I've never yet seen a local exploit on Windows. This is true. The number one exploit from Console on Windows is usually turning on the box. Once I do that I really don't care what you've done. I own you and I'm root (Yes even with WinXP SP2 and the supposed user password protection.)

      Note too to be fair. ANY box where I am at the console I don't need fancy exploits and code to grab root etc. Once I've sat down in front of the keyboard .... it's mine. Period.

      --

      I'm sorry, I'm to tired to be witty at the moment so this message will have to do.

    13. Re:*sits back* by jgrahn · · Score: 2, Insightful
      Ah, but that's the nice thing about Windows, you don't even have to install a telnet server (or some other remote execution server) to be able to run processes remotely -- have a look at psexec.

      Oh, yes, that's what the link claims. But of course there's a remote execution server involved. Just like on any other OS, something must be sitting around waiting for the client and letting it in.

      The thing that is special for Window in this case seems to be that it isn't ssh, and I'm not sure that's something to be pleased with.

    14. Re:*sits back* by darc · · Score: 4, Funny

      Yeah yeah, that's the responsible thing to say. But responsible stuff is sooooooooo boring. I mean, if we were all responsible people that wanted stability, we'd all be running kernel 2.2, Apache 1.1, many year old revisions of programs patched to all heck, never install any packages that aren't yet at least of legal age, and still tout ISA support as a bleeding edge feature.

      Hmm. Wait, I think I just described Debian Stable.

      *is hit by a gigantic potato from the debian crowd*

      (Yes, I am aware that stable is called Woody, and the last version was called Potato. But if I said "is hit by a gigantic woody..." i'd probably get murdered. Oops.)

      --
      Tired of legitimate data sources? Try UNCYCLOPEDIA
    15. Re:*sits back* by EnronHaliburton2004 · · Score: 3, Funny

      Because in this case Linus Torvalds is our new overlord, and I for one, welcome him.

      Dude, he was our new overlord like 10 years ago, get with the program...

    16. Re:*sits back* by VertigoAce · · Score: 2, Insightful

      In this case, local means you are logged in as a user already. It does not mean you are physically at the machine. This kind of exploit is why Remote User Exploits are actually a serious issue even though they might not give you root access directly. All you have to do is combine an exploit that gives you user-level permissions with a Local Root Exploit to get root access.

    17. Re:*sits back* by gweihir · · Score: 2, Insightful

      *awaits justifications and explanations of why this is nothing like Microsoft*

      This is a local exploit. These are so common in Windows that nobody talks about them anymore. Most reported Windows exploits are remote exploits (exploitable over the net) or application exploits, e.g. in the bundledbrowser or Email apps.

      Really no comparison at all

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    18. Re:*sits back* by Alsee · · Score: 2, Funny

      Potato?? Woody??

      Jeez. What the hell are they going to call the next release of Debian stable? Boner?

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    19. Re:*sits back* by m50d · · Score: 2, Funny

      I'm willing to compare apples to apples, but if you want me to include the major apps installed on linux distros, you should also include lots of external software for windows - some of it third party, since there doesn't seem to be an MS alternative to (for example) the GIMP.

      --
      I am trolling
  2. Copyright Poo Poo by Anonymous Coward · · Score: 5, Interesting

    Read down to the Credits on the link and you see this line:

    Credits:
    ========

    Paul Starzetz has identified the vulnerability and
    performed further research. COPYING, DISTRIBUTION, AND MODIFICATION OF
    INFORMATION PRESENTED HERE IS ALLOWED ONLY WITH EXPRESS PERMISSION OF
    ONE OF THE AUTHORS.

    Did I violate you buy hitting ctrl-c and ctrl-v? Yeah copyrights stink even in free and open source realm. Oh yeah I guess Polly boy has something to put on his resume now as if someone else was going to steal his glory and get away with it.

    1. Re:Copyright Poo Poo by _Sprocket_ · · Score: 4, Informative


      Oh yeah I guess Polly boy has something to put on his resume now as if someone else was going to steal his glory and get away with it.


      What's interesting is the preface that shows up on several lists:

      Hi all,

      first of all I must comply about the handling of this vulnerability that I reported to vendorsec. Obviously my code posted there has been stolen and plagiated by Stefan Esser from Ematters. The posting containing the plagiate will follow. Now I have been forced to release the full advisory however another disclosure timeline have been agreed on vendorsec. Sorry for the inconvenience.

      Followed by:

      Hi all,

      first of all I must comply about the handling of this vulnerability that I
      reported to vendorsec. Obviously my code posted there has been stolen and
      plagiarized in order to put the blame on Stefan Esser from Ematters and
      disturb the security community.

      I really apologize to Stefan Esser for the inconvenience and thank him
      for his cool reaction - the plagiarism did work.

      Further steps must be taken to investigate the security leak on vendorsec.
  3. How the hell by BoomerSooner · · Score: 3, Funny

    How do people find this stuff? Amazing. Open source is astounding.

    When do I get my kernel update?

    1. Re:How the hell by pasde · · Score: 3, Funny


      When do I get my kernel update?

      No worry. I ve already installed it for you.

  4. Failed on RHEL by SuperQ · · Score: 2, Informative

    I compiled included code at the end of the advisiory, this was the output on RHEL 2.4.21-20

    % ./test

    [+] SLAB cleanup
    child 1 VMAs 65525
    child 2 VMAs 65392
    [+] moved stack bfff8000, task_size=0xc0000000, map_base=0xbf800000
    [+] vmalloc area 0xdf400000 - 0xfe5f2000
    Wait... -
    [-] FAILED: try again (Cannot allocate memory)
    Killed

    1. Re:Failed on RHEL by ericzundel · · Score: 3, Interesting

      I tried it on a couple of boxes. It tries to exploit a race condition, so it won't necessarily work all the time. However I have tried it a few dozen times and haven't gotten it to work yet. (One RH 7.3 box and one RH 9.0 box)

    2. Re:Failed on RHEL by ericzundel · · Score: 5, Interesting
      Hmm. right after I posted that, it came through on the RH 9 box:
      ./elflbl -n2

      [+] SLAB cleanup
      child 1 VMAs 65527
      child 2 VMAs 65527
      child 3 VMAs 65527
      ...
      child 18 VMAs 63322
      [+] moved stack bfffb000, task_size=0xc0000000, map_base=0xbf800000
      [+] vmalloc area 0xdf800000 - 0xfedbb000
      Wait... \
      [+] race won maps=49205
      expanded VMA (0xbfffc000-0xffffe000)
      [!] try to exploit 0xe2d25000
      [+] gate modified ( 0xffec903c 0x0804ec00 )
      [+] exploited, uid=0

      sh-2.05b#
  5. won't be exploted here! by Dominatus · · Score: 5, Funny

    It's a good thing I've got the patch downloa

  6. Once again... by Sheetrock · · Score: 2, Interesting
    A2M swapping rears its ugly head. This semaphore system has worked well to date, but perhaps should be mandated (i.e. code will not work unless a semaphore is set.)

    They've got a pretty good record. Unfortunately, kernel-level stuff is nasty -- how do you fix embedded devices?

    --

    Try not. Do or do not, there is no try.
    -- Dr. Spock, stardate 2822-3.




    1. Re:Once again... by grub · · Score: 2, Insightful


      how do you fix embedded devices?

      Shouldn't be much of an issue, most embedded devices don't have user accounts.

      --
      Trolling is a art,
  7. Re:What, no remote exploit?!? by Ly0n · · Score: 4, Insightful

    since windows is more "single user" oriented, most local exploit flaws on windows do not get very much publicity.

    For instance, shatter attacks are still a very large threat for multi-user windows systems

  8. Funny you should mention... by Yaa+101 · · Score: 3, Funny

    I need no exploit to gain root privileges, I just login...

  9. Re:What, no remote exploit?!? by iabervon · · Score: 2, Informative

    The linux kernel does very little interpretation of remotely-provided data. There are occasionally remote exploits (e.g. the Ping of Death in '97 or so), but that code has now been pretty thoroughly checked at this point. Most of the code which cares at all about the validity of data is interfaces only accessible locally.

  10. Re:That's why MS will rule the world. by spac3manspiff · · Score: 2, Funny

    Mod parent -1 denial.

  11. lets hope no-one discovers by Anonymous Coward · · Score: 2, Funny


    su

  12. Re:What, no remote exploit?!? by Michalson · · Score: 2, Insightful

    Because Linux is a kernel, with no real knowledge or direct interaction with outside (remote) sources, while Windows is a kernel plus a GUI plus a ton of other services. Remote exploits aren't found in the Windows kernel, they're found in the application/service part of Windows, on the Linux side these buggy, infinitely exploitable services are given individual names like "sendmail" and "bind".

  13. Re:What, no remote exploit?!? by Richard_at_work · · Score: 2, Informative

    Because 'Linux' exploits are kernel exploits, because Linux is a kernel, as people are so fond of pointing out, which actually has very little to do with remote entities other than the well looked at TCP/IP stack. Windows on the other hand is an Operating System, which includes things other than the kernel, including system daemons/services, user interface code, web browsers, and a whole host of other things.

    Long story short, while it may be shoddy, MS Windows is a LOT bigger than Linux, and thus theres more to exploit. If you look at something like Redhat, which is a distribution, you have more of a comparison, and you will find remote exploits.

  14. This could help by datadriven · · Score: 2, Interesting

    ... if I forget my root password.

  15. Local Access is always a trump card by Delusional · · Score: 4, Interesting

    Is there ever a time when you can consider your systems secure against an attacker with physical access?

    1. Re:Local Access is always a trump card by rjstanford · · Score: 4, Insightful

      Well, yes and no. There's a difference between being vulnerable to those with physical access (pretty much always true, but very limited) and vulnerable to those folks with the ability to run something on your machine locally (fewer than true remote users, but much higher in number than those folk with actual physical access). All you need for this exploit is a way to run unpriv. code on the machine. Note that using a network exploit to run said code is a great way of gaining access - suddenly the fact that your webserver is running as "nobody" doesn't really matter any more.

      --
      You're special forces then? That's great! I just love your olympics!
    2. Re:Local Access is always a trump card by arose · · Score: 4, Funny

      Local as in "need user level access" not "need screwdriver level access".

      --
      Analogies don't equal equalities, they are merely somewhat analogous.
    3. Re:Local Access is always a trump card by rjstanford · · Score: 2, Interesting

      That won't necessarily save you, I'm afraid. If the machine is running any software that through feature or an exploit allows a remote user to run uploaded code, you're screwed. That's because as soon as you're running that code, it can use this type of hole to grant itself full root privileges. Once its done that, what makes you think that its going to be nice enough to check /etc/passwd and spawn a requested shell (not that that would be terribly useful for this type of remote exploit). At that point, the sky's the limit I'm afraid.

      --
      You're special forces then? That's great! I just love your olympics!
    4. Re:Local Access is always a trump card by jonadab · · Score: 2, Informative

      > Is there ever a time when you can consider your systems secure against
      > an attacker with physical access?

      In the phrase "local root exploit", the word "local" doesn't mean local in
      the sense of physically present, but in the sense of needing to already have
      user-level access. If you combine it with a non-root remote exploit, the
      two together add up to the equivalent of a remote root exploit.

      In other words, this is definitely something we want to fix.

      As far as securing a system against physical access, that's a whole nother
      kind of hard. At bare minimum you need an encrypted filesystem with a key
      that isn't stored and so has to be entered by an authorized user every time
      the filesystem is mounted, and then on top of that if you make sure that the
      machine, if left unattended, suspends running processes to disk and then
      unmounts the filesystem, and if you're both paranoid, obsessive, and tireless
      when it comes to bughunting, you potentially could develop a system that has
      a reasonable degree of security against an attacker with physical access --
      but "a reasonable degree" does not mean "impenetrable" -- there are still
      hidden cameras, keyboard logging devices, and the like, to say nothing of
      rubber hose cryptanalysis.

      --
      Cut that out, or I will ship you to Norilsk in a box.
  16. Re:What, no remote exploit?!? by the_mad_poster · · Score: 2

    It can be exploited by any user or process that can compile and load executables on the machine.

    --
    Alito: A vote for Alito is a punch in the eye to put that bitch back in her place!
  17. Re:What, no remote exploit?!? by EnderWiggnz · · Score: 2, Funny

    you mean to tell me that people have found exploits in bind and sendmail?

    no way - they're perfect open source programs. model programs, so to speak.

    next, you'll tell me that x is a crufty, inefficient kludge.

    --
    ... hi bingo ...
  18. Local vs. Remote by Gherald · · Score: 2, Interesting

    Obviously if it is local if it is exploitable from the console. But can it be exploited remotely through ssh if one already has a user account?

    1. Re:Local vs. Remote by rewt66 · · Score: 4, Informative

      In this context, that's what "local" means: That you have a local account, even if you are accessing it with telnet or ssh.

      A "remote" exploit is one that can be used by someone who has a network connection to the machine, but no account on it.

    2. Re:Local vs. Remote by Bloater · · Score: 2, Informative

      yes, local normally means user-space software running on the system can exploit it. That means any program you type in, compile, and run from a physically attached keyboard, or through ssh, or even any code that a local daemon or client program is tricked into using. That means possibly one of those old libpng buffer overflows can be used to insert code into mozilla and eventually get root - you have patched those seemingly unimportant security announcements haven't you?

      To be limited to a physical access exploit, it would need to be a bug in the keyboard driver, the input layer, or possibly a user-space program that uses raw keyboard entry. I don't think screwdriver level access counts, since you can lock your machine up. Filesystem bugs could be exploitable via usb drives, floppy disks, cf drives, etc... Those are physical exploits rather than local.

  19. Embedded devices? by rewt66 · · Score: 2, Insightful

    How do you fix embedded devices? Um... you mean how do you update/patch the code on the embedded device so that a local user can't escalate to root?

    First of all, for many embedded devices, this isn't an issue. I mean, if you're an attacker, what are you gonna do once you get root? If the owner can't patch the OS, you probably can't install a rootkit either. Sure, you can DOS it, but if you're physically at the device, you can DOS it just by hitting the power button.

    However, manufacturers of all embedded devices (not just Linux-based!) should definitely put a mechanism in place for updating the program code.

  20. Re:dude by Anonymous Coward · · Score: 2, Informative

    Summary for the lazy ones: These are four of the probably uncounted bugs which are known for months (if not years), reported to the maintainers but are still unfixed. Yes, we're speaking about the Linux kernel.

  21. Only in select modules? by Leadhyena · · Score: 3, Insightful
    Doesn't this only work if you compile the ELF and a.out support into the kernel, or am I mistaken? If so, it's just yet another reason to be VERY CAREFUL what you enable in the kernel when you compile it, lest you enable something that you don't need and is yet exploitable.

    I should mention that enabling ELF format is still highly recommended (after the patch for this is released of course) and unless you do special programming work in linux then enabling a.out format is not recommended.

  22. making APIs secure takes time by jeif1k · · Score: 4, Insightful

    "uselib" is a Linux-specific extension, and, as a result, has received much less real-world testing than traditional UNIX system calls. Keep in mind that the traditional UNIX system calls have received millions of man-years of real-world testing in large user communities likely to attempt both remote and local exploits. It is not surprising that Linux-specific extensions are at a much greater risk of containing serious security problems.

    1. Re:making APIs secure takes time by Alan+Cox · · Score: 5, Informative

      No this was just a dumb locking bug. You could reasonably argue that some of the kernel API's for do_brk were less than well designed but thats more historical accident.

      Its fixed by 2.6.10-ac6 along with the setsid crash and some other corner case bugs Coverity found.

  23. Distribution restrictions by cperciva · · Score: 4, Insightful

    COPYING, DISTRIBUTION, AND MODIFICATION OF
    INFORMATION PRESENTED HERE IS ALLOWED ONLY WITH EXPRESS PERMISSION OF
    ONE OF THE AUTHORS.


    Is it just me, or is this mind-bogglingly stupid? A security advisory which can't be redistributed freely? Imagine if the same approach was taken to important warnings in the real world -- "There's a tsunami heading towards you... but you're not allowed to redistribute this warning to all the people around you without my permission."

    Security advisories should be in the public domain.

    1. Re:Distribution restrictions by Anonymous Coward · · Score: 2, Funny

      Nah...this is smart. Copyright the exploit code, and then once a worm is spread, he can sue everyone for copyright infringement.

    2. Re:Distribution restrictions by Jerf · · Score: 4, Interesting

      Is it just me, or is this mind-bogglingly stupid?

      It's irrelevant anyhow. If you didn't sign a contract to keep it secret, they have no grounds to gag you. They can copyright their exact words and can (and probably should*) control the distribution of those words, but copyright does not give them any protection of the facts contained within. And neither does anything else.

      For the same reason, when you are accidentally mailed something with one of those "you must delete this immediately if you are not the intended recipient", unless it is actually and literally classified, you have no obligations. It's just to scare people.

      The legal system has a ways to go before you can be obligated by an email out of the blue, or a random announcement on a webpage taking rights not granted to them by copyright but implementing no real access control (i.e., attempting to obligate you after you downloaded a page; it might work if you make it a condidion of reading but not just out of the blue, after the fact).

      *: Reputation is important. One of the reasons copyright should not be straight-out abolished is its usefulness in making sure that words are correctly attributed and can be quality controlled, a virtue you are so used to you may never even think about until it is gone.

  24. Typical biased Slashdotter numbers by Anonymous Coward · · Score: 3, Insightful

    Right, let's compare the flaw in a single kernel versus the ENTIRE OPERATING SYSTEM of Windows, GUI, shell, and associated apps like Internet Explorer as well as user-ran executable attachments in Outlook, which have nothing to do with Microsoft.

    What happened to all the "Linux is just the kernel" stuff? Oh, that's right, we were bashing Microsoft.

    Besides, if you mean "past year" as 2005, then this means Linux is first out of the gate.

    1. Re:Typical biased Slashdotter numbers by Libor+Vanek · · Score: 2, Insightful

      Show me some user-space program in Linux, which could gain you root? THAT's the main reason, why UN*X are generally more secured then Windows - absolutely clear separation of user rights. In Windows there lot of SW has to run at insanely high priorities so any bug in them leads in machine hacked. In Linux if there is bug e.g. in Mozilla, all it can do, is delete your documents but can never "attack" any other installed SW. Of course - there are some setuid SW in Linux, but there are only very few and they don't evolve much (no new features+bugs ;-)))

    2. Re:Typical biased Slashdotter numbers by archen · · Score: 2, Insightful

      His post is naturally tainted because of his terminology of "Windows" and "Linux". Windows IS the GUI, the shell and all that other crap that is installed by default. Any problem with anything installed by default is a hole in the OS.

      Linux is just a kernel, taking vulnerabilties in "Linux" is irrelevent. You need to look at a distribution, and all distributions are different, and many FORCE you to choose options (even if you don't want to).

      From my memory this is the first "Linux" privelege escalation I recall for quite a while, but it is also local. Windows has had probably about 10-12 in the last year, and many of those were remotely exploitable. (note those are vague ballpark estimations) But again you have to use the context of a distro for comparison.

  25. Re:What, no remote exploit?!? by lakeland · · Score: 4, Interesting

    Incidentially, the finding of exploits found in bind and sendmail has really slowed to a crawl.

    It seems that, even though they were written in different times and without security as the first concern, a sufficiently large number of bug fixes will eventually result in code that is almost as secure.

  26. Re:What, no remote exploit?!? by mm0mm · · Score: 3, Funny
    where as every nearly every Windows flaw is remotely exploitable?

    Don't you think it's more convenient for you to be able to hack multiple machines over LAN? Another reason to choose Windows over Linux.

  27. I'm safe! by ferratus · · Score: 2, Funny

    It doesn't work on my Gentoo box running 2.6.9 so I'm safe. This machine will not be hacked.

    It's a good thing I have telnet running on that box so that I could try it remotly though.

    --
    IP Therefore I am.
  28. Re:What, no remote exploit?!? by Dr.Zap · · Score: 2, Funny

    " Why is it every nearly Linux flaw is locally exploitable, where as every nearly every Windows flaw is remotely exploitable?"

    That would be Microsoft's superior networking ability, along with it's user (or abuser) friendly interfaces!

  29. isec.pl's guys rule by diegocgteleline.es · · Score: 5, Interesting

    Isec.pl has done a lot for the open source world, they've found lots of vulnerabilities (which is good - vulnerabilities ARE like any other bug):

    Take a look at the impressive curriculum of those guys:
    d_path() truncating excessive long path name vulnerability
    Linux kernel do_brk() lacks argument bound checking
    Linux kernel do_mremap() local privilege escalation vulnerability
    Linux kernel do_mremap VMA limit local privilege escalation vulnerability
    Linux kernel setsockopt MCAST_MSFILTER integer overflow
    Linux kernel file offset pointer races
    Linux ELF loader vulnerabilities
    Linux kernel IGMP vulnerabilities
    Linux kernel scm_send local DoS
    Linux kernel uselib() privilege elevation


    Guess what, they're also the guys who discovered the mozilla hole diclosed today: Heap overflow in Mozilla Browser NNTP code

    Those guys are impressive. In particular, Paul Starzetz is the author in most of those kernel holes, along with a guy called Wojciech. They always contact the kernel maintainers before discosing the vulnerability, etc. Basically, they're having the same effect than a security audit. Except that they're doing it for free, so they deserve respect, I think. And yes, Linux is having too many kernel-level vulnerabilities. More than XP if I'm counting them right. Perhaps someone should offer a job to those guys so they can audit parts of the kernel better.


    (And I can understand that copyright policy - there're people who probably look at those announcements, ctrl+c and ctrl+v and they release their own announcement twisting dates claiming that they're the guys who found it first)

    1. Re:isec.pl's guys rule by gbjbaanb · · Score: 2, Funny

      Perhaps someone should offer a job to those guys so they can audit parts of the kernel better

      Yeah, lol. Microsoft.

      Oh sorry, I though you meant, 'someone should offer these guys a job so they can audit the kernel better to find *more* exploits, allowing MS to publicise all these anti-linux holes' ;)

  30. /me flips off isec.pl by htmlboy · · Score: 2, Insightful

    why did they release exploit code before a fixed kernel was released and mirrored throughout kernel.org? and on a friday afternoon?

    i'm not too impressed with the timing of this announcement, and i have to wonder what their motives were. it doesn't hurt their cause that slashdot is advertising for them.

    please, people. there's no reason that a situation like this should ever happen.

    1. Re:/me flips off isec.pl by WareW01f · · Score: 2, Insightful

      While I agree that it would be a good idea to give someone a heads up on the kernel team (an maybe even suggest a fix while you're at it) via say, personal e-mail, things are a bit different in the open source world than say Microsoft where it's easier to keep things behind closed doors. Besides that, for me at least, Friday at 5pm is about when I'd get to even worry about fixing something like this. So the timing works for me.

      Personaly I say more power to people that are taking the time to find flaws in Linux and make them public in a manor other than letting a worm rip out. On the including the code, it looks like this is a tricky one to exploit. If someone finds an issue with my code, I thank them for showing me where it fails and how to reproduce it. It saves me time.

      That and I think we need a little rattling now and again. Simply having the belief that you are running a secure system can lead to bad things. Reminds me of progs like AirSnort. Thinks like this are too easily brushed off as 'theoretical' until someone puts out code to prove it.

  31. Here's the exploit (-; by MacJedi · · Score: 3, Funny
    #!/bin/sh
    echo "1|nux r007 3xp10|7 by 1c4m7uf"
    cd /tmp
    cat >ex.c <<eof
    int getuid() { return 0; }
    int geteuid() { return 0; }
    int getgid() { return 0; }
    int getegid() { return 0; }
    eof
    gcc -shared ex.c -oex.so
    LD_PRELOAD=/tmp/ex.so sh
    rm /tmp/ex.so /tmp/ex.c
    --
    2^5
    1. Re:Here's the exploit (-; by Erich · · Score: 3, Informative
      For those not so versed in the way things work, here's what this does:

      getuid() and geteuid() get the "user ID" and "effective User ID". This scripts makes a library that makes these functions return 0 -- signifying that you are the superuser. It doesn't actually make you the superuser, but it implements functions that pretend you are.

      Anyway, then it compiles these functions into a library and tells the loader to link that library first. So when you start up a shell, it will call getuid() to figure out your userid, and your new library will tell it that you are userid 0. The shell prints out the root prompt instead of the regular one.

      But this in no way actually gives you root privs, if you go to edit /etc/passwd you will not be able to.

      Pretty funny joke, though, kind of like telling everyone that they can ftp to 127.0.0.1 using their own regular userid and password and find all the porn they could ever want...

      --

      -- Erich

      Slashdot reader since 1997

  32. Re: bugs in code by AceCaseOR · · Score: 3, Informative
    3rd party developers make buggy software too

    And when some third-party developers write buggy code, they really write buggy code. Remember "Return to the Pool of Radience: Ruins of Myth Drannor". Now that was a buggy game!

    --
    Zagreus sits inside your head, Zagreus lives among the dead, Zagreus sees you in your bed and eats you in your sleep.
  33. Linux is soo insecure... *sigh* by Azul · · Score: 2, Interesting
    It is surprising that, even though we are constantly finding local security vulnerabilities in Linux, some people still claim it is a relatively secure operating system.

    These are exploits in the most basic portions, against which a sysadmin can do nothing other than keep on patching things. It's not like you could have tunned this system to make it very secure, no, no matter how carefully you (or your distributor) set it, bang, a local exploit seems to be found every month or two.

    I'm seriously considering going back to BSD (maybe Debian GNU/NetBSD?), which seems to have a much much much better security track.

  34. what's that sound I hear? by Trepidity · · Score: 3, Funny

    It's the sysadmins of University email and webservers across the country going apeshit as suddenly the entire student body potentially has root...

    1. Re:what's that sound I hear? by scottking · · Score: 3, Funny

      I wish there was a +1 Used 'Apeshit' in a sentence modifier.

      --
      scott king
    2. Re:what's that sound I hear? by DiscoOnTheSide · · Score: 2, Informative

      meh, it just means I get to bitchslap anyone who tries this out of the university :)

      --
      Viva La Revolucion! Buy a Mac!
  35. Linux is not invulnerable by Azureflare · · Score: 2, Insightful
    Linux is not invulnerable to exploits, as we all know. Therefore, why are people making such a big deal out of it?

    It is important to know about, in my opinion. But that's just so we know we need to patch our kernels. Simply the fact that a root exploit has been found does not mean we should go about reposting the same types of stuff that has been posted endlessly before in similar articles on slashdot.

    I prefer linux because it's free. It's also pretty stable and secure, which is nice. But I just like linux for what it is. I fear we are getting sidetracked in the "my OS has less exploits then yours, nanananaaaaa" childish type of fights.

    I look forward to the updated kernel which will fix this issue for my distribution. Until then, I'm going to do some much needed maintenance on my box and barricade my room so no one but me can get in.... just kidding.

  36. Fix is merged in mainline already by spurious+cowherd · · Score: 4, Informative
    See the message on The kernel mailing list

    raw diffs to for those brave souls who want them

    --

    Time flies like an arrow, fruit flies like a banana.

  37. here's a patch by antonakis · · Score: 2, Funny

    ...though a bit big. www.openbsd.org

  38. Yawn! by erikharrison · · Score: 2, Insightful

    What news is this? There have been local exploits in the Linux kernel before, and there will be again. This is less news than the Debian break in a while back - that was worth mentioning because a major Linux installation was comprimised with an unknown kernel vulnerability. But come on! The last few 2.4 kernels (IIRC) have included patches to fix local root exploits. Marcello didn't even rush those out the door. This exploit certainly doesn't seem especially unusual nor was there an exploit in the wild.

    Newsflash kids! Linux isn't perfect! Certainly not Linux specific API extensions like uselib. Move along, this isn't the kernel vulnerability you are looking for.

  39. Major Difference by Tony · · Score: 2, Interesting

    Why is using MS update any different than downloading this new linux fix?

    First and foremost, the terms to which you must agree before you download and install. The MS downloads and patches often come with "interesting" end-user license agreements. Meanwhile, with the Linux kernel download, you can do whatever you like, including (*gasp*) fix it yourself, if you have the ability.

    Secondly, when you use Microsoft update, you don't know what is getting installed. With many things, like XP service pack 2, you get a lot of cruft that is useless.

    As far as popularity being the #1 indicator for available exploits: if that were true, Apache would be the most-exploited web server, since it has 65%+ of the market. Unfortunately, that's not true. IIS has many more published exploits, in spite of the fact that the code for Apache is available for inspection by the black-hats.

    There *is* a such thing as "being more secure." Yes, we can't be perfect. (In fact, I don't believe there is a such thing as perfection.) But that doesn't mean that one OS can't be objectively better than another.

    --
    Microsoft is to software what Budweiser is to beer.
  40. Combined with another flaw, it could be bad. by khasim · · Score: 2, Insightful

    All that this needs is to be combined with a vulnerability that grants remote access to a machine and you have a serious problem (provided that the remote access allows them to exploit this).

    All flaws need to be fixed. Even ones you don't think are very important because they could be exploited together.

    It doesn't matter how many holes Windows has compared to Linux. The exploits are usually scripted and tied to a port scanner. If you're vulnerable, you will be cracked.

    That's why multiple levels of security are a Good Thing (tm). Defense in depth is the only way to go.

    1. Re:Combined with another flaw, it could be bad. by sloanster · · Score: 4, Insightful

      All that this needs is to be combined with a vulnerability that grants remote access to a machine and you have a serious problem (provided that the remote access allows them to exploit this).

      - and if we had some ham, we could make ham and eggs, if we had some eggs... seriously, we could play "what if" games all day long, but let's not blow this issue all out of proportion. It is what it is and nothing more, and at the end of the day it will have resulted in none of the sort of disasters we see on a regular basis with the microsoft platform...

    2. Re:Combined with another flaw, it could be bad. by sloanster · · Score: 4, Insightful

      I keep seeing posts here about somebody setting their grandma up to run $DISTRO but nobody will admit then that said grandma might be easily duped into clicking that link in that e-mail to get the latest cookie recipe (or some other nonsense) and woops! there goes a local exploit and now her box is Pwn3d!

      This sort of thing is not as easy as you suppose - in the windows world one can write a quick vbscript to cause all sorts of nonsense, but on a unixlike platform such as Linux there would be a considerably higher barrier to the success of such shenanigans.

      It sounds like you're saying this isn't such a big disaster because there aren't that many Linux users...and that strikes me as a ridiculous point of view.

      I see you've failed to understand my statement. I'm at a loss as to how my meaning could have been contorted from "a potential local exploit isn't going to cause the sorts of internet disasters as we see regularly with windows" into the bizzare statement "hardly anybody uses linux" - (strokes beard thoughtfully). We can put the lie to that sort of thinking by simply considering the apache webserver, it's market share, and security record, compared to the microsoft iis web server, it's market share and it's security record. And by "security record", I don't mean "counting the number of advisories from all linux vendors and comparing them to the number of advisories from microsoft", which is a meaningless comparison. No, I mean "compare the frequency, scope and severity of the security incidents associated with the two platforms", which would be much more telling.

    3. Re:Combined with another flaw, it could be bad. by miu · · Score: 2, Insightful
      Seriously, we could play "what if" games all day long, but let's not blow this issue all out of proportion

      Dangerously wrong. It is incredibly common for web applications to have holes that allow execution of arbitrary programs. A "local only" vulnerability is the other half of the weakness an attacker needs to turn a simple coding or configuration error into a root exploit.

      --

      [Set Cain on fire and steal his lute.]
    4. Re:Combined with another flaw, it could be bad. by sloanster · · Score: 2, Insightful

      The reason that's not possible TODAY is security through obscurity, which isn't something you should be proud to rely upon. The only thing you can prove through that line of argument is that Linux has no significant desktop marketshare.

      I don't think you understand what security through obscurity is, and your reasoning is the same old joe sixpack thinking that we've heard before, that linux has a better security record only because it has a smaller user base than microsoft windows. By that same logic, apache should have a horrible security record - and yet, although the apache source code is open to the world, it has both a significantly higher market share, and a better security record than the closed source iis.

  41. Thank God... by mackman · · Score: 3, Funny

    Thank God I run Firefox!

  42. Maybe. by jd · · Score: 2, Informative
    It depends on how secure you want your system. Intel's new chips with built-in DRM, for example, would allow you to have a system where you couldn't remove the hard drive and install it elsewhere, or reboot into something that'll give access, using a live OS CD.


    Atmel, amongst others, produce encrypted RAM. If you don't have the key, you can't read the memory. That's pretty secure, if you ask me.


    Any OS with B1 (or better) security has comprehensive mandatory access controls, so that if you DO find an exploit somewhere, it is still not possible to access other parts of the system. (B-class and A-class OS' do not "need" a system admin account, since you can define specialised pseudo users that can do exactly what is needed for a given task and no more.)


    Then, there are systems like OpenBSD which have been audited to hell and back. OpenBSD has had one provably-usable exploit in living memory.


    Then, you've various security software that's out there. eg: Using OTPs w/ S/Key or OPIE for passwords, enforcement of strong passwords, IPSec w/ strong host authentication on all network connections, etc.


    In theory, there is nothing to prevent someone from combining all of these elements to produce a hardened OS that is impervious to both physical and logical attacks, both locally and remotely.


    In practice, nobody would spend the time and/or money on that level of security for normal use. Ok, the NSA might, but that's not strictly "normal use". It's also unlikely they'd make such an OS readily available. (They've done wonders with SE-Linux, and the declassifying of Skipjack and SHA has made a world of difference in cryptography, but that's not quite the same as Open Sourcing a bullet-proof system.)

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  43. For those who say "just a local exploit..." by erroneus · · Score: 4, Insightful

    This means only that it must be used in conjunction with a process that is exploitable. Let's say, for example, apache was running and there was an exploit available to it. Well, most people would say "oh well.... can't trash the whole machine, the apache user doesn't have the rights." Well once apache is compromised, they can likely find a way to inject the local exploit code for the apache user to run. Once that's accomplished, apache user becomes root user. From there, the machine is 0wned to borrow a word.

    Yes it's serious but I expect a fix shortly...

  44. Re:I'll give you one by nofx_3 · · Score: 2, Insightful

    You are just giving support to all the linux zealots out there. So what you are saying is that its worse to have a kernel exploit, than to have an os which can be crashed and seriously exploited from userland programs? I don't think so, linux tends to be pretty good at prevent user space programs from accessing or exploiting the kernel and thus crashing the system, windows has serious problems with this... like why are the web browser and user interface directly tied into the kernel.

    -kaplanfx

    --
    Visualize Whirled Peas
  45. Is this real? by agurkan · · Score: 3, Interesting

    May I recommend that Do not run this code if you can not understand what it is doing.
    For all we know, this is a social engineering trick to spread some malicious code. Let's wait until some official folks eg. CERT, or your vendor/distribution responds. Are the people who released this code have some credibility that can be verified independently?

    --
    ato
  46. Re:What, no remote exploit?!? by Foolhardy · · Score: 4, Informative

    Shatter attack

    It's a problem with Win32 messaging if windows aren't secured properly. It's possible for a process to send windows messages (the ones inherited from Windows 1.0) to another process, regardless of what account the processes are running as. There are a few messages (WM_TIMER esp.) that, as a parameter, take an address for the owning thread to jump to. You can also fill the contents of a text box with a message.
    Process A is a privilieged service running as SYSTEM. Process B is a malicious program running as a restricted user.
    A creates a window on the interactive desktop (a big no-no) with a textbox in it.
    B fills the textbox with exploit code with a message and then sends a WM_TIMER or similar to A with the exploit's address. A is now executing the exploit code.

    First, there are ways to divide the window handle space into seperate parts, each securable with desktop and window station objects. Both of these are kernel object types with ACLs: you can't send a message to a window unless you have access to the conaining desktop.
    Also, the JOB_OBJECT_UILIMIT_HANDLES flag for Job objects will prevent messages from leaving the job.
    MS guidelines specifically forbid the use of windows from a priveleged process from appearing on the interactive desktop, since NT 3.51, for this reason. This doesn't stop many third-party app developers from creating insecure apps (virus scanners esp.) that do just that.
    Winlogon's windows (press ctrl+alt+delete) are safe because they are on a seperate desktop that normal users can't send messages to.

  47. Unfortunately not the only one... by greppling · · Score: 4, Informative
    LWN article about some more local security holes in Linux published today. The advisory does contain some harsh words about Linux security as well.

    I'd really like to know what's being done about this pitiful trend of Linux security, where it's 10x as easy to find a vulnerability in the kernel than it is in any app on the system, where isec releases at least one critical vulnerability for each kernel version.

    And given his description of how he found these problems, plus his frustration about getting Linus and akpm to reply, his tone is even somewhat understandable.

    1. Re:Unfortunately not the only one... by Anonymous Coward · · Score: 3, Interesting

      From TFA:

      Between December 15th and today, Linus has committed many changes to
      the kernel. Between January 2nd and today, Andrew Morton has committed
      several changes to the kernel. 3 weeks is a sufficient amount of time
      to be able to expect even a reply about a given vulnerability. A patch
      for the vulnerability was attached to the mails, and in the PaX team's
      mails, a working exploit as well. Private notification of
      vulnerabilities is a privilege, and when that privilege is abused by not
      responding promptly, it deserves to be revoked.

      Yawn.. oh well. I'm sure someone will point out how this is MUCH faster than the turn around that M$ will give. But hey.. this is Slashdot after all.

  48. Re:What, no remote exploit?!? by shaitand · · Score: 2

    Windows is a distribution, an operating system IS a kernel.

    Semantics aside however, your right, comparing apples to apples gives a better comparison.

    The minimal windows install versus a minimal redhat install is a better comparison and there aren't many linux distros in which you'll ever find remote exploits in the core minimal install.

    It's still not perfect though, pretty well everything can be stripped from a linux box to harden it. A windows box cannot be hardened since most remote exploits are in core services and you can't remove or replace them in windows (the most famous example being IE).

    What cracks me up is that 2K/XP are touted as being an excellent step toward security and yet it's NT based systems which suffer from the most severe viruses and exploits.

  49. your wait is over. by twitter · · Score: 2, Informative
    *awaits justifications and explanations of why this is nothing like Microsoft*

    While I can't justify the difference, I'll tell you that there is one if we don't see any regularly recurring network born auto-root that's so bad it threatens the top level domain servers. It's not like someone cracked kernel.org and owned it for three months injecting whatever they pleased into the codebase. One good explanation of the difference is that Marketing dorks who do little more than buy other's code can't maintain it properly.

    --

    Friends don't help friends install M$ junk.

    1. Re:your wait is over. by dedazo · · Score: 2, Informative
      It's not like someone cracked kernel.org and owned it for three months

      No, just GNU.org http://uk.builder.com/manage/work/0,39026594,20277 728,00.htm

      --
      Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
  50. Re:What, no remote exploit?!? by shaitand · · Score: 2, Interesting

    This would be false. It's not the gui front end most people recognize as IE that is the problem. It's the renderer and trust model behind it.

    The same flawed engine is used to display your folders (turn on the location bar and type in a url, see what happens), your desktop, and your email in Outlook express and even most 3rd party apps. If you use AOL, it uses IE to render web pages. When you view a help file, guess what it's IE. It is impossible to avoid IE on a windows system.

    By choosing a browser which uses it's own renderer and an email application that does the same, you ARE at least reducing the opportunity for 3rd party sources to access the renderer and it helps a great deal. The problem your left with then is that apps like firefox are still dependent on IE's trust model (the entire trust model of the OS is built around it) when running on windows. This is why almost every major "exploit in firefox" only affects firefox on windows.

    There are plenty of other broken pieces in windows, but I've tried to stick to examples of why simply not using IE still leaves you vulnerable on windows.

    On windows your best bet is to run as an unpriv'd user as much as the OS allows, use 3rd party email and browser apps (that use a different renderer). And don't forget to stick it behind a firewall that isn't running windows or better just keep it off the network. Also never put a disk in a windows box that came from outside your network unless it is from a known publisher and you've scanned it for viruses on a disconnected machine. Aside from that, you really just have to pray.

    None of that is saying any particular other OS is secure, that's another matter entirely. I'm just saying that clearly windows is NOT and you CANNOT remove the components needed to lock it down.

  51. Re:Failed on Debian by ecliptik · · Score: 2, Informative

    I got it to compile and run on Debian Sarge with gcc version 3.3.5, kernel 2.4.25-1-386, and it says it succeeded, but I'm still my normal UID, just drops me into a bourne shell:

    micheal@jezebel:~/dev$ gcc -v
    gcc version 3.3.5 (Debian 1:3.3.5-5)
    micheal@jezebel:~/dev$ uname -a
    Linux jezebel 2.4.25-1-386 #2 Wed Apr 14 19:38:08 EST 2004 i686 GNU/Linux
    micheal@jezebel:~/dev$ ./elflbl -n5

    [+] SLAB cleanup
    child 1 VMAs 65527
    child 2 VMAs 65527
    child 3 VMAs 65527
    child 4 VMAs 28849
    [+] moved stack bfffe000, task_size=0xc0000000, map_base=0xbf800000
    [+] vmalloc area 0xcbc00000 - 0xd77c0000
    Wait... \
    [+] race won maps=40880
    VMAs reversed
    expanded VMA (0xbfffc000-0xffffe000)
    [!] try to exploit 0xcc98c000
    [+] gate modified ( 0xffec90b0 0x0804ec00 )
    [+] exploited, uid=0

    sh-2.05b$ whoami
    micheal
    sh-2.05b$ cd /root/
    sh: cd: /root/: Permission denied
    sh-2.05b$
  52. *raises hand* by marcello_dl · · Score: 2

    errm...

    SElinux?

    (don't even get started on the easyness of setting policies for selinux, you get offtopic: post the link of a MS equivalent else you lose the argument :D )

    --
    ---- MISSING MISCELLANEOUS DATA SEGMENT --- [sigdash] trolololol
  53. Patch available (testing) by zCyl · · Score: 2, Informative

    Second, it'll probably be patched rather quickly.

    There is a preliminary patch in testing for the 2.4 series.

    Look here.

    The file is patch-2.4.29-rc1.bz2

    Note that it's in TESTING, because it probably needs testing yet. But if you're desperate to patch it up quickly at your own risk, then there you go.

  54. Doesn't work? by andfarm · · Score: 2, Interesting

    Segfaulted in sys_mmap2 when I tried it on a couple machines. For what it's worth.

    --

    TANSTAAFI: There Ain't No Such Thing As A Free iPod.

  55. Re:How do universities, etc. deal? by JonMartin · · Score: 3, Insightful
    Well, it's Friday at 1730 as I type this. I'm about to download 2.4.29-rc1 (which has a fix). Then I'll shoe horn some oddball patchballs into it (they haven't applied cleanly in a few kernel revs), config, make and test. If all goes well I'll be rolling it out and rebooting our ~150 Linux boxes by 1900.

    In short, this one is too big (too exploitable, too public) to wait until Monday.

    My life would be so much easier if profs didn't have such a hard on for Linux and let us admins install OpenBSD. Good thing I get paid overtime. Oh wait, I don't.

    --
    Serve Gonk.
  56. Re:What, no remote exploit?!? by Foolhardy · · Score: 3, Informative
    I thought MS issued a hotfix for this a couple of years ago, around about the time XP SP1 was released, I thought.
    Sending unsolicited WM_TIMER messages to another process has been blocked, but there are still other messages that can cause arbitrary code execution. The messaging model was inherited from versions of Windows way before security was considered. Sending messages (even the unsafe ones) to other processes can't be blocked or it would break way too many things. No security isn't an option in NT, so the solution is to break the environment into sandboxes. Inside each sandbox, however, there is no security; all the security is at the front door.
    So why, when security flaws are caused by applications doing something that the Windows API documentation specifically instructs them not to do, is this considered a flaw in Windows?
    It's not, but that doesn't stop some people from blaming Windows anyway. It also doesn't prevent 3rd party developers from writing insecure apps, that (when trusted by an admin) can break the system. Notice that Microsoft threatens to stop supporting interactive services in the docs, to try and get developers to clean up their act, but they will never do it, as Microsoft has compatibility as too high a priority.
  57. No, think about it ... by Seraphim_72 · · Score: 3, Interesting

    Actually copyrighting the exploit is kinda cool. Say you are a admin, and some kid gets fresh and tries this out. "Hey kid, not only am I nailing you to the wall for this, but I am turning you over to the guy who "owns" it and you get to pay him a nice fine." No, I think that is it pretty hilarious that the code is copyrighted.

    Sera

    --
    Slashdot, where armchair scientists get shouted down and armchair theologians get modded up.
  58. That's right! Stick with 2.0.36 by Tom7 · · Score: 2, Funny

    That's why I've been sticking with 2.0.36 all these years. I haven't seen a security advisory for it in ages.

  59. Dangit... by catdevnull · · Score: 3, Funny

    All those MCSE dorks down the hall are gonna give me sh*t for the next week.

    Reminds me of a punchline to my favorite Scottish joke:
    "Aye, lad...ya screw ONE goat..."

    --

    I might know what I'm talkin' about, but then again, this is Slashdot...
  60. Re:What, no remote exploit?!? by pVoid · · Score: 2, Insightful
    Because the API has a structure: any object running in the current interactive desktop is considered part of that security context. Period. It's not a question of having left the door unlocked. In fact, anyone who defends that "rm -rf /" should not be hidden from the user can have no legitimate protest to this system design.

    Consoles apps (not consoles themselves*) are not vulnerable because they are not part of the windowing system, they output to the window via stdout/stdin/stderr.

    As for X, I don't know the structure of the windowing system, but the basic problem is not that apps are broken into, the problem is that any window sitting on your desktop is assumed by the OS to be owned by YOU. So, it shouldn't be illegal for a different app owned by you to send it a window message (like typing "rm -rf /").

    * A console app is any app like cp or mv that you can invoke from a command prompt. These apps are unaware of windows and its messaging structure and therefor not vulnerable. Cmd.exe itself is probably aware of the messaging system though, since I'm sure it actually implements its own console.

  61. Re: bugs in code by FireBreathingDog · · Score: 2, Funny
    I don't know what sigma level Microsoft is at but with 2 defects per 100 is 360000 per 1,000,000 lines of code. That puts them at a sigma level between 3 and 4. The Majority of software makers are below that. Yet if MS were six-sigma (they sell software that tracks it) they would have only 61 defects for those 18 million lines of code.

    That's why you should always put curly braces on their own lines, to increase your total lines of code. Helps achieve a more favorable sigma.