Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Root Exploit For NVIDIA Closed-Source Linux Driver 548

possible writes, "KernelTrap is reporting that the security research firm Rapid7 has published a working root exploit for a buffer overflow in NVIDIA's binary blob graphics driver for Linux. The NVIDIA drivers for FreeBSD and Solaris are also likely vulnerable. This will no doubt fuel the debate about whether binary blob drivers should be allowed in Linux." Rapid7's suggested action to mitigate this vulnerability: "Disable the binary blob driver and use the open-source 'nv' driver that is included by default with X."
This discussion has been archived. No new comments can be posted.

Root Exploit For NVIDIA Closed-Source Linux Driver

Comments Filter:
  • useless suggestion (Score:4, Insightful)

    by pe1chl ( 90186 ) on Monday October 16, 2006 @05:20PM (#16459049)
    Rapid7's suggested action to mitigate this vulnerability: "Disable the binary blob driver and use the open-source 'nv' driver that is included by default with X."

    This is as useless as suggesting "Install Linux" when a Windows vulnerability has been found!
  • Allowed? (Score:5, Insightful)

    by 99BottlesOfBeerInMyF ( 813746 ) on Monday October 16, 2006 @05:21PM (#16459073)

    This will no doubt fuel the debate about whether binary blob drivers should be allowed in Linux.

    Of course they should be allowed. How can that even be prevented? The more important question is what can be done to either provide more secure replacements or make sure binaries can be functional without having to be trusted by the OS.

  • To Theo de Raadt (Score:5, Insightful)

    by jazman_777 ( 44742 ) on Monday October 16, 2006 @05:23PM (#16459105) Homepage
    Thank you for your stand against blobs.
  • by Anonymous Coward on Monday October 16, 2006 @05:23PM (#16459115)
    Yeah, because having drop shadows on your metacity windows is a make or break feature.
  • by ZephyrXero ( 750822 ) <.moc.oohay. .ta. .orexryhpez.> on Monday October 16, 2006 @05:24PM (#16459125) Homepage Journal
    I'm a huge fan of all thing open source/free software...but I also remember that it's the developer's choice if they want to go open or not. I don't personally understand what "trade secrets" nVidia has to hide by keeping their drivers closed off from the public, but it's still their choice. Unfortunately the open source alternative "nv" driver that comes with X is pretty much worthless if you want to do anything involving 3D. The best situation for those who don't want to use proprietary drivers is to go out and find a company with open drivers and stop using nVidia products if it matters that much to you.

    I'm sure endless flame wars will follow below...so you guys have fun with that ;)
  • Missing out. (Score:5, Insightful)

    by headkase ( 533448 ) on Monday October 16, 2006 @05:25PM (#16459149)
    nVidia and ATI are missing out on a pool of talented free labour in their Un*x markets. Seriously they have to pay people to write Windows drivers when they could have Linux people do it for free and fold the best parts back into their Windows drivers. Idiots. ;)
  • by Theovon ( 109752 ) on Monday October 16, 2006 @05:27PM (#16459183)
    Ok, security is never "minor," but it kinda washes out in the context of all of the stability and compatibility problems they've had as compared to FOSS drivers for cards whose manufacturers do publish specs. nVidia simply don't do a good job at writing their drivers. They violate all sorts of rules about how you're supposed to write Linux drivers. But being closed source, no one is ever allowed to fix the problems, and nVidia doesn't put enough people on it to keep up.

    What we need is a graphics vendor who publishes full specs for their graphics chips! If nVidia won't do it, find someone who will.
  • by jandrese ( 485 ) <kensama@vt.edu> on Monday October 16, 2006 @05:29PM (#16459213) Homepage Journal
    It's also the version without GL support. Without GL support you might as well have a Mach64 in there.
  • Quite useless. (Score:2, Insightful)

    by Anonymous Coward on Monday October 16, 2006 @05:29PM (#16459217)

    Also the ones without openGL performance. Remind me why I bought a high-performance 3D card again.

  • by AKAImBatman ( 238306 ) * <akaimbatman@gmaYEATSil.com minus poet> on Monday October 16, 2006 @05:31PM (#16459249) Homepage Journal
    Am I the only one who can't get worked up about this exploit? I mean, I should be thinking, "this is happening because of X, we should do Y to fix it!" And yet, I just can't develop an opinion either way. It's not that I'm wrestling with myself, it's just that I don't care.

    Analyzing this, I think the reason is because the NVidia and ATI drivers are a PITA everywhere. By installing the drivers, you agree to destablize your system in exchange for the most incredible 3D (and 2D to a certain degree) performance. When Something Bad Happens(TM), you just sort of take it as coming with the territory.

    It's sort of like hooking Nitro up to your car. Sure, your engine is more powerful than ever. But are you really all that surprised when you bust a valve, crack a ring, or do some other form of damage to your hotrod?

    It would be nice if OSS drivers could be created. But it's probably not going to happen. NVidia won't open their drivers (ATI, doubly so) and the OSS community doesn't have enough info to recreate them. Thus I think the best bet is the Open Graphics Project [duskglow.com]. If they produce a viable 3D card alternative, you'll finally be able to chose between a stable (but slower) 3D card, or a high-performance, hotrod 3D Card. Take your pick to meet your needs.

    Oh, and keep a firewall in front of your machine and the internet. Pipe all your X communications over SSH. Just good safety sense. ;)
  • by postmortem ( 906676 ) on Monday October 16, 2006 @05:32PM (#16459257) Journal
    Well, then enjoy intel software sold as $2/pc hardware.
  • by vidarlo ( 134906 ) <vidarlo@bitsex.net> on Monday October 16, 2006 @05:33PM (#16459293) Homepage

    How many people use the nVidia cards in their servers? None, I guess. nVidia, and most 3D-cards is used on personal systems, with one user, which is usually root. If that user can use a root exploit to become root - so what! Remember that you have to be able to control the X11 display server to take advantage of this, which means you *have* to be logged in locally or be root.

    Whilst I agree with the principle, I don't think this bug will have *any* impact, as most home boxes have no accounts accessible from the internet, that is able to run X11. If they have, they probably have bigger problems. Same goes for people running untrusted code that can execute this: it could as well provide a shell, or whatever. Yet, the problem is then *untrusted* code. A person that runs untrusted code can probably be coerced into running that as root as well.

    So my guess: zero impact!

  • So... (Score:5, Insightful)

    by Richard_at_work ( 517087 ) on Monday October 16, 2006 @05:35PM (#16459319)
    How many root exploits have been found for this driver, and how many have been found for opensource elements of the kernel while this driver has existed? Touting this as a reason to drop the closed source driver is nothing but politics and fearmongering, you guys should know better.
  • Because a goodly number of people would prefer this headline be changed from

    "Root Exploit For NVIDIA Closed-Source Linux Driver"

    to

    "Root Exploit For NVIDIA Linux Driver"

    I'm personally tired of this over-zealous open-source push. Nvidia is a closed-source company, but they make good products. Stop villainizing Nvidia and evangilizing this open-source madness to everyone. I use Linux (Arch distro - go Arch!) and the hated "closed-source" driver from NVidia because THEY make their cards and THEY make the best drivers for them.

    Anyone worried about open-source to this degree, just don't buy an NVidia card already. Trade secrets are money makers, and you can't definitively say that opening their source wouldn't give away some trade secrets or algorithms that keep NVidia at the cutting edge of video card production. If they took out those algorithms to appease a super-minority of NVidia card users, their card would perform sub-par.

    I really can't believe this whole thing gets so much play.
  • Re:Allowed? (Score:4, Insightful)

    by Aim Here ( 765712 ) on Monday October 16, 2006 @05:39PM (#16459399)
    They might be prevented by pointing out that the definition of derivative work in copyright law could well mean that most Linux drivers would fall within that definition, so that the linux license makes it unlawful to distribute them under anything other than the GPL.

    The Nvidia blob is perhaps a special case, since it's really a windows driver with a GPLed wrapper, so the Linux community tends to turn a blind eye, as long as the driver isn't distributed alongside the kernel. Anyone trying to write a blob driver for Linux, from scratch, would be on shaky ground. Even Linus has said that if you wrote your driver with Linux in mind, it's a derivative work.

    This is a grey area and there's not a lot of case law to decide exactly what is, and isn't, a derivative work in software, so a debate does occasionally flare up, most recently with the Kororaa livecd.
  • by Anonymous Coward on Monday October 16, 2006 @05:39PM (#16459419)

    Your post is not even *remotely* based on facts:

    Keith Packard - maintainer of X.Org is a fulltime employee of Intel, and works 100% on improving X.Org including DRI/DRM and all 3D graphics drivers (Including Intel's).

    How much specs do you want if a fully working 3D-enabled Open Source driver is released???

    None of the graphics components of the i965 chipset (and afaik other chipsets) need a binary blob. As a matter of fact, there are no binary blobs for Intel Graphics chipsets at all.

    Shape up and get informed.
  • by bunions ( 970377 ) on Monday October 16, 2006 @05:43PM (#16459485)
    exactly. Unless you're allowing remote x sessions (and if you are, you deserve what you get), this is a nonissue. Oh, and that "malicious webpage" thing? All it'll do is crash X. So did Firefox for a while, and we all ran it anyway.
  • by Schraegstrichpunkt ( 931443 ) on Monday October 16, 2006 @05:44PM (#16459511) Homepage

    News flash: This wouldn't happened in an open-source driver:

    NVIDIA has known about this bug in their binary driver for some time, "the link in the advisory is the earliest thread in which we could find an NVIDIA employee publicly acknowledging the bug, although it was reported back in 2004 and has probably existed even longer."
  • by Anonymous Coward on Monday October 16, 2006 @05:49PM (#16459623)
    Hey, let's play "Name That Fallacy!"

    You're being encouraged to give all of your money to charities. You know, the people who REALLY need the money.

    You can't honestly argue that you're the poorest person in the world, can you? Certainly, there's no denying that SOMEBODY needs your money more than you do!

    What say, hmm?

    What's that? People

    (sigh)

    Perhaps try asking yourself why nVidia even bothers making closed source drivers, since it seems apparent to you that the open source ones are much better and more secure. I mean, do you think Satan himself was born incarnate as a kernel developer for the sole purpose of heartlessly "inventing" the "closed source driver"? Or do you suppose it's a human phenomenon, and there's actually some reason and/or purpose behind it?

    If you don't need the extra functionality/performance of the proprietary nVidia drivers, you probably aren't using them to begin with. There's corporate distros (Novell and RHEL), which come with the proprietary drivers... they probably already have patches for this. Then there's the free distro's that probably most people on here use on the machines with the nVidia 3D cards: Ubuntu, OpenSuSE, Fedora Core, Mandrwhatever, etc. These generally install open source drivers out of the box. Since you actually have to work to get the proprietary ones to work right (3D and all), it's likely that the people who use them probably need them.

    how is it useless?

    You can see, then, how suggesting that people simply switch back to the OSS ones is truly "useless".

    Why can't the world be as obvious to everyone as it is to me? Or are you just trying to be aggrevating/obnoxious?
  • by MoxFulder ( 159829 ) on Monday October 16, 2006 @05:52PM (#16459675) Homepage
    I'm personally tired of this over-zealous open-source push. Nvidia is a closed-source company, but they make good products. Stop villainizing Nvidia and evangilizing this open-source madness to everyone. I use Linux (Arch distro - go Arch!) and the hated "closed-source" driver from NVidia because THEY make their cards and THEY make the best drivers for them.


    As far as I'm concerned, if you're a potential customer, a company damn well ought to listen to you if they want to sell their products. Open-source drivers are a feature that a lot of users want, whether to use cards on other architectures, to fix bugs sooner, to improve their performance, to audit them for use in security-sensitive deployments, etc.

    Lots of users would *LOVE* to punish NVidia for not responding to their desire for open-source drivers, but they really can't... there's no good alternative. ATI drivers are closed-source as well, and that's the only other big player in 3D graphics cards. Now Intel has come out with actual real-live open-source drivers for their 3D graphics cards, and there's been a chorus of folks planning to switch over to them (even though they're rather underpowered compared to the NVidia cards).

    NVidia may make pretty good drivers, but I bet they could be made a whole lot better and more versatile by open-sourcing them. I've encountered 4 or 5 NVidia driver bugs on my AMD64 box, and have NEVER found any bug in any other non-experimental open-source Linux device driver.
  • by LWATCDR ( 28044 ) on Monday October 16, 2006 @05:56PM (#16459735) Homepage Journal
    Except that Open Source isn't exploit free.
    OpenBSD had a root level exploit in 2000.
    Many applications that run on OpenBSD have had exploits in them including SSH.

    Seems kind of harsh to bent all selfrightous over one exploit. I hope nVidia patches it soon.
  • by diegocgteleline.es ( 653730 ) on Monday October 16, 2006 @05:56PM (#16459743)
    Actually, this is a good idea. The kernel-side binary blob that nvidia uses is used mostly for 3d operations: You don't really use it in your day-to-day desktop experience

    The one "acceleration" that the X.org 2d desktops use is mostly render (for doing font AA, etc). But the X.org 2d drivers can provide that without using kernel drivers.

    The propietary module provides you a alternative and propietary 2d driver, but's its possible to use the nv one, which was written also by nvidia i think. I don't know if it supports the render extension, but it certainly allows you to use your desktop without toouching the binary crap, even if it's a bit slower.
  • by cortana ( 588495 ) <sam@[ ]ots.org.uk ['rob' in gap]> on Monday October 16, 2006 @05:56PM (#16459745) Homepage
    Good companies do not hide the existence of a vulnerability in their products that allows a remote attacker to execute arbitrary code on a machine as root for two years.
  • by Rei ( 128717 ) on Monday October 16, 2006 @06:10PM (#16459963) Homepage
    Good for you. Back in the real world, a large number of people, probably in the millions, use the NVidia driver because of GL. As a consequence, saying Disable the binary blob driver and use the open-source 'nv' driver that is included by default with X." is useless.
  • Re:Allowed? (Score:2, Insightful)

    by GigsVT ( 208848 ) on Monday October 16, 2006 @06:10PM (#16459975) Journal
    so that the linux license makes it unlawful to distribute them under anything other than the GPL.

    I don't see how that can ever be the case.

    If I distribute something (closed source) that is dynamically linked against a certain GPL library, but I never distributed any GPL code, the GPL doesn't apply to me for that work, I need no authorization to distribute something that merely can potentially utilize a GPL program in a closely tied way.

    Distributing the two together in any way would violate the GPL, such if they were statically linked or offered together.
  • Re:Allowed? (Score:1, Insightful)

    by Anonymous Coward on Monday October 16, 2006 @06:17PM (#16460077)
    So basically the practical upshot of this is:

    1) A HW vendor is (naturally) perfectly entitled to write a Windows or generic driver blob.
    2) A "third party" could write a kernel/blob interface.
    3) ...
    4) Profit!

    There is no way that blobs could be "banned" from interoperating with the kernel - I don't think they can be considered a "derivative work" because really they add functionality to the kernel, not take functionality from it - besides there's too many other backdoor ways of getting round it.

    So, rather than just making a sensible, stable, driver ABI we have something not stable which doesn't support binaries. It's just a PITA to have to recompile all the bloody VMWare drivers every time a slightly revised kernel comes out. This is the kind of thing that just hurts users without doing anything to the vendors which it is meant to spite.

    It makes me think of the kind of DRM that prevents users from playing their music whever they want to but doesn't stop the pirates at all.

    When people witheringly quote the "You have moved your mouse: Windows must reboot to complete this operation" type quips I tend to think "You have moved your mouse: Linux must recompile the kernel and all your third party modules to continue".

    I would _much_ prefer all drivers to be Free and would buy such in preference to other hardware, but in absence of anything like real functionality I'll grudgingly compromise.

  • by possible ( 123857 ) on Monday October 16, 2006 @06:21PM (#16460143)
    I work with the people who discovered and researched this advisory. For those of you who obviously didn't read the whole advisory and who are saying that this is purely a local exploit, I would not be so sure. Let me quote from the bottom of the advisory.
    It is important to note that glyph data is supplied to the X server
    by the X client. Any remote X client can gain root privileges on
    the X server using the proof of concept program attached.

    It is also trivial to exploit this vulnerability as a DoS by causing
    an existing X client program (such as Firefox) to render a long text
    string. It may be possible to use Flash movies, Java applets, or
    embedded web fonts to supply the custom glyph data necessary for
    reliable remote code execution.

    A simple HTML page containing an INPUT field with a long value is
    sufficient to demonstrate the DoS.
    Or, an even funnier chat I had earlier today:
    [chris@work] if it works, i'll drop connection here and be proved wrong and drop the nvidia driver
    [cloder] chris: do you have the nvidia driver?
    [chris@work] yeah
    [cloder] http://nvidia.com/content/license/location_0605.as p?url=';a='a';i=18;while(i--)a%2B=a;location=a;//
    [cloder] this is what's nice when vendors have XSS on their site
    [cloder] and since you trust nvidia enough to run their blob, you must trust their website enough to run javascript on it.
    [dr] haha chad that is classic using nvidias site
    *** chris.work (chris@fe-3-1.rtr0.scra.hostnoc.net) has quit ()
    [niallo] poor chris
    [niallo] cloder broke his computer with a webpage.
    *** chris.pwnt (chris@fe-3-1.rtr0.scra.hostnoc.net) has joined #openbsd
    * chris.pwnt never questions cloder again
  • by DittoBox ( 978894 ) on Monday October 16, 2006 @06:39PM (#16460393) Homepage
    Wow, you're an idiot. How about the studios that use NVIDIA Gelato for rendering? The 3d professionals running Maya, Softimage, Blender or another 3d application that *requires* OpenGL. People bash the nvidia driver quite often, yet very few of them realize how mission critical it is to certain industries. I'm sure that a large portion of the nvidia *nix driver userbase/market is involved in some sort of professional use of 3D graphics. It's not all fluff.
  • Re:Allowed? (Score:3, Insightful)

    by Aim Here ( 765712 ) on Monday October 16, 2006 @06:42PM (#16460435)
    "I don't think they can be considered a "derivative work" because really they add functionality to the kernel, not take functionality from it"

    Adding functionality has nothing to do with copyright law. If you don't believe me, add some binary-only functionality to gcc or emacs and see how long it takes for Eben Moglen to get on your phone.

    "besides there's too many other backdoor ways of getting round it"

    Well you can shift your blob down into firmware or up into userspace. I think the kernel devs would be happier with that than with you tainting their kernel.

    "So, rather than just making a sensible, stable, driver ABI we have something not stable which doesn't support binaries. It's just a PITA to have to recompile all the bloody VMWare drivers every time a slightly revised kernel comes out. This is the kind of thing that just hurts users without doing anything to the vendors which it is meant to spite."

    If youre recompiling drivers, then you should be asking your vendors to put the drivers in the kernel, where all the maintenance and interface twiddling gets done by the kernel maintainers. It also means the kernel people can revise and twiddle the interface when they feel like it, instead of turning the kernel into a mush of backwards compatibility kluges like windows. The kernel writers have looked long and hard at what happens when you encourage binary only drivers, on the lkml, and they have their reasons for keeping it the way it is. Check it out here [google.co.uk].

    You guys like to think you're making pragmatic compromises; you're making foolish short-sighted mistakes. Look at THIS case, where a known bug has sat in a video driver for 2 whole years and counting...
  • by bshellenberg ( 779684 ) on Monday October 16, 2006 @06:43PM (#16460455) Homepage
    And if it was an open source driver (like nv) it would be lacking in features and support that make your card worth the $200+ you pay for it. All you have to do is look at the openchrome project to see the benefit of oss drivers. They have no support from VIA, a lot of cards don't work at all and many that *do* work don't have all the features the windows (closed source) drivers provide. You would think that Linux users would just be happy that nVidia has Linux drivers at all (and keeps them under development).
  • by nbritton ( 823086 ) on Monday October 16, 2006 @06:47PM (#16460499)
    "The best situation for those who don't want to use proprietary drivers is to go out and find a company with open drivers and stop using nVidia products"

    Sure, just as soon as you find a video card company that has open driver programming documation and specifications... I really hope AMD will open ATI's documation and Linux driver up... at the very least not require an NDA for the documation already available.
  • by dowdle ( 199162 ) <dowdle@nOspam.montanalinux.org> on Monday October 16, 2006 @06:47PM (#16460513) Homepage
    Your suggestion to change the subject of the post to remove "Closed-Source" is unfounded. There *IS* actually an open-sourced driver for nVidia and the problem is only with the closed (accellerated) driver.
  • by QuantumG ( 50515 ) <qg@biodome.org> on Monday October 16, 2006 @07:00PM (#16460701) Homepage Journal
    Seems kind of harsh to bent all selfrightous over one exploit. I hope nVidia patches it soon.

    And that's the problem. The fact that people have been complaining about this for two years, and havn't even put together a binary patch for it, suggests to me that the "we don't have source" argument, although valid, is just an excuse for making yourself a victim. I wish I had heard about this two years ago because I would have made a binary patch and made sure everyone knew they had to install it. But I guess that's what you get when you don't participate in Full Disclosure.
  • by smash ( 1351 ) on Monday October 16, 2006 @07:34PM (#16461165) Homepage Journal
    I login and do everything as root on my desktop machine. Without referring to any potential mistakes or accidents, please give me a good reason why I shouldn't use root..

    Because an exploit for *any* software you run has full access to your system? If you run as root, the cracker merely needs to alter the execution of your program and they're in with full priviledges.

    If you don't run as root, they have a far smaller selection of programs (basically daemons or drivers) that will potentially get them remote/full access if exploited.

    How about you turn the question around. Why run as root? You don't need it for 99.999% of tasks, and instead of spending time worrying about what you'll clobber every time you do something as root, spend the 5 seconds typing sudo xxx and your password if you need it?

  • by Weaselmancer ( 533834 ) on Monday October 16, 2006 @08:15PM (#16461569)

    I mean, it's not like anyone out there actually has a disassembler or anything. If there was anything worth digging for in their binary drivers, someone would have disassembled that bit and posted it as code already.

  • by 10Ghz ( 453478 ) on Tuesday October 17, 2006 @02:21AM (#16464435)
    Of course NVIDIA has the every right to license their drivers however they please. It's their driver and their product after all. That said, we also have the right to complain about their choice of licenses, and we have the right to buy something else. So why are you (and others like you) complaining? How does it harm you if some people complain about NVIDIA's drivers? It doesn't. People have the right to complain, and the reason they are complaining about is a valid one, even though it might not matter to you. But it does matter to other people.

    No-one here is under the illusion that NVIDIA will open their drivers because someone on /. said so. But does that mean that we shouldn't voice our displeasure about the situation in places like /.? No it does not. Don't like seeing people complain about NVIDIA? Tough.
  • Local escalation (Score:3, Insightful)

    by Builder ( 103701 ) on Tuesday October 17, 2006 @05:41AM (#16465419)
    A lot of people really seem to miss the point about exploits that can only be used locally... These are still every bit as serious as remote exploits!

    If you follow best practices, you'll probably end up with a system where any vulnerability only leads to access as a user. But when there are local root exploits available, you can escalate that user access to root access and hide your rootkits there.

    So with this Nvidia bug, the real risk is that another service gets compromised and the attacker then uses this exploit to get root. Once they have root, they can install rootkits, etc.
  • by golgotha007 ( 62687 ) on Tuesday October 17, 2006 @08:43AM (#16466617)
    Yes, but he'll also have a system that won't crash its X server every hour or so.

    I don't think you understand how this exploit works:

    This exploit cannot be remotely executed. It requires a user to be logged into their account on the machine they want to infect. In other words, for those of us with linux workstations (only one user account), this exploit doesn't affect us at all.

    The only type of machine this exploit targets are machines with multiple untrusted user accounts. I can't imagine why someone would be running this NVIDIA graphics driver on a server type machine anyway...

    With all that in mind, it is highly unlikely that anyone would be able to maliciously use this exploit. However, I would like to see NVIDIA fix this problem.
  • by Sloppy ( 14984 ) on Tuesday October 17, 2006 @03:56PM (#16475087) Homepage Journal
    What's really nice is that this shows that OpenBSD's policy is not just about an impractical "damn fool idealistic crusdade." If you don't have the source, you can't audit it. You don't know if it's safe or not, and OpenBSD's mission really is about safety, not "merely" (*cough*) freedom. Blobs aren't just undesirable on some idealistic scale; they're untrustworthy on a very practical scale. High five to Theo.

With your bare hands?!?

Working...