Slashdot Mirror


Local Root Hole in Linux Kernels

xepsilon writes "A local Linux security hole using ptrace has been discovered that allows a potential attacker to gain root privileges. Linux 2.2.25 has been released to correct this security hole, along with a patch for 2.4.20-pre kernels. 2.4.21 ought to contain this fix, once it is released. 2.5 is not believed to be vulnerable to this security hole. See this email from Alan Cox for details, and a patch."

91 of 495 comments (clear)

  1. How is Microsoft responsible? by jmulvey · · Score: 5, Funny

    With all the brainpower on /. I'm sure we can discover a way.

    1. Re:How is Microsoft responsible? by lavalyn · · Score: 5, Funny

      Microsoft would have a monopoly on privilege escalation exploits if not for Linux.

      --
      Doing the Right Thing should not be preempted by making a buck.
    2. Re:How is Microsoft responsible? by kfg · · Score: 5, Funny

      I think the late George Mallory put it rather succinctly:

      "Because they're there."

      On the other hand, in the words of Voltaire:

      "If Microsoft didn't exist it would be necessary to invent them."

      However, regarding the current kernel situation I think my deeply missed old granny put it best:

      "Oh fuck."

      KFG

    3. Re:How is Microsoft responsible? by kasperd · · Score: 4, Funny

      Microsoft would have a monopoly on privilege escalation exploits

      No, Microsoft has a bulletproof way to prevent privilege escalations. They simply make sure the attacker gets all privileges at once, then there is nothing to escalate.

      --

      Do you care about the security of your wireless mouse?
    4. Re:How is Microsoft responsible? by CoffeeCrusader · · Score: 3, Informative

      Voltaire wasn't an actor. He's one of the more important French philosophers of the 18th century. He basically developed a philosophy of logic, that bans poverty. But he would certainly be most annoyed about flaws in anything, but especially the Linux Kernel, since he was a promoter of free and open work, and flawlessness.

    5. Re:How is Microsoft responsible? by aggieben · · Score: 2, Interesting

      uhh.....I don't think so. SunOS has had it's share....
      but that's besides the point. The OS has little to do with privelage escalation, anyway; it has everything to do with the programmers who write programs that will be suid.

      --
      Don't become a regular here, you will become retarded. -- Yoda the Retard
    6. Re:How is Microsoft responsible? by palfreman · · Score: 2, Interesting
      "If Microsoft didn't exist it would be necessary to invent them."
      So you are equating Microsoft to God. Interesting...

      Although Voltair may have said "If God didn't exist it would be necessary to invent him" it is another matter as to whether Microsoft resembles Him. I would have said that Microsoft was just anouther popular-for-now company with nothing to fall back on. Nothing special in the long run.

      However,if you want to be really picky, they have the advantage of existing and actually being pointable-to, unlike God.

  2. Got Root? by FAngel · · Score: 5, Funny

    Got Root?

    1. Re:Got Root? by Anonymous+Cow+herd · · Score: 5, Funny

      I do now >:)

      --
      Ita erat quando hic adveni.
    2. Re:Got Root? by cyb97 · · Score: 3, Funny

      Just give me a minute ;-)

    3. Re:Got Root? by wirelessbuzzers · · Score: 5, Funny

      I do now >:)

      I believe you mean "#:)"

      --
      I hereby place the above post in the public domain.
  3. It's Tuesday by Anonymous Coward · · Score: 5, Funny

    Journal Entries:

    (looks at watch) its monday again... time to go patch my IIS

    (looks at watch) its tuesday again... time to go patch linux.

    1. Re:It's Tuesday by charon_on_acheron · · Score: 3, Funny

      Four day week, huh? Must be nice. :^P

  4. Could someone post the email up? by 00_NOP · · Score: 2

    It's been /.ed and I'd really like/need to read it asap. Hence I am posting at +2. Karma burning away...

    1. Re:Could someone post the email up? by cyb97 · · Score: 4, Informative
      linux-kernel-list

      Different mirror

      I guess these are the same.. haven't read the origial ./ed site, but this is from lklm and guess they're the same...

    2. Re:Could someone post the email up? by uncleFester · · Score: 2, Informative
      The article-linked message also had a patch attached but the lameness filter is pissed about including it so you'll have to snag it somewhere else.. the patch did not specify what kernel version it applied to, though.

      Vulnerability: CAN-2003-0127

      The Linux 2.2 and Linux 2.4 kernels have a flaw in ptrace. This hole allows
      local users to obtain full privileges. Remote exploitation of this hole is
      not possible. Linux 2.5 is not believed to be vulnerable.

      Linux 2.2.25 has been released to correct Linux 2.2. It contains no other
      changes. The bug fixes that would have been in 2.2.5pre1 will now appear in
      2.2.26pre1. The patch will apply directly to most older 2.2 releases.

      A patch for Linux 2.4.20/Linux 2.4.21pre is attached. The patch also
      subtly changes the PR_SET_DUMPABLE prctl. We believe this is neccessary and
      that it will not affect any software. The functionality change is specific
      to unusual debugging situations.

      We would like to thank Andrzej Szombierski who found the problem, and
      wrote an initial patch. Seth Arnold cleaned up the 2.2 change. Arjan van
      de Ven and Ben LaHaise identified additional problems with the original
      fix.

      Alan
      --
      -'fester
  5. Re:Eek! by dreamchaser · · Score: 3, Insightful

    New marketing ploy for TMF: get your security news before the 13-year-old 5

    Not so fast! What if they steal some CC numbers first?

  6. patched it already by Lxy · · Score: 5, Interesting

    Got an e-mail this morning from Redhat Network that a new kernel was available to solve this vulnerability. up2date got my machine patched hours before the /. post.

    If you're running Redhat, RHN is a valuable tool that no admin should be without.

    --

    There is no reasonable defense against an idiot with an agenda
    :wq
    1. Re:patched it already by sporty · · Score: 4, Insightful

      The only reason not to update, is if you haven't QA'd (burn in test) your new kernel. Put int through 100% load tests for 24-48 hours to make sure nothing goes haywire. Last thing you'd want is a strange memory leak causing processes to go bezerk.

      Not to say that you haven't done that, but buyer beware. It makes no diff if it were linux, mac os x , windows, commodore 64. Don't randomly update things. Heck, sometimes us programmers create bugs in programs that are fixed by other bugs existing. Closing one may expose a new one.

      --

      -
      ping -f 255.255.255.255 # if only

    2. Re:patched it already by ignipotentis · · Score: 2, Insightful

      And the difference between this and setting Windows Update to download automaticlly then inform you before proceeding with an install is? Basically all that has been proved is a good admin will stay on top of updates. And eveyone here gets confused when something isn't Microsofts fault.

      --
      Don't waste time... procrastinate now!
    3. Re:patched it already by Lxy · · Score: 2, Informative

      There is one difference: who do you trust?

      I trust Redhat not to slip spyware and weird license agreements into the kernel I'm downloading. I trust that it's an honest to God GPL'd kernel. Why? Because I'm a trusting person, and I haven't had any freakish incidents with Redhat.

      I don't trust Microsoft. I don't want code with God knows what hacked in with a license agreement that takes away my first born while installing.

      While I'm on the subject, I received an e-mail from Microsoft before I recieved the e-mail from RHN. I then had the option of doing a Windows Update or installing it manually. I chose manual, because MS doesn't know about my machine and I want to keep it that way.

      --

      There is no reasonable defense against an idiot with an agenda
      :wq
    4. Re:patched it already by DrXym · · Score: 2, Interesting
      It would be even more invaluable if Red Hat et al made RPM and their updates incremental. It is rather silly to expect people on 56k modems (of which there are still many) to download 30-50mb of patches to fix what probably amounts to 1mb at most of code changes. Kernel changes are particularly horrible - a one line patch means 35Mb download! How many users will bother with that? Now perhaps that's their own fault when they're rooted, but it's bad for everyone else too - a rooted box is a springboard for further attacks, not to mention dragging the reputation of Linux through the mud.


      Why isn't it possible to produce incremental binary patches containing just the diffs? Not only would it vastly increase the chances of people downloading them (which is good for everyone), it is good for Red Hat too since their bandwidth for up2date is slashed.


      Now obviously there are times when incremental diffs are not useful, but with the proper safeguards (e.g. checksums and backing up originals etc.) I don't see what the problem is. If anyone from Red Hat or RPM land is listening, please consider implementing this feature. Pretty please with a cherry on top.

    5. Re:patched it already by caluml · · Score: 4, Insightful

      I would disagree.

      I much prefer it the way it is. Take Apache/ IIS as examples.
      If you're running 1.3.26, you're safe, and you know it.
      With IIS, if you're running IIS5, but with patch X, and patch y, and patch z applied before patch q, unless you have the MSSql patch r installed in which case you need patch f for IIS, and patch k for MSSql...

      They should do it the other way. Make it simple.
      If you're running IIS 5.0.185 then you're OK. Anything else, and you've got problems.

      Patches and stuff were OK during floppy disk days, and 28.8k modems. I'd much rather not have to worry about incrememental patches.

    6. Re:patched it already by DrXym · · Score: 2, Interesting
      I didn't mean that way. I mean if up2date says there is a new version e.g. 1.2.1 and you have 1.2.0, and there is an incremental diff available (i.e. 1.2.0-1.2.1) then it should fetch and apply that rather than fetching the whole 1.2.1 package which could be massive. After patching you now have 1.2.1 as if you had done rpm -Uvh on it.


      There is no 'hotfixing' or piece patching here. The result of the incremental diff is the same as installing the whole new version, just considerably easier to download. As I mentioned, a kernel update is 35mb of patches. I would be surprised if an equivalent incremental patch were more than a megabyte.

  7. Here's the text of Alans post (minus the .diff) by Mish · · Score: 4, Informative

    Ptrace hole / Linux 2.2.25

    To: linux-kernel@vger.kernel.org
    Subject: Ptrace hole / Linux 2.2.25
    From: Alan Cox
    Date: Mon, 17 Mar 2003 11:04:35 -0500 (EST)
    Sender: linux-kernel-owner@vger.kernel.org

    -----------------------

    Vulnerability: CAN-2003-0127

    The Linux 2.2 and Linux 2.4 kernels have a flaw in ptrace. This hole allows
    local users to obtain full privileges. Remote exploitation of this hole is
    not possible. Linux 2.5 is not believed to be vulnerable.

    Linux 2.2.25 has been released to correct Linux 2.2. It contains no other
    changes. The bug fixes that would have been in 2.2.5pre1 will now appear in
    2.2.26pre1. The patch will apply directly to most older 2.2 releases.

    A patch for Linux 2.4.20/Linux 2.4.21pre is attached. The patch also
    subtly changes the PR_SET_DUMPABLE prctl. We believe this is neccessary and
    that it will not affect any software. The functionality change is specific
    to unusual debugging situations.

    We would like to thank Andrzej Szombierski who found the problem, and
    wrote an initial patch. Seth Arnold cleaned up the 2.2 change. Arjan van
    de Ven and Ben LaHaise identified additional problems with the original
    fix.

    Alan

  8. dead already? by zozzi · · Score: 3, Informative
    Slashdotted already? Try here: here

    --
    ---
  9. In other news... by AnriL · · Score: 5, Informative

    And for the hax0rs without a local shell, there's a recent samba instant-remote-r00t vulnerability. Get your patches while they're hot!

  10. Love the headline by L.+VeGas · · Score: 3, Funny

    Lo-Cal Root Hole in Linux Kernels

    I think I saw this in an advertisement for granola.

    mmmm... breakfasty

    1. Re:Love the headline by TheDarkener · · Score: 2

      This just made me realise, if some cereal company were to make "Linux Kernels" cereal, the publicity would be tremendous!! Just think of the commercials!

      "Look Ma, there's no holes in my kernels!"
      "I know dear, that's why they are so good!"
      "Ma, I love Linux Kernels!"
      "And I love you, Billy!"

      "Linux Kernels. Get yours!"

      There could even be Tux on the front of the box!! People would dig it!!

      --
      It is pitch black. You are likely to be eaten by a grue.
  11. FYI, Red Hat Network Advisory by Znonymous+Coward · · Score: 2, Informative

    Red Hat Security Advisory

    Synopsis: Updated 2.4 kernel fixes vulnerability
    Advisory ID: RHSA-2003:098-00
    Issue date: 2003-03-17
    Updated on: 2003-03-17
    Product: Red Hat Linux
    Keywords: ptrace
    Cross references:
    Obsoletes: RHSA-2003:025-20 RHBA-2003:069-12
    CVE Names: CAN-2003-0127

    1. Topic:

    Updated kernel packages for Red Hat Linux 7.1, 7.2, 7.3, and 8.0 are now
    available. These packages fix a ptrace-related vulnerability that can
    lead to elevated (root) privileges.

    2. Relevant releases/architectures:

    Red Hat Linux 7.1 - athlon, i386, i586, i686
    Red Hat Linux 7.2 - athlon, i386, i586, i686
    Red Hat Linux 7.3 - athlon, i386, i586, i686
    Red Hat Linux 8.0 - athlon, i386, i586, i686

    3. Problem description:

    The Linux kernel handles the basic functions of the operating system.
    A vulnerability has been found in version 2.4.18 of the kernel. This
    vulnerability makes it possible for local users to gain elevated (root)
    privileges without authorization. This advisory deals with updates to
    Red Hat Linux 7.1, 7.2, 7.3, and 8.0.

    All users of Red Hat Linux 7.1, 7.2, 7.3, and 8.0 should upgrade to
    these errata packages, which contain patches to fix the vulnerability.

    4. Solution:

    Before applying this update, make sure all previously released errata
    relevant to your system have been applied, especially the additional
    packages from RHSA-2002:205 and RHSA-2002:206.

    The procedure for upgrading the kernel manually is documented at:

    http://www.redhat.com/support/docs/howto/kernel- up grade/

    Please read the directions for your architecture carefully before
    proceeding with the kernel upgrade.

    Please note that this update is also available via Red Hat Network. Many
    people find this to be an easier way to apply updates. To use Red Hat
    Network, launch the Red Hat Update Agent with the following command:

    up2date

    This will start an interactive process that will result in the appropriate
    RPMs being upgraded on your system. Note that you need to select the kernel
    explicitly on default configurations of up2date.

    --

    Karma: The shiznight, mostly because I am the Drizzle.

  12. Hole Found in Linux Server by ch-chuck · · Score: 5, Funny

    (Server Room, DP) A hole was found in 'cypress', one of the principle Linux file, email and web servers of Brapco Corp early today. "We were dusting out around the back", said Mike Koyro, IT manager of Brapco, "and there it was, right by the power supply." The hole was quickly verified by other members of the IT dept as "really there". Speculation that it may be a screw hole was quickly dispelled when Frank, chief scripting officer, pointed out it didn't have any threads, and no screws were found loose anywhere nearby. "If someone got in here and drilled it during the night, they sure did a clean job - there's no shavings on the floor and the hole has no burrs" observed Mike. "It was either a professional job, with a sharp bit and machining oil, or a manufacturing defect". Calls to Linux Security were unanswered as of press time.

    --
    try { do() || do_not(); } catch (JediException err) { yoda(err); }
  13. IT'S IN ENGLISH!!! by strredwolf · · Score: 4, Funny

    Haleulia and pass the green beer. It's not in Welsh.

    BTW: If you haven't read, or tried to read, Alan's blog you won't get the joke.

    --

    --
    # Canmephians for a better Linux Kernel
    $Stalag99{"URL"}="http://stalag99.net";
    1. Re:IT'S IN ENGLISH!!! by cyb97 · · Score: 2, Funny

      Like the welsh doesn't use any excuse to get drunk?
      Come one grow up! Anybody that knows about st. paddy uses it as an excuse to get smashed on a monday!

    2. Re:IT'S IN ENGLISH!!! by TheRaven64 · · Score: 4, Interesting
      Welsh has the most glaring deficit of vowels and proper spelling.

      Actually, Welsh has more vowels than English, and is spelt almost entirely phonetically. It's hard for English speakers to read since it uses the same characters to represent different sounds (Yes, I have had to listen to Alan rave about how wonderful Welsh is...). The most confusing thing I find about welsh is the way words 'mutate', that is to say their pronunciation changes depending on the syllable preceding or following them to make the sentence flow more easily.

      It is sometimes useful to know a language that no-one else in the room speaks, and I think that this is one of Alan's reasons for learning, but I prefer Latin for this purpose. The structure is more logical.

      --
      I am TheRaven on Soylent News
  14. Time to patch my IIS^H^H^HKernel by Richard_at_work · · Score: 3, Interesting

    Soooo, i wonder how many posts will appear here along the lines of those in the WebDav exploit story earlier. Not many im willing to bet.

    Those people willing to shout and hollor at every serious issue, screaming bloody murder because someone got it wrong, really pisses me off. Yes people get it wrong, they write insecure code from time to time. This issue and a number of those before it show that Linux has as many opportunities for exploitation as any other OS.

    1. Re:Time to patch my IIS^H^H^HKernel by suicidal · · Score: 2, Insightful

      lol
      Too bad this was only exploitable locally. Any secure server would not have local access available to users. I have to agree, but not as a zealot. Bugs will happen but Linux development seems to have them patched instantly, whereas Microsoft's ploy is play dumb until the patch is released, and then act like they did it overnight.

  15. Hrm by B3ryllium · · Score: 3, Funny

    I guess they were just trying to out-do the IIS hole.

    Ah well ... there's always "linux single" ... :)

  16. Re:Kernel Patches by NetJunkie · · Score: 2, Informative

    When does it take a week? The WebDav exploit? That's because blackhats found it... They usually don't disclose.

  17. ptrace() again? by misof · · Score: 5, Informative

    This is already at least the second problem somehow connected with ptrace() in the kernel. Kernels prior to 2.2.19 were vulnerable to a race-condition attack, that enabled local users to gain root privilegies. This was one of the most "famous" problems in last years and it's known as the execve/ptrace exploit.

    More details:

    This vulnerability exploits a race condition in the 2.2.x Linux kernel within the execve() system call. By predicting the child-process sleep() within execve(), an attacker can use ptrace() or similar mechanisms to subvert control of the child process. If the child process is setuid, the attacker can cause the child process to execute arbitrary code at an elevated privilege. There are also other known lesser security issues with Linux kernels prior to 2.2.19 which have been noted as fixed.
  18. Re:Linux disclosure procedures? by N3WBI3 · · Score: 2, Interesting

    1) umm, I got a mail from redhat about this same as I get something from MS.
    2) I think you worry about crackers knowing not hackers, hackers fix problems like this. Also as anyone in a production environment knows just because MS does not publish it does not mean that people dont know before they have a fix. Also the time to deploy a MS patch in production is much longer due to shutdowns and testing.
    3) As opposed to almost *ALL* MS updates which requres a restart of every server in your company Woo Hoo!
    4) ??? 5) Profit

    --
  19. Re:Linux disclosure procedures? by ichimunki · · Score: 5, Informative

    I don't know. Let's ask the U.S. Army what they think of Microsoft after the latest server hacking.

    --
    I do not have a signature
  20. Re:Linux disclosure procedures? by Anonymous Coward · · Score: 2, Interesting

    However, quoting some guy further down the page:

    A Windows vulnerability is discovered and it takes a week or more to get it taken care of.

    The Linux kernel has a vulnerability and the patch is available immediately.

  21. Re:Huh by ageOfWWIV · · Score: 4, Funny

    We're not patching, we're in denial.

    --

    ____
    ATS11=0 the secret to beating everyone else to a 1 line board.
  22. Noone ever said Linux/BSD is perfect by nurb432 · · Score: 3, Insightful

    But at least they admit it when there are problems. As does the BSD crowd too.

    And *nix is still a hell of a lot closer to perfect..

    --
    ---- Booth was a patriot ----
  23. To all the windows bashers... by EZmagz · · Score: 5, Interesting
    Nobody's safe.

    I hate to say it, but this is kind of refreshing. This ins't a troll, so don't get me wrong...I'm a linux user myself. But after seeing the masses rip into MS yesterday when the thread about the IIS 5.0 hole was posted, I got a tad frustrated. Granted, I hate Microsoft as much as the next guy, but this just goes to show you that it's NOT just Microsoft that falls prey to holes and exploits. If it runs an OS, there's a chance it'll be cracked. Simple as that.

    Hell, the linux kernel is without a doubt one of the most audited open source projects out there, and this bug STILL didn't surface until 2.4.20. Of course, I applaud the speed and availibility of patches and workarounds to the bug. Just remember, it happens to everyone.

    --

    "Hell hath no fury like a woman scorned for SEGA. ..."

    1. Re:To all the windows bashers... by jelle · · Score: 3, Insightful

      Sure, both are security bugs, but of a totally different order of magnitude.

      The IIS hole was a remote exploit including privilege escalation open to abuse by anybody on the Internet, and the kernel one was a local privilege escalation open to abuse by system users with shell access or other capability to run&abuse ptrace(). If you have untrusted local users, you should run them in a UML or vservers/ctx anyway so thay if they escalate privileges, they still can't harm the system.

      Plus, the IIS bug was found after US ARMY web sites were getting hacked, and the kernel bug was found by a developer that was auditing/working on part of the code and patch available before any bad guy got to it.

      --
      --- Hindsight is 20/20, but walking backwards is not the answer.
  24. Re:Kernel Patches by kfg · · Score: 2, Funny

    Who's a sysadmin to trust?

    Ummmmm, Ghostbusters?

    KFG

  25. I'm not going to patch. by gosand · · Score: 2, Insightful
    Soooo, i wonder how many posts will appear here along the lines of those in the WebDav exploit story earlier. Not many im willing to bet. Those people willing to shout and hollor at every serious issue, screaming bloody murder because someone got it wrong, really pisses me off. Yes people get it wrong, they write insecure code from time to time. This issue and a number of those before it show that Linux has as many opportunities for exploitation as any other OS.

    I hate when I choose to reply instead of mod, but this needs to be said - they aren't the same!

    I am not going to patch my Linux systems. Why? Because it isn't possible to exploit this vulnerability remotely. The only local user on my machine knows the root password (me). So it isn't quite the same severity as a bug in a widely distributed webserver. Yes, they are both serious, but compare apples to apples. (not that your comments aren't correct, just that you need to make them at the right time.)

    --

    My beliefs do not require that you agree with them.

    1. Re:I'm not going to patch. by siteTHREE · · Score: 5, Insightful

      Have you considered the possibility of someone exploiting a non-root remote hole on your box and now having the ability to escalate themselves to root?

    2. Re:I'm not going to patch. by gosand · · Score: 3, Funny
      Have you considered the possibility of someone exploiting a non-root remote hole on your box and now having the ability to escalate themselves to root?

      Well, I, ahhh....

      Shut up!

      Would someone please mod my previous post down as "fingers faster than brain"?
      Thank you.

      --

      My beliefs do not require that you agree with them.

    3. Re:I'm not going to patch. by Havokmon · · Score: 2, Insightful
      Have you considered the possibility of someone exploiting a non-root remote hole on your box and now having the ability to escalate themselves to root?

      EVERYBODY plays the odds:

      FIRST: a user has to exploit *A* remote exploit. Which one? Could be anything. Most exploits are either popular services, or shots in the dark. Patch the popular services, and you've defeated 90% of the scans. Remember, there's safety in numbers, and the vast amount of hosts on the internet just makes it less likely you'll even been scanned in the first place - and even less likely that your exploitable remote hole is discovered... (But, yes, definately patch outside services)

      SECOND: As a cracker, once you've got that local exploit, what root exploit do you try and take over? Granted, you may have an unlimited amount of time to scour the system for vulnerabilities, but unless that system is actually WORTH something to you, you'll just move onto something easier.

      Ease of use, it's the American way. Sure, you may say it's security by obscurity, but deadbolts are EXACTLY the same thing. Any idiot can break down the door or pick the lock.. it's just easier to get into a home with a door that's already open.

      --
      "I can't give you a brain, so I'll give you a diploma" - The Great Oz (blatently stolen sig)
    4. Re:I'm not going to patch. by humphrm · · Score: 2, Interesting

      How about "Security-By-Not-Having-Anything-Of-Any-Real-Inter est-To-Crack" on my system?

      --
      -- "In order to have power, I must be taken seriously." -Mojo Jojo
  26. Re:Stupid question... by Xerithane · · Score: 4, Informative

    Does that mean you have to be at the keyboard, or does that mean you have to have access to the box itself? (a shutdown/restart exploit?)

    This means that you have to already have an existing user account on the system, running in user space. You cannot exploit the box without having (control of) a user account.

    If you are at the keyboard, you can usually get root instantly on Linux. "lilo: linux single"

    --
    Dacels Jewelers can't be trusted.
  27. Dangit, Slashdot, mirror things like this by Kiwi · · Score: 4, Insightful
    Dangit, Slashdot, mirror things this important; don't just link to some poor low-traffic Linux kernel archive which can not handle Slashdot-level traffic. I normally don't mind sites being Slashdotted, but a critical security fix being slashdotted is not a good thing.

    Anyway, another copy of the patch.

    - Sam

    --

    The secret to enjoying Slashdot is to realize that it should not be taken too seriously.

  28. Re:Stupid question... by DarkMan · · Score: 3, Informative

    A remote exploitation means that if your are connected to the internet, (And, in the case of a server deamon, running the affected daemon), then a remote attacker (== only using net acesses) can obtain root privs.

    A local exploit menas that the attacker must be first logged in as a local user (i.e. have a valid account, or have exploited a server daemon to obtain local, unprivildiged access).

    Attacks that require you to have physical acess to the box are generally not classified, as these will always exist (through boot disks, etc), and as thus not audited for.

    It is a common practice to use an insecure deamon to first get local acess, then to use a local root hole, such as this one.

    Hope that helps - the jargon is dense, but useful.

  29. Simple workaround by volkerdi · · Score: 5, Informative

    If you can't patch this right away, you can easily work around the hole. In order to be vulnerable, you need to have kmod enabled in the kernel, and /proc/sys/kernel/modprobe must contain the name of ANY VALID EXECUTABLE. It doesn't have to be /sbin/modprobe. Even /bin/false is vulnerable on this one.

    To prevent the exploit, give the kernel a bogus filename to use as modprobe, like this:

    cat /this/file/aint/there > /proc/sys/kernel/modprobe

    If you only use kmod to load modules at boot time, you might consider having this run after all your other init scripts, say in rc.local.

    Pat

    1. Re:Simple workaround by volkerdi · · Score: 3, Informative

      cat /this/file/aint/there > /proc/sys/kernel/modprobe

      Oops... While the above also happens to work, what I meant was more like this:

      echo "/this/file/aint/there" > /proc/sys/kernel/modprobe

      Pat

  30. Re:Root Kit by Tom7 · · Score: 5, Informative

    No, but a good bet is to reinstall MD5-verified binaries of netstat and ps, and then look for suspicious processes or network servers. All of the rootkits I've seen work by running a hidden background process, or by modifying the kernel -- and you're replacing the kernel, so that should be ok.

  31. Re:Known exploits? by Soko · · Score: 2, Funny

    The Linux 2.2 and Linux 2.4 kernels have a flaw in ptrace. This hole allows
    local users to obtain full privileges. Remote exploitation of this hole is
    not possible
    . Linux 2.5 is not believed to be vulnerable.


    It isn't a remote exploit. Anyone who is foolish enough to attempt to h4X0r your b0X0rz with this vulnerability is within the normal attack range of a LART.

    Please, do patch any affected machines you have as soon as possible, but don't *ahem* panic.

    Soko

    --
    "Depression is merely anger without enthusiasm." - Anonymous
  32. In the meantime... by TheSHAD0W · · Score: 4, Funny

    Until the patch has been tested and distributed, you can prevent the bug from being exploited by locking the door to your office.

  33. Common misconception by burgburgburg · · Score: 2, Insightful

    With so very many vulnerabilities (and ever expanding), it's easy to see why you'd assume that Windows was the only buggy vulnerable bloated operating system. This isn't true. It just seems that way. It feels that way. And, considering how wide rangingly destructive Windows vulnerabilities tend to be, for all intensive purposes, it is that way. But, deep down, we all acknowledge that it isn't technically true.

  34. Exploitable? by Rain · · Score: 5, Interesting

    Geez, only took /. 27-odd hours. Anyway.

    I tried writing an exploit for this flaw, but I couldn't get far enough to inject any code. I managed to ptrace(PTRACE_ATTACH, ...) a uid 0 modprobe (easy enough way to call kernel_thread()), but for some reason, the traced process isn't properly reparented, so all subsequent ptrace() calls fail. (Whenever you PTRACE_ATTACH to a process, it's supposed to become the child process of the tracer, and ptrace_check_attach (linux/kernel/ptrace.c) will return -ESRCH if this condition isn't met.)

    I'm not positive this is actually exploitable, but I'm not positive I took the correct approach, either. In any case, the most I've been able to do is spawn a slew of suspended root-owned processes. Not good, but not the end of the world, either. If someone has actually managed to exploit this flaw, I'd love to see some code so that I could see what I did wrong. Conversely, I'm willing to share the code I have upon request. I've only written code up to the current impasse, but once past this problem, the rest should be pretty trivial.

    1. Re:Exploitable? by GammaTau · · Score: 4, Informative

      An anonymous writer at kerneltrap.org provided this link for a working exploit:
      http://isec.pl/cliph/isec-ptrace-kmod-exploit.c

  35. Huh? by FireballFreddy · · Score: 2, Funny

    St. Patrick's Day, a perfectly valid and socially acceptable excuse to get rip-roaring pissed, and you say it's *only* for the Irish? I'm sorry, please hand in your geek membership card. You aren't allowed to post here anymore.

    --
    SQUEAK, the Death of Rats explained.
  36. workaround without reboot by disabling ptrace() by Brian+Ristuccia · · Score: 2, Informative

    After the last ptrace() fiasco, there was a temporary workarounds in the form of loadable modules which stub out or wrap the ptrace function. For servers where downtime and reboots must always be scheduled in advance, such a fix was well received.

    You can create such your own module containing a do-nothing fake_ptrace function. In init_module(), set sys_call_table[__NR_ptrace]=fake_ptrace so the fake ptrace gets run instead of the real one. Search google for "no ptrace module" to find a few readymade ptrace wrapper/stub modules.

  37. Re:Huh? by vsprintf · · Score: 2, Funny

    Linux has security problems? I've been reading this site for so long, I thought that was only in Microsoft's domain.

    We do want to make Windows users feel at home as they migrate to a Linux desktop. We don't expect 'em to go cold turkey right away.

  38. Patch won't apply to linux-2.4.20 by sanermind · · Score: 4, Informative

    It fails on include/linux/sched.h with default patch options. Which kind of sucks. You can get it to 'work' by giving patch a fuzz-factor of 3, but then the build fails. Not a very usefull patch.
    cd /usr/src
    mv linux-2.4.20 linux-2.4.20_OLD
    bzcat /otherhome/stor/src/linux/linux-2.4.20.tar.bz2 | tar xv
    cd linux-2.4.20
    patch -p1

    fails at include/linux/sched.h

    If you do 'patch -p1 -F 3' instead, it won't fail, but the fuzz factor obviously leads to a patch error, as the compilation breaks [as soon as include/linux/sched.h is included, BTW]

    I mean, I appreciate knowing that my system is horribly vulnerable, but a WORKING FIX would sure be nice.

    --

    ---
    the pen is mightier than the sword, the sword is mightier than the court, the court is mightier than the pen.
  39. Where's Debian?? by drwho · · Score: 2, Interesting

    Where the hell are the debian people with a patched kernel? The patch alan cox provided doesn't apply cleanly to the debina modified kernel, so I am trying to hack it up now. But shouldn't someone in charge of security patches at debian have done this and had an update out?

    COME ON WAKE UP!

  40. Re:This has to be erroneus. by zebs · · Score: 2, Funny
    After all, Linux is perfect, right? Linux has NO vulnerabilities. It's that OS from Bill that is buggy, right?

    Its bugs from code Billy-boy wrote under a pseudonym

  41. Re:Don't forget us 2.0.x users. by schon · · Score: 2, Informative

    What makes 2.0.x better for you than a 2.2 or 2.4 kernel?

    Depends on the box. A better question is "what makes 2.2 or 2.4 better for me than 2.0?"

    I have a few 2.0.x boxes kicking around that "just work".. they've never been down, there are no known exploits for them, and users would be pissed if I took them down to upgrade them.. so it just makes sense to leave them as is.

    If I upgrade them, it's more work, not to mention the inevitable downtime.

    If I leave them be, it's less work, with no gain (there's nothing that 2.2 or 2.4 will do that I need for these boxes.)

    Pretty simple decision.

    If/when they break, I'll replace them with something newer.. but until then, I'll just leave them be.

  42. Tux is Welsh!!! by schon · · Score: 4, Funny

    I know "Cymru" means "Welsh" but that's about it.

    Tux, the beloved Linux mascot is Welsh!

    It's true! Tux is a penguin..

    Penguin is derived from two Welsh words: Pen (head) and Gwynn (white)...

    So (besides Alan) there is another link between Wales and Linux.

    (That, and I've tripled your knowledge of the Welsh language :o)

    1. Re:Tux is Welsh!!! by Large+Green+Mallard · · Score: 2, Funny

      So Alan's significant other Telsa Gwynne is half penguin?

      Kinky :)

  43. Linux auditing by Kourino · · Score: 3, Insightful

    I think our friend Al Viro would have something to say about the auditing level of the Linux kernel. And if we're talking about drivers/ in particular, it would probably involve the words "obfuscated", "brain dead", "steaming pile of shit", "warped beyond all belief" ... :)

    Linux code gets a fair amount of review. But once it's there, there really isn't any auditing at all.

  44. Re:In Soviet Russia... by Repugnant_Shit · · Score: 2, Informative

    I'm new to Linux, so I might be wrong, but: If the minor version 2.x is odd, its a development/beta/alpha/whatever kernel. So 2.3 became 2.4, and no one should be using 2.3 on a production box. 2.5 is the current development branch, and when it is final it will be renumbered to 2.6. At that point no one should be running 2.5 on any box that matters.

  45. Re:Linux disclosure procedures? by mentin · · Score: 2, Informative
    the time to deploy a MS patch in production is much longer due to shutdowns and testing.

    You will deploy Linux patches on production machines without testing?

    --
    MSDOS: 20+ years without remote hole in the default install
  46. Re:I don't think so by mmontour · · Score: 3, Interesting

    At least in Debian, even with "linux single" you have to type the root password to get root.

    How about with "linux init=/bin/sh"?

  47. this could be a big problem by Trepidity · · Score: 4, Insightful

    Everyone's taking comfort in the fact that no remote exploitation is possible, but remember all those universities that you've convinced over the past few years to switch from proprietary UNIX to Linux for their cs department and mail servers? The ones with thousands of local accounts given out to all the students and faculty? Yeah, they might not be happy about this.

  48. The Smaller Folks by DarwinDan · · Score: 5, Insightful

    I second that opinion. However, many sysadmins have a responsibility for public servers (lots of ports open even with a firewall). As such these same sysadmins are smart and have a redundant box to do things like patch a system.

    In addition, some small businesses don't have the luxury of a secondary box or even an IT specialist that can put a machine through a high-load test for more than a few hours at a time -- let alone having to patch it at all!

    Ideally we would all have a RAID 10 array connected to four boxes each running a different OS. While some companies (!) may have the time and money for this, the small folks like mom-and-pop stores can't afford the expense of time or money.

    --
    $DEITY bless $NATION
  49. UNIX to Linux switch by aksansai · · Score: 3, Insightful

    Never forget that proprietary, commercial UNIX solutions are also vulnerable to kernel-level bugs and exploits. I used to work for a university that deployed Linux and Solaris solutions - the patch sets for Solaris (kernel and userland utilities) were just as necessary as the Linux server installations.

    The beauty of the Linux and open-source worlds is that the code is available right before your very eyes and is subject to scrutiny, day-in and day-out. Commercial offerings are not available to the general public, potentially leaving behind bugs that wouldn't be caught by the few who _could_ see the code. Code that is viewed by literally thousands of all programming backgrounds, versus code that is viewed by a select few which only specialize in that code, is more likely to be exploit-free.

    This particular Linux kernel exploit was encountered by developers that recognized the flaw. And, luckily for us, the developers were talented enough (or knew someone in the core development group) that could quickly produce a patch so that administrators could secure their servers from being taken advantage from.

    If the exploit was encountered in the commercial arena, the person who found the flaw would have to contact the company who supports the operating system. An assessment team would have to see the cause/effect/consequences of the exploit. Then, the development group would have to produce a patch. The company would then contact their support group to contact their enterprise customers first (more than likely) to deploy the patch. Finally, with the company's core customer interests intact, the company would publish their findings and solution for the remainder of the world. Many Microsoft patches are first released to their core enterprise companies - and then released via Windows Update (or through their web site).

    For universities that have made the switch, there should be more peace of mind knowing that the quantity of security breaches on the kernel level are much less than the overwhelming number of Windows flaws (which generally require a reboot) and at a much cheaper price than a commercial UNIX offering.

    --
    Ayup
  50. Re:This has to be erroneus. by rusty+spoon · · Score: 2, Funny

    Yeah, that William H. Torvalds III has done a lot of damage with his weasly little kernel hacks, dammit.

  51. Re:Linux disclosure procedures? by N3WBI3 · · Score: 2, Insightful

    Of course I will test, but the testing almost always takes less time because it does not break other services. When we had to patch windows to avoid all the SQL server crap a while back it broke the damn server, so in testing there is going to be more tweaking involved than one might have with a typical Linux patch..

    --
  52. get over it--your local system isn't secure anyway by g4dget · · Score: 4, Insightful
    Realistically, most regular Linux systems are not secure against local exploits: making a system secure that way is possible, but it's quite a bit of work. You certainly won't get such a system by just doing a [insert your favorite distribution] install. This isn't exactly news either--it's been like that for a long time.

    Of course, it is good that these kinds of bugs get fixed. Some people do run multiuser systems, and it provides an additional barrier against intrusions. But don't lose any sleep over it.

    Incidentally, these kinds of exploits are probably rampant on Windows systems; there, people don't even bother looking for them because there are very few multiuser machines and most people have local Administrator privileges anyway. Also note that Microsoft didn't even try to get Windows certified secure for multiuser use.

  53. Parent isn't troll. Patch really won't apply by sanermind · · Score: 2, Informative

    to linux-2.4.20

    --

    ---
    the pen is mightier than the sword, the sword is mightier than the court, the court is mightier than the pen.
  54. Re:Root Kit by GT_Alias · · Score: 2, Informative
    ChkRootKit will check for the known ones and some of the obvious signs for one.

    Doesn't help much though if the user has developed something of their own that flies below the radar. Chkrootkit doesn't hurt for a bit of peace of mind.

  55. This and IIS exploit by OoSync · · Score: 3, Interesting

    While its not really kosher to bash an OS because of a single flaw, there is a fundamental difference in the case of this flaw and the previously announced IIS exploit: this one's not yet exploited. One thing that hurts FS/OSS on bug lists is that all *potential* exploits in open code will be listed as bugs, while many proprietary producst only disclose known, possibly exploited, bugs. Case in point, the IIS problem was exploited almost a week ago. The kernel problem was noticed, fixed, and no exploit exists. In fact, a previous poster on this board has posted his inability to trigger the *potential* exploit and asked for help.

    --

    I always get the shakes before a drop.
  56. And the obligatory.. by mivok · · Score: 2, Funny

    OpenBSD isnt vulnerable :P

  57. Rule of Thumb by Anonymous Coward · · Score: 2, Interesting

    When setting up security, I always assume any local user can get root priviledges and make sure I don't care that much. It makes life much easier and less worrisome.

  58. Clean patch against 2.4.20 by bahamat · · Score: 3, Informative

    This is probably way too late in the discussion to get seen, but Alan's patch won't apply cleanly to 2.4.20.



    A clean patch can be found here:

    http://www.hardrock.org/kernel/2.4.20/linux-2.4.20 -ptrace.patch



    Sorry if you get /.ed.

  59. Re:Mod Parent Down by crimsun · · Score: 2, Informative

    Um, no, I'm afraid the guy (Rain) _does_ know what he's talking about (since I know him), and I've done a fair amount of kernel hacking in my day.

    If you'd actually like to read something on-topic, see Ben Pfaff's response to Alan's post. The short of it, "we're [i.e. you're free to do it!] working on a correct fix for all cases, this is just the quick sledgehammer."

    http://www.uwsg.iu.edu/hypermail/linux/kernel/03 03 .2/0271.html

  60. Re:A bug!?!?11 by t0ny · · Score: 2, Funny

    NOW linux is ready for the desktop

    --

    Manipulate the moderator system! Mod someone as "overrated" today.

  61. Patch for 2.4.20 from LKML by KPU · · Score: 3, Informative

    Further in the thread, there is a patch against 2.4.20.