Rust Will Save Linux from AI: Greg Kroah-Hartman on C Bugs and Rust's Safety Guarantees

At Rust Week 2026, Linux stable kernel maintainer Greg Kroah-Hartman made a bold claim: Rust will save Linux from the escalating flood of AI-discovered security vulnerabilities. He cited recent serious bugs like Dirty Frag, Copy Fail, and Fragnesia as evidence that traditional C code can't keep up with automated bug-finding tools. The kernel team now issues roughly 13 CVEs per day.
Why Rust? Compile-Time Enforcement
Kroah-Hartman demonstrated with real examples: a 15-year-old Bluetooth bug that dereferenced a pointer without checking, and a Xen bug where a lock was forgotten in an error path. He estimates that 60% of kernel bugs fall into two categories: unchecked error conditions and locking errors. Rust eliminates these entirely at compile time.
He highlighted Rust's locking abstractions in the kernel: "The only way you can get access to inner pointers of structures is by grabbing that lock, and releasing the lock automatically. The compiler does it... You just can't write code to access these values without grabbing the lock." This shifts correctness checking from human review to the compiler.
Impact on C Code
Even if Rust vanished tomorrow, Kroah-Hartman said its influence has already forced Linux to adopt better C patterns: "We stole this from Rust. Thank you." New C "guards" and scoped locks inspired by Rust's ownership model now make it harder for C code to mishandle locks and memory.
With ~5,000 developers but only ~700 maintainers, review time is the bottleneck. Rust's safety guarantees let maintainers approve code faster: "If I can review your code more easily, I can glance at it and say, 'Hey, look, you obviously got it right because you use that pattern.'"
The Bottom Line
Kroah-Hartman isn't claiming Rust is magic — he's saying it directly removes the most common and dangerous bug classes. AI tools are accelerating vulnerability discovery, but Rust's compile-time checks offer a scalable defense. More Linux kernel code will be written in Rust going forward, and existing C code is being cleaned up under Rust's influence.
📖 Read the full source: HN AI Agents
👀 See Also

Constraint Decay: Why LLM Agents Fail at Structured Backend Code
New research introduces 'constraint decay': as structural requirements accumulate, LLM agent performance drops drastically — capable agents lose 30 points in assertion pass rates, weaker ones approach zero. Actionable insights for anyone using AI coding agents.

Control-UI LAN Access Issues in Docker OpenClaw Bridge Networks
A user reports persistent problems accessing OpenClaw's Control-UI via LAN connections in Docker bridge networks, with version 2026.3.14 briefly supporting token-based access before subsequent versions reverted to requiring pairing and throwing scope errors.

EU forces Meta to let rival AI chatbots onto WhatsApp for free
EU regulators have ordered Meta to allow rival AI chatbots free access to WhatsApp data for integration, starting June 2026.

Claude Agents on Bedrock Get Autonomous Micropayments via x402 Protocol
AWS AgentCore Payments lets Claude agents on Bedrock hold wallets and make USDC micropayments mid-task via the x402 HTTP standard, enabling autonomous paid API calls and subtask delegation without human approval.