Home › Intelligence › Brief
VULNERABILITY BRIEF🟠 High Vulnerability

OpenBSD 7.9 Local‑Privilege‑Escalation Chains a 37‑Year‑Old BSD Kernel Bug

Researchers disclosed a two‑step kernel exploit in OpenBSD 7.9 that bypasses address randomization and hardware protections to gain root. Patches are available, highlighting the need for rigorous patch‑management evidence in audit readiness.

LiveThreat™ Intelligence · 📅 November 23, 2026· 📰 securityaffairs.com
🟠
Severity
High
VU
Type
Vulnerability
🎯
Confidence
HIGH
🏢
Affected
2 sector(s)
✅
Actions
3 recommended
📰
Source
securityaffairs.com

OpenBSD 7.9 Local‑Privilege‑Escalation Chains a 37‑Year‑Old BSD Kernel Bug

What It Is

In October 2026 the security research firm Calif released a full exploit and technical write‑up describing a two‑stage local privilege‑escalation (LPE) chain against OpenBSD 7.9. The chain links a 37‑year‑old integer‑overflow bug inherited from the original BSD sources with a newer use‑after‑free (UAF) flaw, allowing an unprivileged local user to obtain root without any information‑disclosure primitive.

The first flaw originates from the shared‑memory attachment counter shm_nattch, which was defined as a signed 16‑bit integer in the 1988 BSD code base. Because the field can hold a maximum of 32 767, an attacker can deliberately overflow it by creating 127 shared‑memory segments and forking 259 processes that each attach to those segments. When the counter wraps to a negative value, the kernel’s accounting logic mis‑interprets the value, triggering a race condition that frees memory still referenced by other processes – a classic use‑after‑free.

The second flaw builds on the corrupted memory state. An out‑of‑bounds write overwrites the multicast membership counters that reside in the same kernel page. When the socket associated with the overwritten counter is closed, the kernel updates its page‑table entries based on the forged counters, effectively granting the attacker supervisor‑level access to user‑space memory. This bypasses both SMAP (Supervisor Mode Access Prevention) and SMEP (Supervisor Mode Execution Prevention) without ever needing to subvert the hardware protections directly.

OpenBSD’s KARL (Kernel Address Randomization Layer) randomizes function and data addresses at boot, but the exploit sidesteps this by targeting deterministic kernel allocations. The boot‑time allocator and the best‑fit allocator do not randomize base addresses, so early allocations—such as the lo0 and enc0 network‑interface ioctl handler structures—appear at the same virtual addresses on every reboot of the same hardware. Calif’s researchers used sysctl‑exposed kernel memory‑allocation metrics to monitor live allocations, aligning IP‑socket allocations and setting a non‑default multicast TTL to force a 16‑byte structure into the exact spot needed for the overwrite.

The exploit does not rely on any prior information‑leak vulnerability; it simply watches the kernel’s deterministic layout, forces the overflow, and then writes the malicious value into the multicast counter. The final step restores the overwritten function pointer, leaving the kernel in a clean state while the attacker now runs with full root privileges.

OpenBSD had already shipped patches for both underlying issues before the public disclosure. Errata 018 (released 14 September 2026) fixed the signed‑16‑bit overflow, and Errata 026 (released 30 September 2026) addressed the associated use‑after‑free. Both patches are distributed via the syspatch utility and cover all supported architectures.

Calif reports no evidence of the chain being used in the wild, and as of the publication date no CVE identifiers have been assigned to either flaw. Nonetheless, the public exploit demonstrates that legacy code paths can remain exploitable for decades, especially when deterministic kernel allocation strategies are present.

The researchers also offered four hardening recommendations that could have prevented or at least mitigated the attack:

  • Safe‑unlink checks for kernel linked‑list operations, a technique already employed by FreeBSD and NetBSD but absent from OpenBSD.
  • Randomizing the page‑table self‑referential mapping at boot, which would break the attacker’s ability to predict the target address for the decrement operation.
  • Randomizing the kernel allocator’s base address at boot, a change the authors claim would have negligible performance impact.
  • Enabling array‑bounds checks in release builds, which would have caught the out‑of‑bounds write and potentially revealed dozens of similar issues across the BSD family.

The disclosure underscores the importance of rapid patch adoption and of reviewing deterministic allocation behaviours in hardened operating systems.

Why It Matters for Compliance & Audit Readiness

Unpatched kernel flaws that enable root compromise violate the “Protect” function of NIST CSF and can invalidate continuous‑monitoring evidence of a hardened OS baseline.

Recommended Actions

  • Verify that all OpenBSD 7.9 hosts have applied Errata 018 and Errata 026 via syspatch; document the patch state in your configuration‑management system.
  • Incorporate kernel‑allocation randomness checks into your hardening baseline (e.g., confirm that KARL randomization is active and that any deterministic allocator settings are documented).
  • Update your audit logs to capture syspatch execution and kernel version data, creating immutable evidence for control‑assurance reviews.

Source: SecurityAffairs – Big Fish: OpenBSD Root Exploit Chains a 37‑Year‑Old BSD Bug With a Kernel Flaw

📰 Original Source
https://securityaffairs.com/201285/hacking/big-fish-openbsd-root-exploit-chains-a-37-year-old-bsd-bug-with-a-kernel-flaw.html ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Trust Operations

Every gap like this maps to a control you can evidence.

The Verisq AI Trust Operations platform maps incidents to your control framework and collects the evidence continuously — so your Trust Center shows proof, not promises, when a buyer or auditor asks.

Explore the Verisq AI Trust Operations platform →