• Sources: primary, discussion
  • Summary: The shm_nattch attach counter, a signed short since early BSD, can wrap past 32,767 by forking processes, which leads to a use-after-free through a race. Combined with a separate out-of-bounds write, Calif got local root with KARL, SMAP and SMEP enabled and no info leak. OpenBSD fixed the bugs in errata 026 and 018, and Calif proposes safe unlinking, a randomized PTE self-map and allocator randomization as mitigations.
  • Why it matters: OpenBSD hosts need errata 026 and 018 applied, and the post shows how deterministic kernel allocators defeat KARL.