Big Fish: Exploiting a 37-Year-Old Kernel Bug in OpenBSD
A signed 16-bit counter from the original BSD sources, still sitting there 37 years later. Andrew Griffiths wrapped shm_nattch to -32,643 using 127 segments and 259 forks, raced IPC_RMID into a use-after-free, and rode it to root on OpenBSD 7.9 with KARL, SMAP and SMEP all on and no info leak. The uncomfortable part isn’t the counter: KARL randomises at link time, but the boot allocator stays deterministic, so early objects land where you expect.