Skip to content
LatestPillow CVE-2026-112897 leaks heap memory via crafted TIFF images
Vulnerabilities

OpenBSD Kernel Flaw Chain Grants Root Access via Integer Overflow

Researchers demonstrated how chaining two kernel defects allows local users to seize root privileges on OpenBSD systems.

Illustration: A sleek black desktop tower sits on a wooden desk with its side panel removed, exposing the motherboard.
AI-generated illustration: RedTeam Log

Key points

  • A proof-of-concept exploit chains an integer overflow and a use-after-free to gain root access.
  • The primary flaw involves a 16-bit counter in shared memory handling, dating back decades.
  • OpenBSD released fixes before the exploit code was published on 16 October 2026.

Local attackers can now seize full root control of OpenBSD machines by exploiting two chained kernel defects. Security researchers at Calif demonstrated this technique using a proof-of-concept exploit. The vulnerability allows a standard user to escalate privileges without needing remote access or prior authentication.

In plain English

The core issue stems from how the system tracks shared memory attachments. A counter designed to hold positive numbers uses only 16 bits. When this count exceeds its limit, it wraps around to become negative. This arithmetic error triggers a race condition in the kernel, leading to memory corruption that attackers can manipulate to run code with administrative rights.

The background

According to Cyber Security News, the main flaw originated in the original BSD source code approximately 37 years ago. It survived because the `shm_nattch` variable used a signed 16-bit value. OpenBSD patched both the integer overflow and the subsequent reference-counting issue before Calif released their findings on 16 October 2026.

What changes now

OpenBSD addressed the integer overflow in Errata 018 and the use-after-free defect in Errata 026. The published research covers only a local privilege escalation scenario and does not report active exploitation in real-world attacks. Systems running unpatched versions remain vulnerable to any local user who can execute code.

The attacker's path

Teams usually monitor for unusual process forking patterns, as this chain relies heavily on rapid process creation. Check whether local accounts have unnecessary execution permissions, as the attack requires a foothold on the host. Verify that memory protection mechanisms are active, though note that sophisticated exploits may bypass standard randomization. Ensure logging captures kernel-level allocation anomalies to detect such race conditions early.

Background: Integer overflow vulnerabilities

Use fixed-width integer types and explicit range validation before every arithmetic operation. Compile with warnings enabled and treat all inputs as untrusted. Verify that addition, subtraction, and multiplication results stay within expected bounds. This prevents buffer overflows and logic errors in financial or access control systems.

Read the full guide: Integer Overflow Prevention Checklist for Secure Software Development

What to do and how to stay safe: OpenBSD

  • Audit all OpenBSD installations to confirm they have received the Errata 018 and 026 updates.
  • Restrict local user privileges to prevent untrusted code from executing on the host.
  • Monitor system logs for abnormal spikes in process creation or shared memory usage.
  • Review kernel logs for unexpected allocation errors or memory corruption indicators.

Step-by-step guide: Emergency Patching: Correcting Five Common Operational Errors

General security guidance from the RedTeam Log newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

Is this vulnerability being exploited in the wild?

The published research covers a local privilege escalation exploit and does not report active use in real-world attacks.

How old is the primary flaw?

The main bug dates back about 37 years to the original BSD source code.

Did the exploit bypass OpenBSD security protections?

Yes, the chain worked with KARL, SMAP and SMEP enabled, without needing a separate information leak.

Sources

  1. Cyber Security News
OpenBSDkernelprivilege escalationCalifCyber Security News

Related stories