October 17, 2026
- OpenBSD local privilege escalation to root, with full exploit code, lands on a
shm_nattchattach counter defined as a signed 16-bit short in the original BSD sources. The path: map 127 SysV shared-memory segments,munmap()them, fork 259 processes to wrap the counter to −32,643, groom the heap usingsysctl(KERN_MALLOCSTATS), win anIPC_RMIDrace for a use-after-free, then use a conditional −1 out-of-bounds write against a 16-bytestruct ip_moptionsto flip the PTE self-referential mapping from user to supervisor and execute kernel code (Calif, The Hacker News). Fixed in errata 026 and 018; phendrenad2 notes the same bug appears to have been fixed by accident in NetBSD during a 1999 rewrite (discussion). · Exploits & Offensive Research
in Thirty-Seven Years of a Signed Short, and a Root Shell on OpenBSD