News for hackers. Stuff that matters.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by swanson on Friday February 15, 2013 @11:03PM (#5230327)
Hah! Where are the Linux neckbeards now? Another day, another Linux vulnerability it seems like.

Honestly, how much longer are we going to build on this house of shaky cards?

Did they really think that letting a race condition happen on PTRACE_SETREGS was a good idea? Just for "elegance sake"? Come on.

Everyone could tell that none of ptrace/jctl callers actually want to wakeup a TASK_WAKEKILL task, but they can't specify the necessary mask.

My startup still runs Cobol on Cogs in DOS (and we serve over 9000 requests per second on a single DigitalOcean $5 box!).

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by pyre on Friday February 15, 2013 @11:15PM (#5230349)

  | Hah! Where are the Linux neckbeards now?
ubi sunt[1]?

[1] http://en.wikipedia.org/wiki/Ubi_sunt

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by homosaur on Saturday February 16, 2013 @12:24AM (#5230499)
<blink>As long as your site still works in Netscape Navigator 2.0, I don't give a crap what you use on the backend.</blink>
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by StefanKarpinski on Friday February 15, 2013 @11:09PM (#5230342)
not sure if trolling or actually runs DOS
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by sp332 on Friday February 15, 2013 @11:18PM (#5230356)
COBOL ON COGS is a joke, plus I'm pretty sure a true user would get the spelling and capitalization right :) http://www.coboloncogs.org/INDEX.HTM
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by kintamanimatt on Saturday February 16, 2013 @12:05AM (#5230466)
"(c) <DATE OVERFLOW>"

Oh dear!

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by frozenport on Saturday February 16, 2013 @12:40AM (#5230536)
keeps his machine cool by using only 1 of 32 cores on his AMD bulldozer dual socket server board.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by nilved on Friday February 15, 2013 @11:17PM (#5230355)
Pretty obviously joking.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by derleth on Saturday February 16, 2013 @12:57AM (#5230567)
> Pretty obviously joking.

The problem with trying to sound so stupid you can't possibly be serious is that there are people who are seriously that stupid.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by eclipxe on Saturday February 16, 2013 @01:28AM (#5230638)
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by jpdoctor on Saturday February 16, 2013 @10:39AM (#5231752)
Great list on that site, but I'm surprised they missed one of the granddaddies of such reports: http://en.wikipedia.org/wiki/Spaghetti_tree_hoax
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by raverbashing on Saturday February 16, 2013 @05:52AM (#5231127)
Yeah, for me what gave away is the 9000 requests on Digital Ocean, because obviously you can do 10x that

just kidding, of course it was the last line

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by randomdata on Saturday February 16, 2013 @06:06AM (#5231147)
There was a, presumably serious, post made here about Rails that was almost word-for-word, save the differing technical terms. The post here was obviously making fun of that other post, but I guess that would be lost without the prior context.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by hysterix on Saturday February 16, 2013 @12:23PM (#5232183)
Not trolling, he's just a complete moron who got butthurt when people called his precious ruby as being a pile of insecure shit.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ubernostrum on Friday February 15, 2013 @11:33PM (#5230396)
I'll believe it when Netcraft confirms it.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by anonymous on Saturday February 16, 2013 @03:18AM (#5230864)
Good post, but I'm afraid high sarcasm is lost on this crowd.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by riffraff on Saturday February 16, 2013 @02:58AM (#5230832)
please have all my upvotes
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by hysterix on Saturday February 16, 2013 @12:20PM (#5232170)
I love how ruby fanboy/fanaticism is not downvoted. Just look at your about page. "ruby by day, rails by night" No, no bias to be seen here, move along!

You are a complete moron. This isn't even comparable with those ruby vulns, they were remote, this isn't.

It is pretty obvious ruby isn't a fully mature platform to develop on, there has been dozens of posts illustrating that. Linux is a stable operating system that is fully mature and capable of running enterprise level software. The fact I need to point this out to you says you are either a troll, or living in denial, either of which are hilarious.

The level of fanaticism towards ruby on this site is unbelievable. Ruby is an immature platform, I'm sorry if this fact makes your stomach turn circles and keeps you up at night.

As illustrated here, http://news.ycombinator.com/item?id=5230358 "But even with access, this is awfully hard to exploit. You need a precisely timed kill, followed by a precisely timed preemption. That's really (really) hard on a multi-cpu machine" This exploit isn't even in the same league as the remote vulns for ruby. There was a working exploit within a day! The fact you'd even make comparison of the two shows how ignorant you really are.

Posts like this make me laugh because I'm sure you will be jumping on the next band wagon whenever the next popular thing comes riding through town, and will probably be vehemently defending that when it has vulnerabilities.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by apawloski on Saturday February 16, 2013 @12:33PM (#5232224)
I'm 100% sure he was being facetious.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by SkyMarshal on Saturday February 16, 2013 @03:46PM (#5232956)
>Cobol on Cogs in DOS

/whoosh, right over someone's head.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by onedognight on Saturday February 16, 2013 @12:21AM (#5230495)
First, this is local exploit. Second, most distributions do not allow access to realtime scheduling by regular users. In particular, a simple for(;;); at the highest SCHED_FIFO priority will lock the box. You can check

   /etc/security/limits.conf
to see which users / groups are allowed a higher than normal rtprio.

That being said, often pulseaudio and/or jackd are given realtime priviledges, so I assume people will be looking at them.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by vetrom on Saturday February 16, 2013 @01:10AM (#5230600)
RT privilege is not a prerequisite to this exploit, it only makes it 'easier'.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by vetrom on Saturday February 16, 2013 @01:26PM (#5232410)
As a matter of fact, I also just realized that it may be possible that nice-ing the 'victim' process down to -20 may also make it easier, and is a non-privileged operation almost everywhere.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by adamnemecek on Friday February 15, 2013 @11:03PM (#5230329)
I really like this recent trend where stuff like this is getting posted and (more importantly) getting upvoted.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by jewel on Saturday February 16, 2013 @12:30AM (#5230513)
For me a lot of it feels like noise. Back when I was in charge of security at a payment processor I was subscribed to all the relevant mailing lists (as required by the PCI DSS). Now that I'm working with something less valuable I just rely on apticron + nullmailer to notify me of important security updates to system packages, and the rails security mailing list for rails.

It'd be wonderful if something similar were implemented for rubygems. If security updates were marked in some way, a cron job could scan my Gemfiles periodically and then check each gem to see if any security updates have been released.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by adamnemecek on Saturday February 16, 2013 @12:37AM (#5230530)
I know where you are coming from but I feel like the exploits that do make it to the front page are pretty saucy.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ushi on Saturday February 16, 2013 @03:05AM (#5230845)
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by akkartik on Saturday February 16, 2013 @01:39AM (#5230666)
I upvote pretty much anything that shows code.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by FooBarWidget on Saturday February 16, 2013 @07:29AM (#5231284)
There have been multiple local kernel exploits in the past few years. For somebody who doesn't constantly watch seclists.org or similar security sites, how do I find out whether my kernel is vulnerable to any known exploit? Is there a tool that can help me with checking? Is there a notification tool?
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by 0x0 on Saturday February 16, 2013 @08:31AM (#5231411)
Your distro probably has a mailing list for announcing updates.

For debian, you should subscribe to http://lists.debian.org/debian-security-announce/ - and you'll get an email as soon as updates are published. These are also published at http://www.debian.org/security/

You can also follow security bugs closely on the security tracker. For example, this vulnerability is classified here: https://security-tracker.debian.org/tracker/CVE-2013-0871 and the full list of bugs affecting the stable kernel is here: https://security-tracker.debian.org/tracker/source-package/l...

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by Rovanion on Saturday February 16, 2013 @12:32PM (#5232222)
I just set my distro to automatically install security fixes from my distributor. Only requires a reboot for kernel updates and it is a no effort solution to the problem.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by bcoates on Friday February 15, 2013 @11:04PM (#5230331)
A lot of uses of ptrace require root on many distros, does this vulnerability work when that's enabled?

edit: as in, does yama.ptrace_scope prevent anyone without root and/or CAP_SYS_PTRACE from exploiting this?

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ajross on Friday February 15, 2013 @11:20PM (#5230358)
Yes, ptrace can be globally disabled by a file in /proc somewhere, I believe. I forget the details.

But even with access, this is awfully hard to exploit. You need a precisely timed kill, followed by a precisely timed preemption. That's really (really) hard on a multi-cpu machine, and it's worth pointing out that the exerciser case in the bug has to patch in a sleep for the exploit to work. It's not clear if they have a real world exploit running, though of course the race is real.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by tedunangst on Friday February 15, 2013 @11:48PM (#5230432)
There's no penalty for losing the race and trying again. It's not like it's making noise and filling up logs or anything like that. Maybe somebody would notice the CPU spinning if you're hammering it, but that's avoidable.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ajross on Saturday February 16, 2013 @12:13AM (#5230474)
That's true, of course. But time is still a finite resource and it's possible to have a theoretical race with a window so narrow that it can't actually be exploited in feasible time. The fact that the proof of concept had to artificially open the window is evidence that this might be such a situation. It's still a hole; it just might not be big enough to push a hack through.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by lawnchair_larry on Saturday February 16, 2013 @12:54AM (#5230561)
You're speculating, but you're wrong, FYI. You're also wrong that the PoC requires a patch to work. That's just to make the window gaping and foolproof, basically.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ajross on Saturday February 16, 2013 @12:30PM (#5232207)
Better to speculate and be wrong than assert without evidence. How long does the exploit take to run successfully on your test system? Did you even build it? I did, and it doesn't. Go away.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by tedunangst on Saturday February 16, 2013 @01:54PM (#5232514)
Strong disagree. "This race condition is way too small for anybody to exploit" is not the good kind of speculation.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by lawnchair_larry on Saturday February 16, 2013 @02:57PM (#5232749)
You asserted without evidence. I've successfully run it repeatedly. You don't have to believe me, but in dismissing the impact, you're making a common error. Probability of the event occurring naturally has very little to do with risk, particularly when there are no consequences for failing.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by tedunangst on Friday February 15, 2013 @11:15PM (#5230350)
No, you can exploit this by ptracing your child. It's not targeting a special process. (Does anybody use yama.ptrace_scope?)
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by sounds on Saturday February 16, 2013 @06:05AM (#5231146)
Has anyone estimated the probability of success? What is the average number of attempts to get the scheduling conditions to happen?

Assume the user can get access to a CPU core that is otherwise idle. sched_setaffinity(2) will succeed when run by the process to set its own affinity to a specific core, so the attacker can locate the processes on a chosen core. (The attacker could spend a few milliseconds first to find an idle core.)

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by bcoates on Friday February 15, 2013 @11:27PM (#5230380)
It's on by default on Ubuntu.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by px43 on Friday February 15, 2013 @11:20PM (#5230357)
No, the PoC forks and ptraces the child, which is allowed in even the strictest yama settings.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ck2 on Friday February 15, 2013 @11:34PM (#5230401)
Did centos 2.6.32-279.22.1.el6 address this on Feb 6th or is this something new?

Oh wait, nope, not addressed: https://rhn.redhat.com/errata/RHSA-2013-0223.html

I thought the responsible thing to do was not announce it until there was some headstart time?

Strangely it's not in the redhat db yet at all

https://access.redhat.com/security/cve/CVE-2013-0871

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by rbanffy on Saturday February 16, 2013 @05:46AM (#5231115)
> I thought the responsible thing to do was not announce it until there was some headstart time?

I may be wrong, but from the report, it seems to be a somewhat difficult local exploit that can lead to privilege escalation. While it's serious in that it allows arbitrary code to run in kernel space, it also seems to pose a low risk due to how hard it is to put all the required pieces in place.

Also, there are already corrections available.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by X-Istence on Saturday February 16, 2013 @02:47PM (#5232717)
There is responsible disclosure, full disclosure and no disclosure.

I'll take the first two over the last any day of the week. It may be responsible, but there certainly isn't a requirement to do responsible disclosure.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ineedtosleep on Friday February 15, 2013 @11:21PM (#5230362)
Is this a vulnerability across all Linux versions or some of the more recent versions (e.g. 3.7.x)?
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by ck2 on Saturday February 16, 2013 @07:05AM (#5231252)
So correct me if I am wrong, to disable ptrace?

   echo 0 > /proc/sys/kernel/yama/ptrace_scope
Grsecurity kernels also seem to have

   /proc/sys/kernel/grsecurity.harden_ptrace
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by andri on Thursday February 21, 2013 @07:04PM (#5261569)
According to https://wiki.ubuntu.com/SecurityTeam/Roadmap/KernelHardening... setting it to zero would actually restore the more permissive behavior. But, like someone here mentioned, a value of 1 would still allow to ptrace your own process children.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by csense on Friday February 15, 2013 @11:14PM (#5230345)
Can anyone explain what access is necessary to use this attack?

I'm guessing anyone with shell access (can run arbitrary shell commands from an unprivileged account) will be able to use this to get root. But that's just a guess; kernel experts are welcome to weigh in.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by astrodust on Friday February 15, 2013 @11:20PM (#5230359)
Any application that has a vulnerability can run arbitrary code, such as an insufficiently patched WordPress, could enable privilege escalation using this flaw.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by sounds on Saturday February 16, 2013 @06:00AM (#5231143)
That's a bit of an exaggeration, because this requires a precise race condition.

The race condition is very possible but fairly unlikely unless you apply the Proof-of-Concept patch to make a huge gaping delay in the kernel where the exploit can run.

WordPress probably has unpatched vulnerabilities, but it would take many thousands of attempts to exploit this hole.

Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by StavrosK on Saturday February 16, 2013 @07:06AM (#5231254)
Doesn't that take around a second?
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by thefreeman on Friday February 15, 2013 @11:34PM (#5230400)
There isn't even a working exploit yet. As someone else mentioned, they include a kernel patch with their proof of concept to allow you to reproduce it.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by thirsteh on Saturday February 16, 2013 @04:33AM (#5231011)
A PoC and an exploit are equivalent. Attackers have saved the time trying to figure out how to leverage it.
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by zobzu on Saturday February 16, 2013 @09:50PM (#5234006)
well, the exploit is linked ;-)
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by batgaijin on Friday February 15, 2013 @11:58PM (#5230456)
SELinux wouldn't stop this, right?
Re:CVE-2013-0871: Linux arbitrary kernel-mode code execution by brokenparser on Saturday February 16, 2013 @03:55AM (#5230934)
I think you can use SELinux to prevent this attack. See http://fedoraproject.org/wiki/Features/SELinuxDenyPtrace