r/programming • • Aug 29 '24

One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"

https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
1.2k Upvotes

795 comments sorted by

View all comments

Show parent comments

138

u/quaternaut Aug 29 '24

A bit off-topic, but why do you say that the Linux kernel project doesn't take security particularly seriously? Were there security incidents that could have been prevented had the kernel devs been more vigilant or security-minded?

66

u/meltbox Aug 29 '24

Yeah I don’t follow that comment at all.

19

u/neoKushan Aug 29 '24

So many companies use and rely on the linux kernel, it gets audited to hell and back. It's difficult to imagine anyone thinking it's not security focussed.

1

u/ub3rh4x0rz Aug 30 '24

It's this cargo cult around rust's inherent benefits over C completely unchecked by any sort of consideration or knowledge of how projects like Linux approach C development that makes me sympathetic to the gray beard Linux kernel dev's hostility to the rust experiment. They're dealing with the open source equivalent of some pointy hair boss unqualified CTO coming in off the street and asking why these idiots didn't use the hot new thing when the project picked up steam, decades before the hot new thing existed. The tribal knowledge and evolution embodied in the Linux project is not something to be dismissed because of conjecture that this safer toolset doesn't have negatives that would have precluded the level of success that Linux attained, and even if it doesn't, we don't have a time machine to magically have a feature complete and equally mature codebase tomorrow, next week, next month, next year, or next decade.

3

u/JoeyJoeJoeTheIII Aug 30 '24

Torvalds has long held that security bugs are just bugs.

5

u/MaleficentFig7578 Aug 30 '24

He's right, why are you booing him?

68

u/Plasma_000 Aug 29 '24 edited Aug 29 '24

Not OP but:

Linux (Linus specifically) has long had a policy of "security vulnerabilities are just bugs" - which while true, puts aside that security vulnerabilities often have extra impact to users, and so instead they are treated and prioritised without any special attention.

Furthermore, recently the Linux org became able to publish and reserve CVE numbers - this is a system which is designed to inform people which vulnerabilities they have patched by giving each a number. What Linux instead proceeds to do is give nearly every commit to the kernel its own CVE irrespective of whether any actual vulnerability is present, which is poisoning the well and throwing off normal statistics and decision making.

Additionally, Linux has a history of pushback at any security mitigations or hardenings, especially ones that would have even a negligible performance impact. Today this is a little more relaxed but still very much exists.

16

u/schlenk Aug 29 '24

CVEs are just numbers, so people talk about the same issues instead of every vendor invents its own numbers.

The security "industry" came up with the grand idea to consider any CVE in a component important and spamming people with HIGH, CRITICAL security alerts all over the place, when all you have is an issue in a commandline tool that is explicitly just used in some test and totally irrelevant for 99.999999% of all users of that library. Might leave a few users if you happen to develop Android, okay. Thank you for wasting everyone elses time.

Like, imagine to have a public bug tracker. Now some clueless horde of attention seekers starts to file all kinds of hillarious bugs there. And can set the "severity" externally. And then the same crowd tries to convince you to totally absolutely treat their specific issues with super high priority, because its seehhhcuuuurityyyy, and obvious HIGH, because they said so. And if you don't react, they go to some social media, press or whatever and present their scandals and critical problems. Thats the current CVE system. 95% noise.

9

u/[deleted] Aug 29 '24

Hmm, regarding the CVEs, are there any particular examples of an irrelevant CVE?

I haven’t looked deeply into it but it has always seemed to me that they publish proactive CVEs when they patch a security class bug.

Should they use a higher CVSS as threshold or are there a lot of egregious CVEs I’ve just not seen (since I haven’t actively been looking).

21

u/Plasma_000 Aug 29 '24 edited Aug 29 '24

So far this year Linux has published nearly 3000 CVEs, nearly none of them are actual vulnerabilities.

Instead of any effort to publish security vulnerabilities, org is actively undermining the system by publishing practically any bug fix as a CVE.

Linus is quoted saying "Bugs will happen, and anything can be a security bug […]"

Edit: reading this article gives a much more charitable perspective and changed my mind a bit https://lwn.net/Articles/978711/ but imo the process is still very flawed.

13

u/iiiinthecomputer Aug 29 '24

There's a whole other side to the story though, with abuse of the CVE system by "vulnerability" and "security" scanner companies to drive sales, and by a whole Compliance™ industry around it. Combined with some security researchers being much more interested in CV-padding than finding genuine issues, we've landed up in a situation where the CVE database is full of noise, seeverities are inflated, and it can be actively unhelpful.

The Linux maintainers are reacting to the resulting high churn environment full of meaningless noise and demands for rushed urgent fixes for non-vulnerabilities some code scanner flagged, before some company who sure isn't paying the maintainer for the work exceeds some arbitrary remediation deadline set by their tech-ignorant corporate compliance team, baked into external contracts, or even into industry regulations or law.

As usual - capitalism ruins everything.

5

u/[deleted] Aug 29 '24 edited Aug 29 '24

Ah I see, I’ve probably only paid attention to the “relevant” ones so to speak, that definitely sounds like a blatant misuse of the system.

Edit: Cool addition with the link, thanks!

16

u/[deleted] Aug 29 '24

What Linux instead proceeds to do is give nearly every commit to the kernel its own CVE irrespective of whether any actual vulnerability is present, which is poisoning the well and throwing off normal statistics and decision making.

Jesus Christ this has to be one of the most idiotic movements I've ever seen.

Security vulnerabilities are bugs

OK. I can stand living with that idea if someone wants to see it that way even though it doesn't work like that in reality.

But then using a system that's exclusively for security, to register all bugs...that's just being idiot.

