# OpenBSD Critical Flaw Allows Local Root Privilege Escalation via Use-After-Free

Original title: OpenBSD has a use-after-free allowing local privilege escalation to root

> Hacker News story 48831658 · language: en · submitted 2026-07-08
> Web version: https://zeli.app/story/48831658
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 70 · by [linggen](<https://news.ycombinator.com/user?id=linggen>) · 💬 17
[original](<https://nvd.nist.gov/vuln/detail/cve-2026-57589>) · [HN discussion](<https://news.ycombinator.com/item?id=48831658>)

## Summary

A severe use-after-free vulnerability in OpenBSD versions through 7.9 enables local attackers to escalate privileges to root. This flaw occurs in the sys_semget function during a context switch after tsleep. With a CVSS score of 7.4, this high-severity issue requires immediate attention from system administrators to patch their systems and prevent unauthorized access.

## Key quote

> sys/kern/sysv_sem.c in OpenBSD through 7.9 has a use-after-free allowing local privilege escalation to root.

## HN discussion (17 comments)

### [Tiberium](<https://news.ycombinator.com/item?id=48832826>)

> Seems to be found as a part of Patch The Planet [0] which is basically OpenAI giving model access and Trail of Bits using them to find vulnerabilities in OSS projects.
>
> [0] https://openai.com/index/patch-the-planet/

### [trashb](<https://news.ycombinator.com/item?id=48834138>)

> One bug found is a testament to the great diligence and culture around security of OpenBSD. Especially if you take into account the amount of resources they have been able to achieve this with.

### [Arubis](<https://news.ycombinator.com/item?id=48832942>)

> OpenBSD's security stance being the stuff of legend, I'm curious how many vulns have been found over the last couple months while the big model companies are flaunting their ability to find exploits. It'd be super cool to see it remain tiny.

### [uticus](<https://news.ycombinator.com/item?id=48832877>)

> \> Only two remote holes in the default install, in a heck of a long time!
>
> https://www.openbsd.org/
>
> https://en.wikipedia.org/wiki/OpenBSD#Security_record

### [gjvc](<https://news.ycombinator.com/item?id=48832778>)

> from the link:
>
> sys/kern/sysv_sem.c in OpenBSD through 7.9 has a use-after-free allowing local privilege escalation to root. This is a context switch use-after-free after tsleep in sys_semget().

### [tiffanyh](<https://news.ycombinator.com/item?id=48833315>)

> Can anyone find the mailing list thread on this topic (or does it not exist because @security are private mailing list)?
>
> I did find another use-after-free bug from a couple months ago on the mailing list:
>
> https://marc.info/?t=177581065500002&r=1&w=2

### [jsiepkes](<https://news.ycombinator.com/item?id=48832951>)

> If this is a local privilege escalation to root, why can't I find anything on https://www.openbsd.org/security.html ?

### [poly2it](<https://news.ycombinator.com/item?id=48833029>)

> Would Rust have made this issue impossible by construction? I know Linus has spoken about Rust's promises about memory safety not being equivalently applicable in the kernel domain, so I would be curious to hear any kernel developer's perspectives.

---

## Cite

- Page: https://zeli.app/story/48831658
- Date: 2026-07-08
- Source: nvd.nist.gov (https://nvd.nist.gov/vuln/detail/cve-2026-57589)
- Hacker News: https://news.ycombinator.com/item?id=48831658

## Other languages

- zh: https://zeli.app/zh/story/48831658 · markdown: https://zeli.app/zh/story/48831658.md
- ja: https://zeli.app/ja/story/48831658 · markdown: https://zeli.app/ja/story/48831658.md
- ko: https://zeli.app/ko/story/48831658 · markdown: https://zeli.app/ko/story/48831658.md
- de: https://zeli.app/de/story/48831658 · markdown: https://zeli.app/de/story/48831658.md
- es: https://zeli.app/es/story/48831658 · markdown: https://zeli.app/es/story/48831658.md
