Bar Chart Trolls Rust: More Kernel CVEs Per Million Lines Than C
Description
A matplotlib-style bar chart titled 'Linux Kernel CVEs Per Million Lines of Code' comparing two bars: Rust (orange bar, Rust gear logo watermark) at 8.33, and C (gray bar, hexagonal C logo watermark) at 5.53, on a y-axis from 0 to 10. The chart appears designed to provoke the Rust-vs-C memory-safety debate by showing Rust with a higher CVE density in the Linux kernel than C. The statistical bait is the denominator: the kernel contains tens of millions of lines of mature, battle-hardened C versus a tiny, brand-new Rust footprint, so even a handful of Rust CVEs yields a huge per-million-LOC rate - a textbook small-sample / base-rate fallacy weaponized for language-war engagement
Comments
18Comment deleted
With ~30 million lines of C and a rounding error of Rust in the kernel, this chart proves only one vulnerability: dividing by a small denominator
The safest component in this chart is the missing confidence interval.
Blazing fast CVE accumulation 🚀🚀🚀 Comment deleted
source? Comment deleted
"I made it up" wait for it Comment deleted
Open source, of course! 📱🤓 Comment deleted
I'm pretty sure there's all of exactly one rust CVE, and it's just DOS. Comment deleted
Sound fair, so there are about 120,000 loc of rust in kernel src tree (probably less then 1% of c) Comment deleted
Looks like as of this time last year it was about 20k lines of Rust. Google's AI summary claims 25k, but doesn't cite any sources. Comment deleted
And yeah, the kernel treats all crashes as DOS CVEs, so it's not even like the one Rust CVE is actually a problem. Not a real security risk. Comment deleted
Probably 1 line of Rust carries more actual logic than 1 line of C Comment deleted
You can put way more unwraps on single line of rust code Comment deleted
that is because the real work is abstracted or people like you cry :( Comment deleted
1 of 2 is 50%..... 5 of 100 is 5% Comment deleted
Hahahahahahshshaaaaaa Comment deleted
gotta apply that wd-40 Comment deleted
Linux had 3k CVEs just in 2025, so unless it has 1B lines of C code, this is wrong Comment deleted
It's almost like rust is a tiny portion of the codebase or something Comment deleted