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

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

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

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.

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

    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/

  2. trashb

    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.

  3. Arubis

    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.

  4. uticus

    > 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

  5. gjvc

    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().

  6. tiffanyh

    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

  7. jsiepkes

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

  8. poly2it

    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.

More from this day

2026-07-08