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

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

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

▲ 191 · by [rs_rs_rs_rs_rs](<https://news.ycombinator.com/user?id=rs_rs_rs_rs_rs>) · 💬 65
[original](<https://calif.io/research/big-fish>) · [HN discussion](<https://news.ycombinator.com/item?id=50118977>)

## Summary

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.

## Key quote

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

## HN discussion (65 comments)

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

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

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

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

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

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

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

> 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?

### [shevy-java](<https://news.ycombinator.com/item?id=50121021>)

> Poor OpenBSD guys. Now they have to acknowledge THREE exploits
>
> (in total) on their homepage.

---

## Cite

- Page: https://zeli.app/story/50118977
- Date: 2026-10-16
- Source: calif.io (https://calif.io/research/big-fish)
- Hacker News: https://news.ycombinator.com/item?id=50118977

## Other languages

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