Slashdot Mirror


New Linux Kernel Crash-Exploit discovered

Ant writes " According to linuxreviews article's on 6/11/2004, there is a nasty bug that lets a simple C program crash the kernel (2.4.18-2.6.x reported so far), effectively locking the whole system. Affects both 2.4.2x and 2.6.x kernels on the x86 architecture. This exploit can be compiled and run without a root access and with a shell access. There are detailed information and source code mentioned. " You need to have shell access to run this program; it's also worth noting that not *all* flavors are vulnerable. Please read article for the full details.

40 of 691 comments (clear)

  1. Re:There's a big difference... by martingunnarsson · · Score: 1, Interesting

    Exactly, it's been a long time since the lack of patches was the biggest security problem with Windows. On the "home"-versions of Windows, automatic installation of patches should be mandatory for internet connected machines. Of course Micrsoft shouldn't use this feature to install *all* patches, only the critical ones.

    --
    Martin
  2. Re:There's a big difference... by cgenman · · Score: 4, Interesting

    I love how "properly configured firewall" is the solution to everything. Hackers root your box? You didn't have a properly configured firewall. System eaten by a worm? You should have had a properly configured firewall. Your windows box zombified and sending out spam? Seriously consider investing in a properly configured firewall.

    Forget the firewall, get a properly implemented system.

  3. Re:This is another reason why C should be deprecat by sqrammi · · Score: 2, Interesting

    No, it's not because C is being used here. It's because assembly is being included in the program. If you weren't able to compile the inline assembly, you wouldn't be able to compile this program on a specific system. Plus, you can just create a raw ELF binary that has this assembly instruction in it (if you knew all the opcodes, etc.) and crash a system. This has nothing to do with the language that is being used.

  4. Re:The best way to avoid this bug by fubar1971 · · Score: 2, Interesting

    Actually the best way to avoid this exploit is to remove shell access for all accounts except for the Administrator and root. If someone gains access to those accounts, it doesn't matter about the exploit, because your b0x3n is alreadey 0wn3d.

  5. Re:Fixed quickly. by immytay · · Score: 3, Interesting

    Don't get me wrong, I enjoy Linux, but keep in mind, the article is 3 days old.

    Also, how will I be to apply the patch and where is it? Do I have to recompile my kernel?

    If this were a Windows bug, it would have been thoroughly exploited, made the news, and I would have already applied the patch by clicking "Windows Update". A bigger deal would have been made of it, but it would have only taken about a minute of my time.

    I do prefer Linux, but we need to be open-minded.

  6. Re:There's a big difference... by Anonymous Coward · · Score: 3, Interesting

    Here's a neat trick to try under Windows 2000.

    Open a command window (start->run->"cmd")
    Ping any host (for example a host on your lan)
    Now press F7 and enter a couple of times.

    The machine reboots :)

    This works on almost every W2K machine I've tried on, regardless of SP level. In general, local exploits like these aren't taken seriously at all on Windows. Basically, if you've got full access to the machine all bets are off, there's just so many ways to bluesceen the machine intentionally, many including interesting ways when messing with a cd-rom drive :) Contrast this with Unix/Linux having a long history of being multi-user OS's and regarding these issues as serious. We've been patching these issues for decades now and unforuntatly will likely continue to do so, but only recently has MS even aknowledged this as a problem.

  7. 2.6.5 not really affected but acting odd by mycroft_rayok · · Score: 3, Interesting

    I ran this code on "2.6.5-gentoo-r1 #4 SMP Thu May 27 19:12:27 GMT 2004 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux" and although it didn't crash, gnome started acting all odd, and none of the terminals were responsive. They just kept printing out the prompt. Still, I could browse slashdot while the code was running, and could run some applications. Although when I went to open another terminal it opened 6.

  8. UML? by spacefrog · · Score: 4, Interesting

    Very vital question for the UML virtual server leasing cottage industry and the customers of same.

    If this were to be run on a UML session, what would happen? Would the damage be limited to that UML session, or would the host machine go down?

    1. Re:UML? by rf0 · · Score: 2, Interesting

      Intrestingly it appears UML is immune. I've just tested on a varity of systems and you get a floating point exception and thats it...

      Rus

  9. Re:There's a big difference... by Ford+Prefect · · Score: 4, Interesting

    You know why? Windows users don't tend to care. They don't read Windows news sites daily, they don't subscribe to mailing lists that send out warnings as soon as a vunerability is found. They don't patch when Windows tells them to.

    Sudden thought - is there much of a Windows 'community', or has it all fragmented into myriad different areas?

    That's possibly one aspect in security that's often overlooked; for instance, when the recent Mac OS X vulnerabilities became known, word went around the Mac community very quickly, and people discovered new aspects of the problems, created workarounds like Paranoid Android...

    There's something very similar with Linux as well - but is there a Windows equivalent of, say, Slashdot? Do Microsoft-oriented community discussion sites exist, complete with flamewars over widget styles in Microsoft Word, etc etc etc?

    Or do you have to be an underdog for such a thing to exist?

    --
    Tedious Bloggy Stuff - hooray?
  10. Re:Who has shell access? by D_Gr8_BoB · · Score: 2, Interesting

    I work in a university environment, and maintain four shell servers for general student, staff and faculty use. It's also never a good idea to assume you're safe because a certain vulnerability is local-only, since attackers often combine a "harmless" local attack with a "harmless" unpriveledged remote attack to great effect.

  11. Re:There's a big difference... by grahamlee · · Score: 4, Interesting

    I think it's probably just fair to say that the number of Linux-scriptkiddie wannabies is as nonzero as the number of Windows-scriptkiddie wannabies, and that a trivial piece of code guaranteed to crash any Linux/x86 system is attractive to any number of scriptkiddies. They just chose to crash someone else's machine instead of their own - I went for trying it out on the latter and have since modified the kernel on that machine. Note though that the phrase "lame free-shell provider" is not attributable to the author of TFASA, who does go on to say "this is illegal in most parts of the world and strongly discouraged". That phrase was probably passed on to them by some skiddie who wanted to go "hey look at me i am so l33t it's unbelievable i can like read gcc-bug and everything!!!11".

  12. Re:OS bugs are like golf... by rabtech · · Score: 2, Interesting

    Well it is Microsoft's fault for saying that IE and such are part of the OS, but Windows has had very few kernel exploits in the most recent few years; it is mostly IE holes and, prior to IIS 6, IIS holes.

    This was made worse by the fact that many people run as admin and IIS used to run as LocalSystem on default installs.

    However all software has bugs; this incident is neither proof positive or proof negative of any argument re: open source vs closed source.

    --
    Natural != (nontoxic || beneficial)
  13. Re:OS bugs are like golf... by SQLz · · Score: 2, Interesting

    Who cares about the Windows kernel when there are about 1000 other ways to gain full unmitigated access over a Windows PC. Outlook Express exploits, MSN Messenger exploits, BlackICE exploits, RPC exploits, IIS exploits, IE exploits. You can even root them in masse without even gaining initial access to the box. This linux exploit allows you to crash the box if you have an account. What moron paying for a shell account is going to do that? Or what type of cracker is going to give himself away simply to crash the box?

  14. Windows Community by Allen+Zadr · · Score: 4, Interesting
    WinDrivers.com - is very much a Windows community site (there are others as well). Most Windows admins I know belong to this site. There are forums there, but there's not so much flame-wars about design (something they have no control over), but there are wars over the best default security settings to leave lUsers with, etc.

    It's good reading for anybody interested, however, unlike slashdot, registration is required.

    --
    Kinetic stupidity has a new brand leader: Allen Zadr.
  15. Re:There's a big difference... by ynohoo · · Score: 3, Interesting

    Funnily enough the Windows version of Slashdot is Slashdot. It's also the equivelent site for Mac OSX, BeOs, Amiga... you may have noticed that Taco & friends don't wear the full strength Linux blinkers.

  16. Crashing FreeBSD by mathematician · · Score: 2, Interesting

    I year or two ago, this simple program used to do the same for FreeBSD:

    #include <stdio.h>
    main() {
    FILE *f;
    while (1) {
    f = popen("date","r");
    }
    }

  17. Re:OS bugs are like golf... by RAMMS+EIN · · Score: 2, Interesting

    ``Who cares about the Windows kernel when there are about 1000 other ways to gain full unmitigated access over a Windows PC.''

    Yes, and who says these aren't present on Linux systems? Do you claim that all Linux distros have been as heavily assaulted as Windows, and kept up? I don't think so, and therefore I don't think we can say anything about the security of a Linux + libs + apps system.

    --
    Please correct me if I got my facts wrong.
  18. Re:Fixed quickly. by kaiidth · · Score: 5, Interesting

    Mind you, at the risk of replying to myself it is worth noting that the patch currently available actually does nothing more meaningful than checking to see if the code that got you there is this exact exploit or not... so I would expect a better patch to be coming out that actually deals with the real problem, which appears to be that some poor munchkin started to write an FPU exception handler somewhere near version 2.3 and got distracted before finishing it. I assume though that the production of such a patch implies working out what the dude actually meant to do, first.

  19. Re:The best way to avoid this bug by foidulus · · Score: 2, Interesting

    Well, so far I have received funny, interesting, offtopic, and flamebait mods. Nothing beats the sampler.

  20. Re:Similar windows problem by yeremein · · Score: 3, Interesting
    Scroll down to the end of that article:
    On 2002-10-29, another third party, who had access to a Windows NT XP system with the first service pack applied, reported to me confirming that on that system it was now impossible to reproduce this bug.

    So, it's been fixed in XP SP1. Months after the flaw was reported, and with a woefully incorrect knowledge base article too.

    Also, it hasn't been fixed in NT4, and it hasn't officially been fixed in 2000 either, although it seemed to go away after Win2K SP3.
  21. Re:There's a big difference... by frankrachel · · Score: 2, Interesting

    Yes, the problem was solved, but *how* does that fix get propogated to the masses. And I don't mean the techno-savvy masses - I mean my brother who I set up with Linux. He's not going to be patching his kernel, I can tell you that. He doesn't even know what a kernel is. Is an "auto installable" patch available for all the distributions? If not, then who cares how fast it was found and that a "patch" fix was available. When will the fix that ANYONE can easily install be available?

  22. Patch doesn't work for me, 2.4.26 by TDot · · Score: 5, Interesting

    I have a "very nearly vanilla" 2.4.26 kernel - all that's patched are some netfilter things for more targets. This patch didn't work for me - the patch went fine (my signal.c is no different from vanilla), and the resulting kernel booted fine, but the exploit still crashed my box. I'm using gcc-2.95.4 , Debian 3.0 (Woody). No I didn't forget to run lilo or whatever (i'm using Grub). Any ideas?

  23. Re:Real crash.txt info and fix by markan18 · · Score: 2, Interesting

    I have compiled it and running it right now. That code sucks 99% of cpu but no crash. I have an "old" 2.6.1 kernel compiled from gentoo development-sources. It seems that exploit does not work on my machine.

    No carrier loss here, 5 minutes and still running.

  24. Re:disable compiler access for non-trused shell us by NicolaiBSD · · Score: 2, Interesting

    That's not much of a solution; I'd just compile the binary on another system with matching library versions and then upload and execute it on your machine.

  25. What does the patch fix? by Urban+Garlic · · Score: 4, Interesting

    Question for the kernel gurus out there -- I read the article and the patch (so sue me), and it seems to me that the patch just redirects the signal-handler flow if sig==8.

    This may well protect against the example exploit, but what happens if you get a floating-point exception in the handler for some other signal?

    The provided patch does not look like a real fix, unless the deeper bug really does just involve sig==8.

    --
    2*3*3*3*3*11*251
    1. Re:What does the patch fix? by pclminion · · Score: 3, Interesting
      It isn't a fix, just a patch. Think of it as a software bandaid. It covers the problem and gives the kernel developers time to fix it the right way, but in the meantime, it interferes with normal operations. Just like a real bandaid.

      And nobody ever said bandaids were bad, right?

    2. Re:What does the patch fix? by Anonymous Coward · · Score: 3, Interesting

      Why not have the signal handler issue a FNCLEX? If floating point activity isn't supposed to be going on at that point in the handler anyhow, then it'll clear any of the malicious garbage out of there. Then there's no reason to check on a specific signal type.

  26. Re: My Experience with the Linux by Anonymous Coward · · Score: 1, Interesting

    LOL!!....what a fucktard.

  27. Although Windows is Easier to apply patches to... by koniosis · · Score: 4, Interesting

    The update may be avaliable faster than Windows, but you cannot say that it is /easier/ to apply than a Windows patch. I hate recompiling my kernel, it always takes me a number of attempts until everything works. Also my server is running Linux and is serving two houses of people with net access, I can't just take it down and mess around with it for hours while I have fun trying to get a working kernel. So regardless of when the patch was released I still need to wait until later tonight to apply the patch.

    --
    I spent ages trying to think of sig, but never did :(
  28. Re:There's a big difference... by southpolesammy · · Score: 2, Interesting

    The tin-foil-hat crowd would probably also know how to disable any auto-patching. However, for the vast majority of Windows users, this would be a really, really good thing to have. To most of them, the computer is no different than a toaster or the cable box -- it just has to work. If that means little green guys inside the computer update it when needed, that's sufficient for most.

    The reduction in spam and viruses alone would be worth the effort.

    --
    Rule #1 -- Politics always trumps technology.
  29. [venom]For a moment I thought you were serious .. by flyingace · · Score: 2, Interesting

    For a moment I thought you were serious, as I read the first 2 lines of your post ... I felt this venom building up inside me. They I saw, you thread was maked funny. What a relief.

  30. Re:There's a big difference... by johnnyb · · Score: 5, Interesting

    I think that's because automatically patching is not the solution either. The problem is that many computer users want "easy" solutions to difficult problems. They would rather take an easy road that claims to work rather than one that actually solves the problem.

    My Dad is a perfect case-in-point. He's an upper-level manager of a company. He was telling me about a piece of software he was planning on purchasing. I asked him about security. His answer was, simply, that the salesperson said it was secure.

    There's two things wrong with this:

    1) He took the salesperson's word. In previous generations, people's words meant something. Trying to train them to think skeptically is difficult. In addition, by what yardstick would he, a non-technical manager, measure security? What's worse is that I've met his IT staff, and I wouldn't trust them to measure security, either.

    2) He thinks that security is a yes/no option. Security is nothing like that. If someone were to be honest with him, and tell him that nothing is truely secure and it's all trade-offs, and then explain the trade-offs of their particular product, I'm sure he would have thought they were weaseling, when in fact they were telling the truth.

  31. Re:There's a big difference... by Solosoft · · Score: 2, Interesting

    Why microsoft did just that. Windows XP SP2 has a new "security" center. It makes sure you have the 3 things which have haunted windows for ages.

    - Automatic Updates
    - Firewall
    - Anti-Virus Solution


    Windows XP SP2 has a new "Security Center", it will popup and complain to the user and tell it WHY it's enabling these things. Of course for people like us (mostly geeks) it's very annoying having Windows tell you what it's doing and if you choose not to it does it anyways.

    Example: I am behind a Router/NAT and it complained it wanted it's firewall. It took me 20 minutes to find out how to disable that menu so it doesn't come up going "your computer is insecure".

    The good thing about this is people who are open to the internet no longer worry about crap like this. Windows updates them , makes sure the AV suite is upto date and enables the firewall on all internet connections. The Firewall is better now not just blocking all the ports but it asks "Hey yahoo wants the net" so you can accept or deny it.

    Once SP2 is out in final im sure all these little problems windows has with users hopefully will be solved.

  32. They DO care. But are afraid... by mangu · · Score: 2, Interesting
    At one time, when I first got internet access, I used to keep my windows machine patched to the latest releases. Until I got into some sort of singularity, where I needed a patch I hadn't downloaded yet in order to download that same patch. Iexplore stopped working without that patch. After a week of messing with the computer, the only way to get internet access working was to format and re-install.


    Lessons learned: (1) use Linux and keep it up-to-date with apt-get; (2) in the games partition which runs windows, *never* patch anything.

  33. Re:There's a big difference... by Anonymous Coward · · Score: 1, Interesting

    I hear your pain. Hell, we have a review board process that requires a written submission with regression testing alond with approvals from each affected departmental for something as small as a configuration change. Each dept has veto power on any change. Not only that, the downtime window is 30 minutes on the weekend and it's usually booked solid a few weeks in advance. I love people who think that production machines can be patched on a whim, not everybody works at Ma and Pa's convenience store "admin-ing" a POS system.

  34. It's funny by Joust · · Score: 3, Interesting

    I see comments about how it only took a few days for the open source community to respond to this bug. In a comment made by Ayanami Rei, an article is linked that is dated December 12, 2003 that details this problem. Isn't that a 6-month response time to this issue? It would appear that Linux is subject to the same patching issues as MS is, even though the reasons are a bit different.

  35. In other news; "I be I could ..." by danalien · · Score: 2, Interesting
    crash your computer, from bash, in 1sec flat!

    by typing:

    1. :() { :|: & } ; :

    at the bash-prompt :-)

    ref.url : http://forums.gentoo.org/viewtopic.php?t=67302

    --
    I don't claim I know more than I know, and if you know you know more than I know, then by all means, let me know.
  36. Re:There's a big difference... by Captain_Chaos · · Score: 2, Interesting

    They don't care, they don't want to "break" anything, ...

    And rightly so. Day before yesterday, I was reinstalling Windows Millennium on my mom's PC. It was running nicely, but then I had the bright idea of running Windows Update to make sure I had the latest stability and security patches. Bingo: Internet Explorer didn't start anymore (hung the computer, requiring a reboot), and neither did anything even remotely having to do with Internet Explorer (including, of course, Windows Update). Had to reinstall Windows, now it's chugging along in its default install configuration (but with Firefox as browser, Thunderbird for email and behind a Linux firewall!)

  37. this *is* a big deal by sentientbrendan · · Score: 4, Interesting

    The *first* post I see is some bullshit lauding the superiority of the opensource development process with this as an example. RTFA. Here is some sensible info and advice.

    1. There *was no patch*. Some systems were immune, but that was completely by chance.
    2. There is a patch *now*, but the article also says people are already using the thing to crash free shell providers on day 0.
    3. The patch, at this point, requires a kernel recompile. Not everyone running linux knows how to do that. Many who do are too lazy. Don't give me some shit about how everyone running linux is so 1337 that they will be sure the have already patched their system. I know you. You aren't that 1337.
    4. Yes, this *is* a big deal. We were caught with our pants down, plain and simple. This *is* worse than any windows security issue that has come up in a long time.
    5. Please *do* compile the demo code against your system and test it. If your system crashes, please patch. Don't act like many and just ignore this, especially if you are running a server or anything that stays connected for any amount of time. It also might be a good idea to turn off your telnet and ssh daemon (yes, even ssh) until you patch.
    6. If you are *not* running linux or not running on x86, it might also be a good idea to test the demo code against your system. If you are running windows, some versions of windows *do* support possix to a limited degree. The code *might* compile. Then there is also, cygwin. This is probably a bug specific to linux x86, but it won't hurt to check.