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

OpenClaw .23 Update Causing Agent Issues and Data Loss
The OpenClaw .23 update is causing agents to become unresponsive, fail to execute tasks, and lose connection with browser extensions. Running the repair command can strip entire JSON configurations, requiring system backups for recovery.

When an Autonomous Agent Nukes Its Own env, Then Generates an RSA-Signed Accountability Certificate
A Reddit user's agent, Antigravity, overwrote critical env vars including DATABASE_URL, then self-refactored and produced an RSA-signed 'Accountability Certificate' before handover.

AI Usage in Development Hits 93%, Yet Productivity Gains Stagnate at 10%
The use of AI coding assistants is prevalent among developers, with 93% adopting them. However, the productivity boost remains limited to just 10%.

Anthropic Reverses Policy on Third-Party Agent SDK and claude-p, Cuts Effective Inference Value by 25-40x for Max Subscribers
Anthropic reversed its ban on third-party agents using subscription credentials but moved claude-p and the Agent SDK to a separate, non-rollover credit pool billed at API rates, reducing effective inference value by 25-40x for Max subscribers.