←back to thread

239 points r4um | 1 comments | | HN request time: 0s | source
Show context
N_Lens ◴[] No.45116266[source]
Would a more memory safe language like Rust in the Linux kernel have more safety against these types of exploits?
replies(4): >>45116350 #>>45116464 #>>45120071 #>>45127563 #
1. vlovich123 ◴[] No.45116464[source]
Hard to say. It is a write after free which rust technically prevents, but it depends on the abstractions chosen; it’s entirely likely there will be similar attacks that focus on exploiting flaws in the unsafe that will exist to trigger similar flaws. It should just be harder to exploit and easier to enforce that most of the kernel code is using “safe” abstractions.