by pron · 1w ago · 0 comments
I don't know if people here understand how these things need to be done in the most important and critical open source projects, such as Linux or OpenJDK, but there are two things you must not do when an issue is suspected to be a risk until you've researched the matter and decided on a backport and release strategy: You shouldn't communicate publicly, and you absolutely shouldn't merge a patch.
I (still) agree, but I don't think these rules will be valid for much longer, though.
With new models capable of finding vulnerabilities faster than ever before, if you (or your AI) was able to find a critical bug, it's only a matter of time that the bad guys will also discover it - if they haven't already.
Human skill and ingenuity used to be the limiting factor, so it was the universal equalizer. Now the game depends on how many tokens you want to throw at the problem, and there are many bad actors with incentives to outspend every white hacker out there.
Responsible disclosure will still be important, of course, but timelines will need to be compressed into days, instead of months.
If I spent N tokens to find a specific funky bug, you should expect others to have done the same. In a way, in this modern age the full-disclosure guys had it right all along. Reality caught up with a three decade lag.
It's expected that the ability to run models follows a power law distribution: very few actors are able to run the most expensive models on many codebases/binaries, spending lots of tokens on each project.
Disclosing a serious vulnerability potentially exposes it to orders of magnitude more people.
Shit like this is what forces people to just _merge_ fixes, why shouldn't they?
So until you know how dangerous the bug is and have a plan for release (does it go in the next quarterly patch, which users are ready for, or are you making a special release?) you shouldn't do anything public because you don't yet know what to advise your users to do.
Full disclosure might cause short term panic, but it does get things fixed quickly.
Exploit shops can start months later to evaluating exploitability.
Timeline was:
- Jun 8: reported crashes
- Sep 9: (two months!) it was know base64 asm code is bad and patch was posted
No idea why anyone need to wait for anyone and especially on any corporation to apply the available patch !
So, it's 2 months later and Oracle is siting on their hands.
Then month and two weeks later Calif rediscovered crashes but this time person(s) involved have funny past time hobby: hacking :)
5 days later Oracle looks clueless, requesting info...
Two more weeks later Oracle have The Patch ! And recommends everyone to do nothing !
14-17 Nov: governments are informed :))) Thank you Calif for remembered about them ;) Somebody needs to tel governments they have problems...
17 Nov: Oracle gives fixes to the world...
Now governments are allowed and can start patching their infra...
Is any of this sane ???
It's almost half a year of exploitable Java on government and enterprises servers and fix was ready by half of that time.
Just nobody was allowed to compile open sources by themselves.
And all of this is optimistic version, thanks to code being available...
> No idea why anyone need to wait for anyone and especially on any corporation to apply the available patch !
Because as soon as it was suspected to be a security risk we could not apply it. This is how security is done in critical products.
When you say "accept the PR", understand that we're not talking about applying it to mainline, but backporting it to all affected and supported versions. That is something that immediately draws attention. Then, a vulnerability is closed not when it reaches the codebase, but when it's deployed by the users to production, and users have the means to apply the regular quarterly updates, but not necessarily emergency ones (because there can always be other emergencies that occupy them). So what you need to do is investigate the risk and then decide whether to issue an emergency update or wait for the regular quarterly release.
The JDK is critical infrastructure, we simply cannot take cavalier, irresponsible actions of the kind you suggest; I would say insane, but I realise you're just unfamiliar with critical software security (I know you have good intentions and think it's fast, but we've been doing this for thirty years and know it's anything but). Think what would happen if every critical product would issue an emergency release with the maximal urgency advisory whenever any bug is thought to might be a vulnerability of an unknown severity.
Sorry, but we must take security matters extremely seriously, and handle them the right way (which is also the fastest way).
> What about when you just want to get rid of crash ? Just merge, everybody recompile, end of the story.
Which action solves bug better ?
Because your industrial and official protocol is deeply flawed, change it.
But must agree that requiring users of open source code compiling it yourself is a bit a wish on my part :)
Still governments and corporations should simply pay a lot more attention to software they use.
Let's repeat: procedure that extends critical bug from 2 months into half a year should be changed.
No, it isn't. This is how security is (and has to be) done in critical products.
If something isn't a vulnerability then 1. we might not need to backport at all or not to many versions (although crashes usually are backported), and 2. we definitely not issue an emergency update. The fix goes into either the next major release (twice a year) or the next regular update (every quarter).
So there may be a few months between the time something is merged and the time it reaches users. But if it's a vulnerability you may want to do an emergency release, depending on the severity. If you don't know it's a vulnerability (let alone its severity) you really don't want the code sitting out there until you figure out.
> Let's repeat: procedure that extends critical bug from 2 months into half a year should be changed.
What happened on 16 June was a report of a crash in the GC. There was no reproducer, the cause wasn't known, and there wasn't a special reason to believe it had anything to do with a compiler intrinsic, let alone a serious vulnerability (a potential attacker also couldn't do something with that report, as the crash happened nowhere near the cause).
From the time the cause was discovered in September (which started the investigation into a vulnerability) to the time an emergency patch was released, it was a little over two months, and less than one month from the time Calif shared an exploit (which may have helped the decision to make an emergency release; don't know, I'm not on the security team).