Join Nostr
2026-10-16 21:25:38 UTC

LisPi on Nostr: Behold chat, the perils of using a language (C) where crashing on integer overflow is ...

Behold chat, the perils of using a language (C) where crashing on integer overflow is a flag, rather than core semantics.

https://calif.io/research/big-fish

> Earlier this year, we reported some vulnerabilities, often along with suggested patches to OpenBSD. One traced back roughly 37 years to the original BSD sources, where a shared memory attachment counter was defined as a signed 16-bit short. Repeatedly forking a process with shared memory attachment records could push that counter past its maximum value of 32,767, causing it to wrap to a negative value. This integer overflow could lead to a use-after-free via a race condition; combined with a separate out-of-bounds write in the kernel, it allowed local privilege escalation to root. The issues were addressed in errata 026 and 018, respectively.