Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Critical Security Hole in Linux Wi-Fi

Posted by CmdrTaco on Sun Apr 15, 2007 10:34 AM
from the nobody's-perfect dept.
thisispurefud writes "A flaw has been found in a major Linux Wi-Fi driver that can allow an attacker to run malicious code and take control of a laptop, even when it is not on a Wi-Fi network."
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.
  • patched already (Score:4, Insightful)

    by yagu (721525) * <yayagu AT gmail DOT com> on Sunday April 15 2007, @10:36AM (#18741577)
    (Last Journal: Wednesday August 15, @03:36PM)

    So here is a Linux driver problem, a patch is available, though not widely dispersed. The news here is that even in a largely neglected (though it shouldn't be) slice of the Open Source technology, specifically the deadly difficult wi-fi landscape, bugs are found and fixed right away (at least that's the gist of part of the article).

    I'm more afraid of the neglected patches MSFT deems behind closed doors as not important enough to reveal to the public. How many zero-day exploits is MSFT discussing behind those closed doors right now, and what are they deciding about the fate of security to my machines?

    I know I'm spinning here, but I don't find it much of a stretch to interpret this as good PR for the Linux world -- they find problems, they fix them.

    (It doesn't seem to fix the other problem... I'm so sad and tired of trying to get laptops running linux reliably with wi-fi, I barely even bother messing with it anymore... If I want wireless linux on a laptop, I'm doing via Vmware's bridge. It shouldn't be like this.)

  • Patched! (Score:2)

    by LinuxGeek (6139) * <linuxgeek.djand@com> on Sunday April 15 2007, @10:36AM (#18741585)
    Already been patched, read TFA. My laptop has been patched for a while already, so have most people that actually pay attention to security posts.
    • Re:Patched! by Ayal.Rosenthal (Score:1) Sunday April 15 2007, @10:55AM
      • Fixed! (Score:5, Insightful)

        by tjwhaynes (114792) on Sunday April 15 2007, @11:33AM (#18742011)

        My concern is that you are right - "so have most people that actually pay attention to security posts." The strong benefit of Linux vis-a-vis MSFT (and its not price) is that as an open system you have an nearly unlimited pool of the best computer code writing minds constantly updating and improving upon one another's kernel code around the world.But, if when errors are uncovered and corrections made, patches are only known to that pool of people then mass users will be exposed to significant security risk. The average Joe running Linux will suffer and that hurts the entire community in both reputation and user adoption rates.

        You are overlooking the way that most Joe Linux users get their updates - automatically. When security flaws are found and patches are delivered, you can guarantee that the people who package that software at Redhat, Ubuntu, Debian and other major distributions are aware of the update. Those security patches will be tested and rolled out into the main update repositories, probably within 24 hours to all the mirrors worldwide. The automatic update daemon on Joe User's modern Linux distro will be downloading the update within the next 24 hours or sooner. From security patch being announced to patched home computer in 48 hours in the worst-case scenario.

        One of the nicest things about the distro's automatic updates is that this applies to ALL packages in the distro. I don't need to worry about Apache needing it's own updater. So no - the average Joe running Linux does not suffer - he gets informed about the update or even has it applied without manual intervention depending on the settings. Joe benefits and so does the community who recognise that fixing security flaws promptly is key.

        Cheers,
        Toby Haynes

        [ Parent ]
        • Re:Fixed! -not! (Score:5, Interesting)

          by quixote9 (999874) on Sunday April 15 2007, @12:21PM (#18742409)
          (http://molvray.com/acid-test/)
          Um, "Joe Linux" here, chiming in. I run Fedora, which was pre-installed on oddball hardware. If Fedora has automatic updates like Ubuntu, and if they just work, I sure as hell haven't heard about them. The Fedora repository is about 10% of the way to useful. 15%, when I'm feeling charitable. I'm on Core 3 because I haven't found a distro that can deal with my system, and, since I'm a biology geek not a computer geek, I have no idea what to do or the time to spend finding out.

          It gets worse. I don't even know if I'm running a madwifi driver or not. I looked at the running processes, but there's nothing obvious there. I don't know if madwifi is called something else in the process list. I do know I have a Atheros chip.

          The point I'm trying to make is more than just displaying ignorance. The point is that it may be hard for those of you who are close to the subject to realize just how opaque it is to those of us who aren't. If you're in the know, share their knowledge. It's kind of frustrating, from my perspective, to hear, "It's all automatic, and if it's not, you're just too hopeless to deal with."

          (All that said, you're quite right that when updates are applied automatically and effectively, both the clueless and the clued benefit. That's why I'm getting my next system with Ubuntu on it!)
          [ Parent ]
          • Re:Fixed! -not! by Arkaic (Score:1) Sunday April 15 2007, @12:54PM
          • Re:Fixed! -not! by PitaBred (Score:2) Sunday April 15 2007, @01:00PM
          • Re:Fixed! -not! (Score:5, Informative)

            by LibertarianWackJob (881478) on Sunday April 15 2007, @01:14PM (#18742831)
            (http://www.kaptain.us/)
            Hi "Joe"
            You won't be getting any updates for FC3 since the Fedora Project has dropped support for that. If you like the Fedora distribution you can go with FC6 or wait for May 24 when FC7 is due to be released. Otherwise, Ubuntu is a fine distribution.

            Try this:

            su -

            crontab -e

            # cron for root
            # update system at 4AM daily
            0 4 * * * /usr/bin/yum update
            [ Parent ]
          • Re:Fixed! -not! by muszek (Score:2) Sunday April 15 2007, @01:25PM
          • 2 replies beneath your current threshold.
        • Re:Fixed! by DoofusOfDeath (Score:1) Sunday April 15 2007, @01:06PM
          • OT by tjwhaynes (Score:2) Sunday April 15 2007, @09:59PM
            • Re:OT by DoofusOfDeath (Score:2) Sunday April 15 2007, @10:26PM
              • 1 reply beneath your current threshold.
        • Re:Fixed! by IamTheRealMike (Score:2) Sunday April 15 2007, @01:31PM
          • Re:Fixed! by orkysoft (Score:1) Sunday April 15 2007, @05:10PM
            • Re:Fixed! by IamTheRealMike (Score:2) Monday April 16 2007, @07:30AM
              • Re:Fixed! by orkysoft (Score:1) Monday April 16 2007, @11:39AM
        • 1 reply beneath your current threshold.
    • Re:yes. only losers spend their time 'working' by LinuxGeek (Score:2) Sunday April 15 2007, @11:34AM
      • 1 reply beneath your current threshold.
    • Re:Patched! by nagora (Score:2) Sunday April 15 2007, @03:46PM
    • 3 replies beneath your current threshold.
  • by pcmanjon (735165) on Sunday April 15 2007, @10:37AM (#18741589)
    What if you ifdown the wireless interface when not in use, can this prevent an exploit? It seems like it would unload the interface, but the kernel drivers would still be present. Does the kernel still monitor the wireless signals regardless of the ifup status?

    I'm lucky my laptop has a switch on the side, when switched OFF wireless networking seems to be disabled. It seems to be a hardware disconnect for the antenna.
  • thisispurefud? (Score:1, Redundant)

    by linvir (970218) on Sunday April 15 2007, @10:40AM (#18741605)
    No it's not. Holy shit. Can't we even talk about security holes any more without it being FUD?
  • PC World Article?! (Score:2, Troll)

    Thanks for the useless link. Anyone with a link to an actual advisory, LKML post, lwn, etc that might have some actual information in it?
  • by Anonymous Coward on Sunday April 15 2007, @10:43AM (#18741627)
    A bug in Linux Wi-Fi doesn't matter. No one can get the fucking thing to work anyway.
  • In other news.. (Score:2, Insightful)

    by Ckwop (707653) * <Simon.Johnson@gmail.com> on Sunday April 15 2007, @10:46AM (#18741643)
    (http://www.ckwop.me.uk/)

    ... take a look at Microsoft's patches this month. [bbc.co.uk]

    It doesn't matter which operating system you use - they all contains buffer overflows. In a way, the consumer is to blame for this. BSD has been whiling with little to no market-share despite the fact it's free. Nobody it seems wants software that's secure out of the box and stays secure.

    People want features and features are the enemy of security. So the status-quo continues even though we've known how to fix these issues for forty years.

    Simon

    • Re:In other news.. by jeevesbond (Score:2) Sunday April 15 2007, @11:00AM
    • Re:In other news.. by mackertm (Score:1) Sunday April 15 2007, @11:07AM
    • Re:In other news.. by Nezer (Score:2) Sunday April 15 2007, @11:16AM
    • Re:In other news.. by Ant P. (Score:2) Sunday April 15 2007, @11:23AM
    • Re:In other news.. (Score:5, Informative)

      by TheRealMindChild (743925) on Sunday April 15 2007, @11:57AM (#18742205)
      (http://www.mindchild.net/ | Last Journal: Tuesday November 29 2005, @10:16AM)
      they all contains buffer overflows

      Actually, this kind of crap goes away when you stop using NULL terminated strings and put in size checks.

      • Start using a BSTR or std::string or christ, even CString.
      • If you're going to use a char * as a string, stop using strcpy/strcat/sprintf/strfindthelawngnome and start using strncpy/strncat/snprintf/strfoundthelawngnome
      • If you have to pass a char * as a parameter of some function, also add a parameter that indicates the size of the memory (EX: 'bool IsStringSexy(char *mystring, ULONG mystringlen)')
      • Don't rely that a setting read from some arbitrary place (registry, file) is undeniably correct to laying out structures of memory [LOOKING AT YOU IE AND FIREFOX AND WORD AND EVERY OTHER APP THAT CRASHED DUE TO A MALFORMED DOCUMENT]
      [ Parent ]
      • Re:In other news.. by The_Wilschon (Score:2) Sunday April 15 2007, @12:08PM
        • Re:In other news.. (Score:4, Insightful)

          by alphamugwump (918799) on Sunday April 15 2007, @02:53PM (#18743531)
          I see this "X language is magically secure" stuff all the time. No, it isn't. The fact that your language is higher-level does not make it more secure. Look at PHP. It's horrible, far worse than C.

          Or perhaps you prefer Java, and think that running your code in a VM is a silver bullet. Think again. If you want that code to actually do anything, you're going to have to give it access to the outside world. Your web app can still let people do things they shouldn't. Security is not just about buffer overflows and SQL injection; it's about anything that could let someone get access they shouldn't have. Which can happen from plain old bad logic.

          Admittedly, it is easy to make mistakes with C. But C is pretty much the only thing to write a kernel in. In a device driver, you have to mess around with real memory, and real IO, and that sort of thing. More importantly, C is old enough so that its common security mistakes are already known. You'd have a much harder time with some random language.

          Basically, a "secure" language is not one that prevents you from doing things you shouldn't. What you want is a language that makes it easier to write secure code than to write insecure code.
          [ Parent ]
      • Re:In other news.. by tieTYT (Score:1) Sunday April 15 2007, @03:03PM
      • Re:In other news.. (Score:4, Insightful)

        by Aoreias (721149) on Sunday April 15 2007, @03:20PM (#18743745)

        Actually, this kind of crap goes away when you stop using NULL terminated strings and put in size checks.

        It's a much more complex problem than simply using 'safe' functions. People don't always put the correct size into the size field, and there are entire classes of exploits, e.g. format string vulnerabilities [wikipedia.org], that don't use the traditional buffer overflow mechanism at all.

        I've heard that the BSD folks have a saying that a bug is just an attack nobody has the intelligence to turn into an exploit yet. I take it you've never written code that crashes?

        [ Parent ]
      • Minor point. by warrax_666 (Score:2) Monday April 16 2007, @03:34PM
      • Re:In other news.. by DeafByBeheading (Score:2) Sunday April 15 2007, @02:54PM
      • 1 reply beneath your current threshold.
    • No, they don't all have buffer overflows... by raftpeople (Score:2) Sunday April 15 2007, @01:07PM
  • Complex Hack (Score:5, Funny)

    by dekkerdreyer (1007957) <dekkerdreyer AT gmail DOT com> on Sunday April 15 2007, @10:47AM (#18741651)
    Luckily this hack isn't for the ordinary Linux user. The hack requires WPA encryption to be activated. As anyone who uses Linux knows, WPA requires recompiling the kernel, compiling wireless tools, compiling wpasupplicant, recompiling both when you find that the default configuration for wpasupplicant is to not use WPA (wtf?), and finally modifying a handful of cryptic configuration files. Once that's done, WPA is still not likely to work with a particular kernel, hardware, and wireless card combination.

    Once again, Linux is safe from such a common attack because only seven people have successfully set up WPA. If this had been a Windows flaw, where every machine natively understands WPA and no work at the command prompt is needed, this would be disastrous.

    This shows that Linux has been taking the right stand. By making the machine difficult to get running, it's unlikely that the machine will be able to connect to anything and become infected. Windows made the mistake of making the machine easy to use, allowing for simply network connection and ease of ownership (OWN3D).

  • Tag.. (Score:5, Funny)

    by Anonymous Coward on Sunday April 15 2007, @10:48AM (#18741661)
    DefectiveByDesign? Oh wait ... wrong OS.
    • Re:Tag.. by Dachannien (Score:2) Sunday April 15 2007, @03:28PM
      • Re:Tag.. by jrumney (Score:2) Sunday April 15 2007, @04:37PM
        • Re:Tag.. by jZnat (Score:2) Sunday April 15 2007, @08:28PM
    • 1 reply beneath your current threshold.
  • by PixieDust (971386) on Sunday April 15 2007, @10:51AM (#18741675)
    While I agree, very good response on getting this patched, and Linux does seem to have a better overall response time to patch needs, they're needing it more and more these days.

    I find it pretty interesting that security advisories over the last several months have been on primarily non-MS platforms. Mac, Linux, Solaris, etc. have had many more security advisories than MS Windows has had to endure, and Microsoft, while certainly not leading that pack for response time, also isn't dead last. I invite you all to check This site [packetstormsecurity.org] which is April's list of security advisories. I remember seeing a review on security a short time ago dealing with response time from various OS Vendors, and while MS wasn't leading the pack in anything, they weren't dead last in anything either.

    I personally think Linux has a lot of potential, and is a pretty decent OS. But it's not ready for primetime just because of the average user. Windows has a tough enough time with security because of the user (let's face it, 90% of problems are the user's fault). Sure, exploits exist, but you have to DO something. Users don't download patches. Users click on anything with an OK box. Same applies here. How many "users" running Linux are even going to know about this vulnerability, let alone patch it. Ok, if they've auto-updates on, perhaps they will fetch it in their next batch? In which case, good, and kudos to the distro for making that part painless for the user.

    I've always wondered about Linux's wifi security, but that was primarily because of having to wrap up the driver of most wifi cards. Just seemed to me like a door just begging to be broken down. Apparently I wasn't the only one.

  • First reported December 2006 (Score:5, Informative)

    by QuietLagoon (813062) on Sunday April 15 2007, @10:51AM (#18741683)
    Here [mitre.org] is a reference to a more informative report.
  • I am a bit confused... (Score:5, Informative)

    by Skiron (735617) on Sunday April 15 2007, @10:59AM (#18741731)
    (http://www.linicks.net/)
    ... this was fixed 4 months ago?

    http://madwifi.org/changeset/1842 [madwifi.org]
  • Madwifi? (Score:2)

    by Zarhan (415465) on Sunday April 15 2007, @11:00AM (#18741741)
    AFAIK, Atheros drivers aren't even in main kernel tree yet. For the last few years they have seemed to be in perpetual pre-release (0.xx) versions..
    • 1 reply beneath your current threshold.
  • This bug is in the "madwifi" atheros driver, which is:

    1. dependent on a closed-source kernel module
    2. not in the upstream kernel
    3. not included by default in most distributions (e.g. Fedora/RHEL, SuSE, Debian).
    It *is* in Ubuntu, but has been fixed in Edgy [ubuntu.com] since February 1.

    So here's what the headline should have been:

    Closed-Source Drivers Harder To Maintain, Less Secure

  • Article Tagging: "haha"???? (Score:3, Interesting)

    by Anonymous Coward on Sunday April 15 2007, @11:38AM (#18742059)
    Why is a tagging keyword 'haha'?
  • Not very helpful FA.... (Score:2, Insightful)

    by Arkaic (784460) on Sunday April 15 2007, @12:01PM (#18742233)
    Of course, it would have been too much trouble for PC World to mention exactly which version of the madwifi driver was susceptible to this particular flaw. So much better to let people dig through changelogs which might address any number of past vulnerabilities.

    I patch and update regularly, so I just wasted some time double checking on a flaw that had been fixed on my system a long time ago.
  • Security hole (Score:1)

    by azrider (918631) on Sunday April 15 2007, @12:12PM (#18742333)
    Is this flaw in madwifi or madwifi-ng? If it is in madwifi-ng, which release(s) is/are vulnerable?
  • Here's an idea: (Score:3, Interesting)

    by The Cisco Kid (31490) * on Sunday April 15 2007, @12:13PM (#18742343)
    Get rid of wifi cards (PCI as well as PCMCIA), and instead implement the wifi 'client' side with an ETHERNET jack to connect .. well, anything that has or can have an ethernet port. Have a 'router' build in that is accesible and configurable via HTTP and/or telnet. Include a 'bridge mode' where, once configured, the router steps out of the way for cases where you are on a known network where you trust its security, or for 'public' untrusted networks you leave the build-in router enabled, isolating you from unexpected inbound connections.

    Then, you dont need specific 'drivers' for wifi hardware (you just need to support ethernet)
  • Ridiculous! (Score:1, Redundant)

    by Yeechang Lee (3429) on Sunday April 15 2007, @12:47PM (#18742601)
    (http://www.pobox.com/~ylee/)
    This sounds like paranoia. Everyone knows Linux is U BEN PWN3D BY THE SUPR HAX0R BOW B4 MY L33T SKILZ the most secure OS around!
  • Apply the same consideration (Score:3, Interesting)

    by Durzel (137902) on Sunday April 15 2007, @01:06PM (#18742773)
    (http://www.superficial.net/)
    If this was a Microsoft flaw there wouldn't be any talk of "good PR" in releasing a patch quickly, or any other positive angle. There would be reply after reply about Microsofts' code being bloated, the evils of closed-source, monopolistic tactics, that one time when Bill Gates stood on a cats tail by mistake, etc. Linux isn't the only golden boy, Firefox (vs IE), Google (vs big nasty corporations), etc get just as much ridiculously transparent partisan treatment.

    Vulnerabilities, particularly serious ones, are never good news. At the very least it would cost businesses who have deployed Linux engineer time in fixing (applying patch(es)) the problem, it generates uncertainty in the market - it creates the potential for business managers who just scan the IT news pages to say "didn't Linux have that serious problem not long ago?". This much is true of any OS, particularly one that businesses need to rely on.

    I'm a firm believer in open-source, and I use both Windows and Linux in equal measure both at work and at home. I don't however believe fundamentally that the fact Windows and IE are closed-source automatically make them "poorly written". As has already been remarked a lot of this comes down to usage statistics... with a 90%+ market share you can guarantee that every hacker out there is trying to find fault in every single DLL that Windows ships with. As Linux gains more traction in the desktop & server markets as time goes on you can be sure that there will be most vulnerabilities like this being found. Programmers make mistakes, and there is no such thing as bug-free software.

    I really wish Slashdot could dispense with the hidden agendas, partisan attitudes and blatent fanboyism and not sweep serious vulnerabilities like this under the carpet as if they aren't a big deal. Dimissing them as trivial is - if anything - more damaging than giving them the proper attention.
  • What!? (Score:5, Funny)

    by jav1231 (539129) on Sunday April 15 2007, @02:23PM (#18743343)
    Wait! Someone got WiFi to work in Linux!?
    Okay, easy...just saying this is one area that's always been behind in Linux.
  • FUD Template (Score:2, Insightful)

    by Orochimaru (945515) on Sunday April 15 2007, @07:19PM (#18745553)

    I use [linuxdistro] and am a firm believer in open source software, but we just can't pretend that [securityflawfixedmonthsago] isn't a big deal. Your average Joe user isn't able to install a patch and this just proves that Linux is not ready for the desktop.

  • hahaha (Score:1)

    by aybiss (876862) on Sunday April 15 2007, @10:46PM (#18746843)
    (http://www.ic-solutions.com.au/)
    i especially love the sub-title for this story. suddenly we all have balanced views on security.
  • madwifi http://www.milw0rm.com/exploits/3389
  • 13 replies beneath your current threshold.