Calif Researchers Exploit 37-Year-Old OpenBSD Kernel Bug to Gain Root

Big Fish: Exploiting a 37-Year-Old Kernel Bug in OpenBSD

Calif researchers exploited a 37-year-old signed 16-bit shared memory counter overflow in OpenBSD, chaining it with an out-of-bounds write to achieve local root despite KARL, SMAP, and SMEP. They detail the exploit path and propose mitigations like safe-unlinking, PTE map randomization, and kernel allocator randomization.

Taking a step back, this vulnerability ended up getting code execution via a `write what where` primitive, where the `write` was caused by a `TAILQ_REMOVE`, the `what` was our userland memory mapping that was made supervisor mode accessible to bypass `SMAP`/`SMEP`, and the `where` was a predictable kernel pointer location.
  1. ewy1

    the ai-generated graphic before any content is presented is kind of a turnoff

  2. bch

    Props for the OpenBSD Release -style graphics. Looking forward to the theme song.

  3. phendrenad2

    Interestingly, looks like this was accidentally fixed in NetBSD during a rewrite of that code in August of 1999.

  4. ozereray1

    It’s remarkable that a bug survived 37 years in one of the most heavily audited codebases, which shows how hard some kernel bugs are to catch by review alone. Do you think fuzzing or static analysis could realistically have found this class of bug, or did it need a human thinking about the exploit primitive?

  5. shevy-java

    Poor OpenBSD guys. Now they have to acknowledge THREE exploits

    (in total) on their homepage.

More from this day

2026-10-16