43

u/Booty_Bumping Aug 29 '24 edited Aug 30 '24

It's not idiotic when you consider that environmental CVSS scores are now a thing. It was always a bad idea to create automations that read from the CVE system that don't do any filtering whatsoever, and the Linux kernel is just adapting to this reality. The kernel team essentially DoSing the CVE system with noise is a blessing in disguise, and is actively improving the situation by weeding out automation tools that were already prone to information overload. The CVE system was never intended as a list of all severe problems to pay attention to, it is just a way to make sure a non-overlapping number is assigned to each security issues so that they can be discussed without confusion.

2

u/Plasma_000 Aug 30 '24

Or... hear me out... they could not interfere with the flawed but still functional systems we already have, and instead actually discuss and try to fix the flaws, rather than a silent protest outside their field of expertise which affects countless people just trying to do their jobs.

→ More replies (1)

19

u/iiiinthecomputer Aug 29 '24

There's more to it than it sounds like.

A bunch of companies have created automation around CVEs to scan code and infrastructure. Which was be handy and a good idea until a whole industry grew around blindly and slavishly following the scanner results, using them to "prove" your product or service is "secure", etc. Now it's routine to have to do an urgent upgrade of some library you use becuse an unrelated feature you don't use is vulnerable to a theoretical exploit by a local user even though you only use the library in container images anyway.

This industry has been successful at lobbying to get use of their products encoded into industry compliance standards like PCI/DSS, into government procurement, and in some places even into law. All nuance has gone with it, and it's now common to just blindly follow the scanner.

I've had to fork upstream projects or libraries and back port fixes myself in cases where a direct upgrade wasn't feasible in the time allowed. For something completely irrelevant, where a sane process should only have required an inspection and sign-off that the component is unaffected by the issue with a suitably justification.

Then there's the issue that a significant number or security researchers are CV-padding using CVEs; they will try to find any way they can to get high severity CVEs to their name. Its actual risk or significance isn't a concern. This has led to a huge spike in nonsense higher severity CVEs, which drowns the real ones in noise.

This wears out maintainers, who are then deluged by these minor code linter complaints dressed up as security issues, and by bugs raised by companies using these scanners about the need to upgrade some "vulnerable" component. Urgently of course, but without a patch or PR.

It's also creating a high code churn environment that makes it WAY too easy to sneak in malicious changes because nobody has time to even look properly over "PR: bump libfoobar to v1.9.79999 for CVE-ABCD-12342234".

→ More replies (2)
→ More replies (1)

22

u/sisyphus Aug 29 '24

Linus famously said 'security problems are just bugs'; it's been an article of faith among security people for ever and in the present that if you have a local shell on a Linux box you've got root; grsecurity and pax have never gotten upstreamed (though spender ain't exactly the easiest person to work with; neither are Linus and Co.). You can see what a security focus looks like in a project like OpenBSD; Linux for better or worse leaves a lot of this up to third parties.

20

u/astrange Aug 29 '24

 Linus famously said 'security problems are just bugs'

That's a good approach if you want to keep developers on your open source project, since you need to defend their egos (and they already have Linus yelling at them.) Security offense researchers are unique among bug reporters because they're extremely annoying and self-important and when they find a bug in your code they go around giving conference talks about it, giving themselves prizes, making up logos for it, getting bounty programs to give them a million dollars etc. 

Nobody's doing that for the guy who put the bug in even if you needed the feature he wrote!

8

u/astrange Aug 29 '24 edited Aug 29 '24

OpenBSD is not really very good at security because they don't actually engage with vulnerability research. They maintain some projects in the security category, but their OS mitigations aren't good and aren't based on realistic priorities. They basically just make up defenses for imaginary attacks and put them in there.

https://isopenbsdsecu.re/quotes/

 iOS and Android have the most effort put into them since they have the most real-world attacks. It helps that ARMv8 is the only hardware ISA with useful security features regularly being added.

1

u/MaleficentFig7578 Aug 30 '24

yet it has far fewer than linux. Could it be that KISS is the answer to all security problems past and future?

→ More replies (1)

14

u/UncleMeat11 Aug 29 '24

The kernel is filled with CVEs.

But what's worse, the kernel has had vuln regressions because they didn't introduce tests alongside fixes.

The linux kernel is an incredibly complicated piece of software, but it is probably also the most important piece of software on the planet when it comes to the world's security posture. The kernel developers aren't totally blase about security, but they definitely aren't taking an approach that prioritizes security whenever possible.

I know a number of people who have spent careers trying to find ways to change the culture within the kernel community and ultimately failed.

1

u/[deleted] Aug 30 '24

OpenBSD for the win!

Let's rewrite that in Rust. :)

→ More replies (8)

7

u/Coffee_Ops Aug 29 '24 edited Aug 29 '24

Watching the story arc of the spectre / meltdown etc fixes certainly gave me that impression. I recall intel giving guidance to MS and the Linux devs on how to fix it; Microsoft took their approach but Linus rejected it as a crap idea due to the performance implications.

Sometime around 2022-2023 a new variant came around which Windows was immune to, having baked Intel's suggestions in years prior, while new releases (Ubuntu 23.04?) were hit. This resulted in the linux kernel having to implement those fixes after all, performance regressions and all.

I also recall that a lot of the anti-exploit features that Windows has been implementing for years now were historically available with grsecurity but generally rejected as not necessary.

Beyond that (not all of these are kernel but go to the general anti-security vibe)

  • sudo /setuid is a security dumpster fire

  • Things like SELinux user constraint that might help are generally not used

  • Secureboot has been a dumpster fire for years as well, which is only recently starting to get fixed with UKIs

→ More replies (6)