News for hackers. Stuff that matters.
Re:Meltdown Update Kernel doesnt boot by gkya on Wednesday January 10, 2018 @05:02PM (#16119545)
Would this entire Meltdown/Spectre thing count as the biggest mess-up of computing history? When yesterday the PoC repo was posted here, the spy.mp4 demo video gave me some chills. And now I can't update my OS before making an installation USB because Canonical can't just follow Linus' releases. Thanks.
Re:Meltdown Update Kernel doesnt boot by bArray on Wednesday January 10, 2018 @05:51PM (#16119896)
>Would this entire Meltdown/Spectre thing count as the biggest mess-up of computing history? When yesterday the PoC repo was posted here, the spy.mp4 demo video gave me some chills.

It must be up there amongst the greats, probably with the "halt and catch fire" op code. Normally they just patch this stuff with microcode and never really tell anybody, this time that won't work.

I'm not entirely convinced it was a mistake at all (dons tin foil hat), Intel have been making suspicious design decisions to their chips for a well now (think this, Intel Me, hidden instructions, etc). It seems clear to me that this security by obscurity approach is quite frankly crap.

>And now I can't update my OS before making an installation USB because Canonical can't just follow Linus' releases. Thanks.

Linus' releases need some sort of buffering before they can be considered stable, often distributions will apply their own patches on top. Also consider the scenario where Linus releases a bad kernel and no testing has been performed before rolling out to all Linux users.

Re:Meltdown Update Kernel doesnt boot by throwawayfinal on Wednesday January 10, 2018 @06:31PM (#16120134)
I think it's absolutely unreasonable to imply that this was intentional. Besides the massive amount of complexity these systems have, there are plenty of "legitimate" places to hide backdoors, instead of in a performance architecture decision.

Keep in mind that whatever "evil agencies" would have asked for this would most likely find themselves vulnerable, and nobody would sign off on.

I do agree, however, the "security by obscurity approach is quite frankly crap". The fact that even large corporations (not the big 5) can't even get away from ME speaks volumes about why this is a bad idea. Facebook isn't the only company with important data.

Re:Meltdown Update Kernel doesnt boot by mehrdadn on Wednesday January 10, 2018 @06:56PM (#16120264)
> I think it's absolutely unreasonable to imply that this was intentional.

Amen. It blows my mind that some people think clever techniques like speculative or out-of-order execution must've somehow how nefarious intentions behind them. Come on HN...

Re:Meltdown Update Kernel doesnt boot by Animats on Wednesday January 10, 2018 @08:01PM (#16120621)
The Intel Management Engine is a backdoor. Speed variations in speculative execution are an inherent property of the technology. Until recently, few people thought this was exploitable, and it took a lot of work to figure out how to exploit this.
Re:Meltdown Update Kernel doesnt boot by andrewflnr on Wednesday January 10, 2018 @08:17PM (#16120720)
You do realize those are ideal properties for a backdoor, don't you? If you were writing the spec for a dream backdoor, you would write that down. The only way you could improve it would be "everyone thinks it's impossible, and they never figure it out."
Re:Meltdown Update Kernel doesnt boot by netsharc on Thursday January 11, 2018 @06:34AM (#16122991)
This backdoor is too tricky to be a backdoor. A simpler backdoor would be "Call this opcode 45 times, followed by another opcode 20 times, and you will have activated backdoor mode where these opcodes are now available"...
Re:Meltdown Update Kernel doesnt boot by jijji on Thursday January 11, 2018 @01:35AM (#16121848)
the ideal properties of a backdoor were visualized to me the day i hacked into an author of a largely distributed piece of smtp mail server, only to find sitting in his home directory an unpublished integer overflow exploit written by him years earlier for a version of the software that is currently in wide distribution...
Re:Meltdown Update Kernel doesnt boot by dvfjsdhgfv on Thursday January 11, 2018 @02:18AM (#16122019)
That's close to perfect, indeed. The drawbacks in this scenario are that (1) not everybody runs an SMTP server, (2) if it's open source (and if it's very popular, then it is), some other smart people will look for the bug and publish it for fame. That's quite different from a backdoor built into a processor (although I really doubt Intel was really involved in any shady practices, it looks like they were not smart enough).
Re:Meltdown Update Kernel doesnt boot by paulie_a on Thursday January 11, 2018 @03:12AM (#16122201)
Judging from the numerous decades old bugs recently found, the concept of many eyes needs to die.

And in the case of SMTP, it's basically a pinata of bugs for the last 30 years regardless of platform

Re:Meltdown Update Kernel doesnt boot by sigi45 on Thursday January 11, 2018 @07:00AM (#16123090)
it is still way more likely a reasonable design decision for performance reasons than it is for a backdoor.

Alone the risk would not be worth to intel. Do you really think, nsa has enough money to compensate for this backslash and newscoverage?

Re:Meltdown Update Kernel doesnt boot by Animats on Wednesday January 10, 2018 @09:13PM (#16120967)
Yes, though it's moderately hard to exploit against a specific target. It's more useful for bulk attacks - getting everyone who visits a specific web site to run a DDOS attack, or ransomware.
Re:Meltdown Update Kernel doesnt boot by eli_gottlieb on Wednesday January 10, 2018 @09:06PM (#16120941)
If any quantity about what the processor does, outside the intended effect, has a different distribution when X happens versus Y, then the distribution of that quantity is exploitable. Period.

Any nonuniform distribution in any quantity that is not part of the spec is exploitable!

Re:Meltdown Update Kernel doesnt boot by fpoling on Thursday January 11, 2018 @02:50AM (#16122130)
It is only exploitable if one can measure the difference and extract useful information. Until Spectre guys discovered the double read technique, the expectation was that speculative execution did not allow to extract useful information besides extremely artificial theoretical cases.
Re:Meltdown Update Kernel doesnt boot by galvin on Wednesday January 10, 2018 @07:06PM (#16120302)
Adding a backdoor seems unreasonable but they may have chosen performance over security. Even if this individual bug wasn't intentional they are responsible for setting their priorities.
Re:Meltdown Update Kernel doesnt boot by Filligree on Thursday January 11, 2018 @06:51AM (#16123063)
There are CPUs available which choose security over performance. They aren't made by Intel, but you can buy them, and they're even cheaper.

Oh, you don't want to do that?

Re:Meltdown Update Kernel doesnt boot by alphonsegaston on Wednesday January 10, 2018 @07:23PM (#16120389)
Well, I read somewhere the other day that this form of error/attack was conceived of in the academic literature back in 1992. I won’t believe it’s intentional without evidence in that direction, but this is conceivably the kind of obscure/complex attack you’d expect of a state actor.
Re:Meltdown Update Kernel doesnt boot by throwawayfinal on Wednesday January 10, 2018 @08:09PM (#16120671)
This has been a known issue in xbox 360 hardware since about 2010.

It just keeps popping up, someone finally thought to weaponize it.

Re:Meltdown Update Kernel doesnt boot by oblio on Thursday January 11, 2018 @04:08AM (#16122425)
>It just keeps popping up, someone finally thought to weaponize it.

Someone published its weaponization, you mean :)

Re:Meltdown Update Kernel doesnt boot by PatchMonkey on Thursday January 11, 2018 @02:22AM (#16122043)
Those undocumented features & byte code? HAP mode - something the NSA doesnt want you to know exists, but that they had put into intelME from Skylake onward.

But yet and still we found out. So yes, this security through obscurity approach is terrible (with a code embargo being the obvious exception).

They only update microcode when they have to. When doing otherwise risks... Well, this kind of mess.

You dont wanna know how many times I've rebuilt my gentoo system chasing after retpoline kernel & gcc builds that just... Break everything.

It should be interesting to see how it all develops

Re:Meltdown Update Kernel doesnt boot by gkya on Wednesday January 10, 2018 @06:32PM (#16120139)
Yeah ME is a scary thing also. WRT Linux, well my Xubuntu 16.04 (Xenial) is on 4.10 and no new kernels are available to ma ATM. So if they're going to patch my OS, that's probably going to be a backport to that version, not the latest release integrated to my OS version. I guess that's what caused this bug too, although I admit I only skimmed the conversation linked.
Re:Meltdown Update Kernel doesnt boot by jlgaddis on Wednesday January 10, 2018 @07:25PM (#16120408)
They've put out updates for 4.4 and 4.13 (HWE) for 16.04, if that helps.

See https://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/SpectreAn...

Re:Meltdown Update Kernel doesnt boot by gkya on Thursday January 11, 2018 @07:04AM (#16123118)
I'm guessing that updates for LTS kernel will come later. I don't know if I can update to 4.13.
Re:Meltdown Update Kernel doesnt boot by lscotte on Thursday January 11, 2018 @09:58AM (#16124209)
LTS for xenial is 4.4, and patches have already been released for it.
Re:Meltdown Update Kernel doesnt boot by lscotte on Thursday January 11, 2018 @09:55AM (#16124191)
Note there won't be fixes for 4.10, as it's reached EOL for Ubuntu, so you'll need to move to the 4.13 patched kernel.
Re:Meltdown Update Kernel doesnt boot by drb91 on Wednesday January 10, 2018 @07:05PM (#16120299)
I think that title is currently held (deserved or not) by null pointers.

Tbh it’s not the most meaningful of statements, but it’s food for thought.

Re:Meltdown Update Kernel doesnt boot by cratermoon on Wednesday January 10, 2018 @07:08PM (#16120312)
A null pointer doesn't hold a reference, though.
Re:Meltdown Update Kernel doesnt boot by drb91 on Wednesday January 10, 2018 @07:25PM (#16120412)
It does if you have something at 0x0.

Or, to put it another way, I have no clue to what you're referring--what do references have to do with "The Billion Dollar Mistake"[0]?

[0]: https://en.wikipedia.org/wiki/Tony_Hoare#Apologies_and_retra...

EDIT: my apologies, that joke was actually pretty good.

Re:Meltdown Update Kernel doesnt boot by MBCook on Wednesday January 10, 2018 @08:37PM (#16120819)
I think it was supposed to be a joke.
Re:Meltdown Update Kernel doesnt boot by drb91 on Wednesday January 10, 2018 @09:12PM (#16120964)
Yes, thank you.
Re:Meltdown Update Kernel doesnt boot by andrewflnr on Wednesday January 10, 2018 @08:21PM (#16120747)
I think it was supposed to be a pun on "hold". As for the word "reference", your own link uses it.
Re:Meltdown Update Kernel doesnt boot by drb91 on Wednesday January 10, 2018 @09:11PM (#16120956)
I use it in a later comment! I was confused about the word in context.

However, I completely missed the pun. Cheers :)

Re:Meltdown Update Kernel doesnt boot by cratermoon on Thursday January 11, 2018 @08:36PM (#16129745)
Cheers to you :)
Re:Meltdown Update Kernel doesnt boot by pubby on Wednesday January 10, 2018 @07:37PM (#16120490)
What modern systems even map memory to 0x0? Doing so breaks the C standard, among other things.
Re:Meltdown Update Kernel doesnt boot by steveklabnik on Wednesday January 10, 2018 @09:44PM (#16121084)
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc....

> On system reset, the vector table is fixed at address 0x00000000.

Also, I'm not an expert on the C standard, but in my understanding, it doesn't "break" it. That is:

* Address 0 and the null pointer are distinct

* A 0 literal treated as a pointer is guaranteed to be the null pointer

* The null pointer is not guaranteed to be represented by all zero bits

* If you get a pointer to address zero via pointer math or by other means than a 0 literal, you can still access address zero.

Re:Meltdown Update Kernel doesnt boot by DSMan195276 on Thursday January 11, 2018 @04:13AM (#16122452)
Yeah, the NULL pointer is a pretty weird part of the standard - it makes some sense, but leads to weird situations. That said, I think your last point needs a bit of clarification. What you've described is actually already impossible per the standard - with a few exceptions, it is illegal to use pointer arithmetic to address past the size of an allocated object (Because those pointer values may not even be valid for the architecture), so it is technically impossible to use pointer arithmetic on a valid pointer to end-up with the NULL pointer - it would require calculating an address outside of the current object.

So the question of what happens when you actually do that is purely up to your compiler and architecture. In most cases, if you manage to get the NULL pointer value through pointer arithmetic, it will still compare equal to the 'actual' NULL pointer and treated as if it was a literal 0, so that doesn't allow you to get around NULL pointer checks. The only situation where it really matters if the NULL is only known at runtime, since that may have implications on optimizations. Since dereferencing the NULL pointer being undefined behavior, the compiler can remove such dereferences, but it can't remove the dereference completely if it can't prove the pointer is always NULL. There is nothing preventing the compiler from adding extra NULL checks in that aren't in your code however, which would foil the plan of generating a NULL pointer at runtime to dereference it. So unless your compiler explicitly allows otherwise, you cannot reliably access the memory located at the value of the NULL pointer - as far as the standard is concerned, there is no such thing.

Talking specifically about the ARM vector table, that largely works ok because only the CPU ever has to actually read that structure, normally you C code won't have to touch it (If you even define it in your C code. The example ARM programs define the vector table in assembly instead). If you did ever have a reason to read the first entry of that table from C though, you could potentially run into issues (Though I would consider it unlikely, since the location of the vector table isn't decided until link-time, at which point your code is already compiled).

On that note, it's worth adding that POSIX requires NULL to be represented by all zero bits, which is useful. Lots/most programs actually rely on this behavior, since it is pretty ubiquitous to use `memset` to clear structures, and that only writes zero bits.

(Sorry for the long comment, I've just always found this particular part of the standard to be very interesting)

Re:Meltdown Update Kernel doesnt boot by steveklabnik on Thursday January 11, 2018 @01:18PM (#16126243)
Oh not at all! Thanks for this; I also find it very interesting, and was glad for the correction.
Re:Meltdown Update Kernel doesnt boot by drb91 on Wednesday January 10, 2018 @07:51PM (#16120560)
Again, I am unsure how this relates to "The Billion Dollar Mistake" I linked above and was referring to.

I am not sure your point. The reason modern systems don't map memory to 0x0 is because NULL pointers exist. It is a reflection of a leaky abstraction equating pointers to references. That leaky abstraction has (or so the argument goes) caused >$1B in software bugs.

The other mindset would be "malloc always has to allocate memory or otherwise indicate failure; you cannot cast from a integer to a pointer; you cannot perform arithmetic on a pointer to get a new one; you must demonstrate there are no hanging references when freeing". This is essentially what rust did for safe code.

The reason why I indicate so much skepticism is that rust is the first time I've seen the problem solved well in the same problem space as C. Ada has problems of its own. It's more about how small assumptions can have massive economic (and health, and safety, and ethical) consequences. Certainly comparable to a speculative execution bug leaking memory in an unprotected fashion--in both cases the bugs find their way through human error in evaluating enormously complex systems for incorrect assumptions :)

Re:Meltdown Update Kernel doesnt boot by hornetblack on Wednesday January 10, 2018 @08:38PM (#16120827)
Web assembly.

Llvm won't use it for anything. (I think it starts putting things at 8). Trying to access it explicitly in C will generate `unreachable` instructions.

Re:Meltdown Update Kernel doesnt boot by paulddraper on Wednesday January 10, 2018 @09:15PM (#16120972)
Re:Meltdown Update Kernel doesnt boot by ggm on Wednesday January 10, 2018 @06:17PM (#16120060)
"biggest" by number of affected CPUs? very possibly, yes. the march of time has that effect: there are more cpus potentially and actually affected, worldwide, than at any other time in history.

"biggest" by net financial loss to a single entity? I dunno. How much did that failed NSA launch cost the state again?

Re:Meltdown Update Kernel doesnt boot by semi-extrinsic on Thursday January 11, 2018 @01:00AM (#16121722)
It's unclear whether it failed or if Northrop Grumman want us to think it failed; since the second stage actually did one full orbit with nominal performance, they might be trying to slip one past us. We'll know in a few weeks time I suppose, every satellite tracking enthusiast will be looking for it.
Re:Meltdown Update Kernel doesnt boot by Y_Y on Wednesday January 10, 2018 @06:42PM (#16120186)
> failed NSA launch

I didn't hear about that one

Re:Meltdown Update Kernel doesnt boot by mbroncano on Wednesday January 10, 2018 @07:04PM (#16120296)
Re:Meltdown Update Kernel doesnt boot by ygra on Thursday January 11, 2018 @04:55AM (#16122611)
To which no government agency is officially attached and the failed thing is more a rumor. SpaceX said that on Falcon 9 side everything worked like it should and NG says they cannot comment on classified payloads. So there's literally no information.
Re:Meltdown Update Kernel doesnt boot by eltoozero on Wednesday January 10, 2018 @11:41PM (#16121443)
Re:Meltdown Update Kernel doesnt boot by brokenmachine on Wednesday January 10, 2018 @05:54PM (#16119914)
I watched that spy demo. How does it know what memory location contains the password being typed?
Re:Meltdown Update Kernel doesnt boot by KallDrexx on Wednesday January 10, 2018 @06:03PM (#16119971)
I'm assuming if you know either common byte patterns or string patterns you might be able to figure out where the password string is being allocated and watch that area of memory for changes.
Re:Meltdown Update Kernel doesnt boot by brokenmachine on Wednesday January 10, 2018 @06:43PM (#16120193)
Not sure if Meltdown is the same, but I read that Spectre can recover memory at about 10kb/sec. So it wouldn't be very efficient to scan the entire memory for a known pattern.

I suppose if there was an exploit targeted at a specific program, it would be possible to work out what location the secrets are stored in?

Re:Meltdown Update Kernel doesnt boot by monk_e_boy on Wednesday January 10, 2018 @09:09PM (#16120950)
I leave my machine on for weeks at a time. If something was scanning the memory even if it failed to find the location of my password 99.9% before it is erased eventually it will be lucky and get it.
Re:Meltdown Update Kernel doesnt boot by brokenmachine on Wednesday January 10, 2018 @09:30PM (#16121028)
Good point. I was only thinking about a single run but that makes sense.
Re:Meltdown Update Kernel doesnt boot by Zakharov on Wednesday January 10, 2018 @11:29PM (#16121394)
According to the paper, Meltdown can recover memory at about 500 kb/s
Re:Meltdown Update Kernel doesnt boot by hvidgaard on Thursday January 11, 2018 @02:21AM (#16122032)
It's still "only" 1.7gb/hour. If programs follow reasonable security practices, it shouldn't be possible to stumble upon secrets in the memory. This underlines the importance of things such as ASLR and not holding your key in memory longer than needed and rotating them as well.
Re:Meltdown Update Kernel doesnt boot by AstralStorm on Thursday January 11, 2018 @04:01AM (#16122379)
Once you know the location, if the process is not randomized, you can extract from that location. You may assume some things about implementation (e.g. libstdc++ or libc++, glibc memory allocator, general compiler version)

Additionally some hardening methods like stack protector make stack allocated objects stand out a lot from register values.

Re:Meltdown Update Kernel doesnt boot by fpoling on Thursday January 11, 2018 @02:57AM (#16122156)
Meltdown is fast enough to learn everything about layout of data structures in kernel or other programs and then use it to extract information from particular areas holding the keys.
Re:Meltdown Update Kernel doesnt boot by jnordwick on Wednesday January 10, 2018 @08:40PM (#16120837)
It appears to be known to the exploit. I feel that this is being so overblown and that the exploits we are seeing require more info that something in the wild would have.
Re:Meltdown Update Kernel doesnt boot by monk_e_boy on Wednesday January 10, 2018 @09:07PM (#16120942)
Code in the wild would have access to all memory (slowly) so could eventually find the correct location.

Given that whoever writes is would also have access to the other program, they would have a lot more information on where to look in memory.

Re:Meltdown Update Kernel doesnt boot by topmonk on Thursday January 11, 2018 @12:49AM (#16121682)
I would think it would be. The strange thing is the markets didn't react at all. They actually went up on January 4th.
Re:Meltdown Update Kernel doesnt boot by Santosh83 on Thursday January 11, 2018 @12:59AM (#16121719)
Because this has largely remained theoretical, unlike Maersk or Equifax.
Re:Meltdown Update Kernel doesnt boot by DarronWyke on Thursday January 11, 2018 @09:51AM (#16124159)
What are you talking about? We've seen working POCs since last week. This isn't "largely theoretical", this is an actively exploitable hole.
Re:Meltdown Update Kernel doesnt boot by eric_b on Thursday January 11, 2018 @10:04AM (#16124253)
Meh, it's not really very serious in the average case. It's a lot of sky-is-falling rhetoric from the infosec community. Remember Heartbleed and how it was end-of-times bad? Yeah, turned out to be a non-event. Information disclosure bugs like this are difficult to glean useful information from in widely targeted attacks.

(Obviously if you have nation states or serious criminal organizations trying to breach you regularly, this is more serious)

Re:Meltdown Update Kernel doesnt boot by DarronWyke on Friday January 12, 2018 @10:37AM (#16133643)
You clearly haven't been paying attention or reading about how this works.

Heartbleed was touted as being bad by those that didn't read too far into it. You could scrape memory, sure. But it was always random fragments. This lets you make targeted address attacks. Force a process to use that memory space through a NOOP and now you can start scraping at will. Or you can just do an entire memory dump and pull things out in plaintext (like scraping Firefox passwords, which we've seen done already).

The only reason this isn't worse is it requires the ability to execute code on the machine. It has high (near absolute) impact, but low-to-moderate on the ease of execution.

Re:Meltdown Update Kernel doesnt boot by rsync on Thursday January 11, 2018 @11:15AM (#16125041)
"Would this entire Meltdown/Spectre thing count as the biggest mess-up of computing history?"

This title is held by autorun.inf which has caused over 20 years of broken, vulnerable behavior and, AFAIK, is still going strong.

Re:Meltdown Update Kernel doesnt boot by aaomidi on Wednesday January 10, 2018 @05:31PM (#16119759)
Link to the demo?
Re:Meltdown Update Kernel doesnt boot by elihu on Wednesday January 10, 2018 @05:44PM (#16119854)
Re:Meltdown Update Kernel doesnt boot by bringtheaction on Wednesday January 10, 2018 @06:01PM (#16119957)
YouTube mirror for mobile users anyone?
Re:Meltdown Update Kernel doesnt boot by gregsadetsky on Wednesday January 10, 2018 @06:18PM (#16120063)
Re:Meltdown Update Kernel doesnt boot by katastic on Wednesday January 10, 2018 @10:00PM (#16121136)
I think Y2K had more practical impact across the business world. There was genuine fear that it could cause an actual apocalypse with all major computerized systems failing, medical machines killing people, banks being affected and all money and debts disappearing overnight.

It wasn't that bad, because people took it seriously. But there were still tons of practical systems affected and billions of corporate dollars associated with fixing it.

So when you say "biggest mess up" you gotta define specific qualifiers. Because Meltdown/Specter is going to be solved by simply... buying a new CPU. (And retrofitting the old ones). So it consist of mostly a patch.

A BIG important patch, granted. But it's still just a patch. But some ATM's aren't going to start spewing money like they did on Y2K.

Re:Meltdown Update Kernel doesnt boot by gkya on Thursday January 11, 2018 @01:47PM (#16126554)
I didn't know Y2K was that big of a deal! I guess I'll have to read a bit more about it, as it seems to be an interesting topic. Thanks!
Re:Meltdown Update Kernel doesnt boot by tripzilch on Sunday January 14, 2018 @12:04PM (#16145015)
I can't find any reports on ATM's spewing money after Y2K, or was that a figure of speech?