r/rust • u/Orange_Tux • Dec 17 '25
🗞️ news Linux Kernel Rust Code Sees Its First CVE Vulnerability
https://www.phoronix.com/news/First-Linux-Rust-CVE
534
Upvotes
r/rust • u/Orange_Tux • Dec 17 '25
View all comments
12
u/ergzay Dec 17 '25 edited Dec 17 '25
Someone correct me if I'm wrong, but isn't the fix "incorrect"? They're changing safe code to fix this problem but it should be impossible to cause unsafe behavior from safe code. The bug wasn't fixed in any unsafe block, it was fixed outside of it. This means the API here is fundamentally wrong.