News for hackers. Stuff that matters.
Re:OpenBSD has a use-after-free allowing local privilege esc... by bitwize on Wednesday July 08, 2026 @11:19AM (#48833119)
"'Nothing could have prevented this from happening,' say users of only language where this happens" comes to bite OpenBSD.
Re:OpenBSD has a use-after-free allowing local privilege esc... by amiga386 on Wednesday July 08, 2026 @11:48AM (#48833485)
OpenBSD wouldn't say anything like that. They're well aware of the 40+ year old codebase's limitations, but accept it because they're not so stupid as to "rewrite it in <other language>" which will bring a million bugs.

They've innovated again and again in the security space and aggressively bring in new security features like pf, OpenSSH, W^X enforcement, pledge(), arc4random(), ASLR, so many other things.

Unlike, say, NPM, which can't even replicate existing packaging systems like yum or apt, and has been plagued with security flaws despite being built entirely out of a memory-safe language. Quite an achievement.

Re:OpenBSD has a use-after-free allowing local privilege esc... by JCattheATM on Wednesday July 08, 2026 @02:06PM (#48835182)
> aggressively bring in new security features like pf, OpenSSH, W^X enforcement, pledge(), arc4random(), ASLR, so many other things.

I'd say OpenSSH is a great tool, arc4random was great and pledge is interesting although doesn't do much for code that wasn't compiled with it (and they are still really lacking in ways to lock down apps for a 'security focused' OS), the rest is just their implementation of stuff that already existed not something they innovated.

Most of their reputation comes from a time when linux distros and windows had every service enabled and exposed by default, it just developed it's own momentum the way many myths do.

Re:OpenBSD has a use-after-free allowing local privilege esc... by efficax on Wednesday July 08, 2026 @12:02PM (#48833660)
It's difficult to say if a kernel written in rust would not have similar vulnerabilites, because it would be impossible to build a kernel without significant amounts of `unsafe`.
Re:OpenBSD has a use-after-free allowing local privilege esc... by anoneng on Thursday July 09, 2026 @04:15AM (#48842552)
Oh it’s possible and people do it in embedded all the time at great expense, but that safety isn’t assured by using a “safe” language, it comes from the requirements, documentation and verification process. OpenBSD’s kernel was developed with security in mind but not that level of safety.
Re:OpenBSD has a use-after-free allowing local privilege esc... by efficax on Thursday July 09, 2026 @10:06AM (#48846112)
Not really sure what you mean? You have to use `unsafe` in Rust to access arbitrary mutable pointers. How would you do DMA, or write a device driver, without `* mut T`
Re:OpenBSD has a use-after-free allowing local privilege esc... by anoneng on Friday July 10, 2026 @12:22AM (#48855712)
I’m referring to use of process (sometimes with a partial assist from qualified tools, of which Rust is NOT one) for safety assurance, not the language. As is done in safety and security critical embedded contexts. eg DO-178, Common Criteria, etc.
Re:OpenBSD has a use-after-free allowing local privilege esc... by anoneng on Wednesday July 08, 2026 @11:37AM (#48833379)
Tell us you know nothing about kernel programming and trust stacks while you are at it.
Re:OpenBSD has a use-after-free allowing local privilege esc... by convolvatron on Wednesday July 08, 2026 @12:01PM (#48833655)
I know a lot about kernel programming. and the last thing as I would ever suggest as being core to kernel programming is that is a specialized discipline that uses different rules and shouldn't be accessible to neophytes. its just code. sometimes the restrictions are unfamiliar, but there is nothing magic going on here.
Re:OpenBSD has a use-after-free allowing local privilege esc... by anoneng on Thursday July 09, 2026 @04:16AM (#48842559)
If you knew a lot you would stop digging.
Re:OpenBSD has a use-after-free allowing local privilege esc... by applfanboysbgon on Wednesday July 08, 2026 @11:32AM (#48833297)
The OpenBSD project was started in 1995, with ancestry going back further than that. Should they have first invented Rust? Or at what point do you suppose the decades-old codebase should have been completely rewritten?
Re:OpenBSD has a use-after-free allowing local privilege esc... by JCattheATM on Wednesday July 08, 2026 @12:03PM (#48833672)
It's not too late to start now, similar to how Linux did a few years back.
Re:OpenBSD has a use-after-free allowing local privilege esc... by tosti on Wednesday July 08, 2026 @12:25PM (#48833963)
Rumours of Linux being rewritten in Rust are greatly exaggerated.
Re:OpenBSD has a use-after-free allowing local privilege esc... by JCattheATM on Wednesday July 08, 2026 @01:57PM (#48835075)
No one is claiming that, they are at least setting a foundation for that to be possible though.