Skip to navigation

Threat reportVulnerabilityTL-2026-3804

OpenBSD Kernel 'Big Fish' shm_nattch Integer Overflow and ip_moptions Out-of-Bounds Write Chain Enables Local Privilege Escalation to Root (Public PoC)

highACTIVE

A two-stage OpenBSD kernel exploit chain, published as 'Big Fish' by researcher Andrew Griffiths (Calif) on 2026-10-16, combines a 37-year-old signed 16-bit System V shared-memory attachment counter (shm_nattch) integer overflow/use-after-free with an out-of-bounds write affecting struct ip_moptions to reach root on OpenBSD 7.9, reportedly bypassing KARL, SMAP and SMEP.

Key facts

IdentifiersTL-2026-3804
Also known asBig Fish
SeverityHIGH
First disclosed
Affected productsOpenBSD Project OpenBSD kernel (SysV IPC shared memory / IP multicast socket options)
Weaknesses (CWE)CWE-190, CWE-416, CWE-787, CWE-367, CWE-362
MITRE ATT&CK techniquesT1059.004 Command and Scripting Interpreter: Unix Shell, T1068 Exploitation for Privilege Escalation, T1082 System Information Discovery, T1106 Native API, T1211 Exploitation for Stealth
MotivationUNKNOWN
Target sectorstechnology, government administration, telecoms, education, managed-service-providers
Target regionsGlobal
Detection rules9 (1 shown free)
Sources5 cited sources

Detection coverage

As of 2026-10-19, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3804 across Splunk SPL, Microsoft KQL and Sigma, covering 15 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Big Fish OpenBSD Kernel LPE - big-fish.c PoC Execution or Unprivileged Parent Spawning Root Shell

Detects TL-2026-3804 (Big Fish, shm_nattch/ip_moptions OpenBSD kernel LPE) exploitation on the host: a command line referencing the public big-fish.c PoC, or a root-owned shell (uid != 0, euid = 0) whose parent binary runs from a user-writable path such as /tmp, /var/tmp, /home or /dev/shm. A successful exploit ends in a root shell spawned from an attacker-controlled binary, so this fires on the end state even if the PoC is renamed. It also covers the id/whoami check an operator typically runs to confirm root (user discovery). Requires OpenBSD process telemetry with uid/euid/parent_path (osquery or an EDR sensor).

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1068, T1059.004, T1033
  • Data sources: osquery process_events, EDR process telemetry (OpenBSD)
  • Severity: high
  • Confidence: high

Splunk SPL

index=openbsd sourcetype="osquery:process_events" earliest=-24h
| eval cmd=lower(coalesce(cmdline,"")), ppath=lower(coalesce(parent_path,""))
| where match(cmd,"big-?fish") OR (tonumber(uid)!=0 AND tonumber(euid)=0 AND match(path,"/(ksh|sh|bash|id|whoami)$") AND match(ppath,"^/(tmp|var/tmp|home|usr/home|dev/shm)/"))
| stats count min(_time) as first_seen max(_time) as last_seen values(cmdline) as cmdlines by host, path, ppath, uid, euid

Microsoft KQL

OpenBSDProcess_CL
| where TimeGenerated > ago(24h)
| where CommandLine_s matches regex @'(?i)big-?fish'
    or (Uid_d != 0 and Euid_d == 0
        and Path_s matches regex @'/(ksh|sh|bash|id|whoami)$'
        and ParentPath_s matches regex @'^/(tmp|var/tmp|home|usr/home|dev/shm)/')
| project TimeGenerated, Computer, Path_s, CommandLine_s, ParentPath_s, Uid_d, Euid_d

Sigma

title: Big Fish OpenBSD LPE - PoC Execution or Unprivileged Parent Spawning Root Shell
id: 9b1d7a10-3804-4a77-9d11-0b16f15b0001
status: experimental
description: Detects execution referencing the public Big Fish PoC (big-fish.c) or a root shell spawned from a binary in a user-writable directory by a non-root parent, the end state of the OpenBSD shm_nattch/ip_moptions kernel LPE chain (TL-2026-3804).
references:
    - https://calif.io/research/big-fish
    - https://github.com/califio/publications/tree/main/MADBugs/openbsd/big-fish.c
    - https://www.openbsd.org/errata79.html
author: Threadlinqs Team
date: 2026-10-17
tags:
    - attack.privilege-escalation
    - attack.t1068
    - attack.execution
    - attack.t1059.004
    - attack.discovery
    - attack.t1033
logsource:
    category: process_creation
    product: openbsd
detection:
    selection_poc:
        CommandLine|contains: 'big-fish'
    selection_root_shell:
        User: 'root'
        Image|endswith:
            - '/ksh'
            - '/sh'
            - '/bash'
            - '/id'
            - '/whoami'
        ParentImage|startswith:
            - '/tmp/'
            - '/var/tmp/'
            - '/home/'
            - '/usr/home/'
            - '/dev/shm/'
    filter_root_parent:
        ParentUser: 'root'
    condition: selection_poc or (selection_root_shell and not filter_root_parent)
falsepositives:
    - Security researchers testing the Big Fish PoC in an authorized lab
    - Administrators running doas or su from a script located in a home directory
level: high

Known false positives:

  • Authorized researchers or red teams running the public big-fish.c PoC in a lab
  • Administrators using doas/su from a wrapper script stored under /home or /tmp

Tuning notes: Field names (cmdline, path, parent_path, uid, euid) assume an osquery process_events feed; map them to your sensor's schema. OpenBSD does not log process parentage by default. Add legitimate setuid helper paths to an exclusion list, and keep the user-writable path list aligned with your mount layout.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • Big Fish OpenBSD LPE - PoC Retrieval from califio/publications or calif.io · unlock with TL Creds
  • Big Fish OpenBSD LPE - big-fish PoC Compilation or Execution · unlock with TL Creds
  • Big Fish OpenBSD LPE - shmat Attach Flood Toward shm_nattch Overflow · unlock with TL Creds
  • Big Fish OpenBSD LPE - [indicator] setsockopt by Non-Multicast Unprivileged Process · unlock with TL Creds
  • Big Fish OpenBSD LPE - Kernel Fault or Panic Messages Indicating Failed Exploit Attempt · unlock with TL Creds
  • Big Fish OpenBSD LPE - big-fish PoC Source or Binary Written to Disk · unlock with TL Creds
  • Big Fish OpenBSD LPE - Unprivileged Process Fork Storm (shm_nattch Counter Manipulation) · unlock with TL Creds
  • Big Fish OpenBSD LPE - Unprivileged kern.malloc / KERN_MALLOCSTATS Heap Profiling · unlock with TL Creds

Indicators of compromise

As of 2026-10-19, Threadlinqs Intelligence tracks 15 indicators of compromise for TL-2026-3804.

15 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Public PoC code is available; OpenBSD addressed the shared-memory issues via errata 018 and 026.

Big Fish is a local privilege escalation (LPE) research chain against the OpenBSD kernel, published by Andrew Griffiths of Calif on 2026-10-16 alongside proof-of-concept code (big-fish.c, hosted in the califio/publications GitHub repository under MADBugs/openbsd/). The researcher states the root cause traces back roughly 37 years to original BSD source code: the System V IPC shared-memory attachment counter, shm_nattch, is declared as a signed 16-bit short in sys/sys/shm.h. Repeated attach/detach and process-fork activity can drive this counter past its signed maximum, causing it to wrap to a large negative value. Combined with a reference-counting error, this produces a use-after-free condition in the kernel's SysV IPC shared-memory subsystem. The flaw was reported to the OpenBSD project earlier in 2026, ahead of public disclosure.

At a high level, the published research describes a multi-stage chain rather than a single bug: (1) the shared-memory attachment counter is driven to overflow through repeated mapping/unmapping and process forking, producing a reference-count/use-after-free primitive; (2) kernel heap state is profiled using sysctl(KERN_MALLOCSTATS) statistics to infer allocator behavior, which is feasible because the OpenBSD kernel allocator is deterministic; (3) a timing race between object deallocation (IPC_RMID) and reattachment by a helper process is used to achieve a type/size confusion over freed kernel memory; (4) the confused memory is overlaid with an IP multicast socket option structure (struct ip_moptions, 16 bytes) created via setsockopt(IPPROTO_IP, IP_MULTICAST_TTL, ...); (5) a conditional out-of-bounds write corrupts fields within that structure; (6) subsequent socket teardown operations that walk the multicast group list provide a controlled write primitive against adjacent kernel memory, which is leveraged to corrupt a self-referential page-table-entry mapping and flip a page from user- to supervisor-writable; (7) this is used to overwrite a predictable kernel code/data pointer and obtain a root shell. The researcher reports this chain defeats OpenBSD's KARL (kernel address randomized link), SMAP, SMEP and ASLR protections on OpenBSD 7.9 (and potentially earlier releases sharing the same SysV IPC and multicast code paths).

This is strictly a local privilege escalation: an attacker requires pre-existing code execution (e.g., an unprivileged local shell, a compromised service account, or a sandboxed/jailed process capable of IPC and socket syscalls) on the target host; it grants no remote access or initial foothold on its own. No CVE identifier, CVSS score, or indicators of in-the-wild exploitation are present in any source reviewed; the HIGH severity in this record is an analyst assignment reflecting root-level local privilege escalation with a working public PoC, not a vendor- or NVD-assigned rating. No network-based IOCs exist for this threat since it is a local kernel exploit; the IOCs captured below are host/behavioral artifacts, file/code artifacts, and vulnerable-component identifiers useful for detection and asset inventory.

OpenBSD published two relevant errata for the 7.9 release: errata 018 (dated 2026-09-14, patch file 018_shmat.patch.sig, described by OpenBSD as a reliability fix to 'prevent integer overflow in shmat(4)', applicable to all architectures) and errata 026 (dated 2026-09-30, patch file 026_sysvipc.patch.sig, described by OpenBSD as a security fix for 'a reference counting bug [that] could lead to use-after-free in the kernel', applicable to all architectures). The researcher's own write-up cites exactly these two errata as addressing the shared-memory side of the chain; neither official errata description specifically mentions IP multicast or ip_moptions, so it is not confirmed by the sources reviewed whether the ip_moptions out-of-bounds-write primitive used in the later exploitation stages was independently patched or whether it was an exploitation technique riding on the same freed-memory condition. Defenders running affected OpenBSD releases should treat applying both errata as the primary remediation rather than relying on exploit mitigations such as KARL/SMAP/SMEP alone, per the original source's guidance. The researcher additionally proposes forward-looking kernel hardening not yet implemented upstream at time of writing: safe-unlinking for kernel doubly-linked lists, randomization of the self-referential page-table-entry mapping (e.g., via .openbsd.randomdata-style techniques), randomization of kernel allocator base addresses and allocation order, and compiler-based defenses such as array-bounds sanitizers and allocation-tagging ('Alloc Tokens') schemes.

MITRE ATT&CK techniques by tactic:

Execution

T1059.004 Command and Scripting Interpreter: Unix Shell; T1106 Native API

Privilege Escalation

T1068 Exploitation for Privilege Escalation

Discovery

T1082 System Information Discovery

Defense Evasion

T1211 Exploitation for Stealth

Remediation

Patches

  • OpenBSD 7.9 errata 018 — 018_shmat.patch.sig (2026-09-14) — prevents integer overflow in shmat(4)
  • OpenBSD 7.9 errata 026 — 026_sysvipc.patch.sig (2026-09-30) — fixes reference-counting use-after-free in kernel SysV IPC

Immediate actions

  • Apply OpenBSD 7.9 errata 018 (018_shmat.patch.sig) to prevent the shmat() integer overflow
  • Apply OpenBSD 7.9 errata 026 (026_sysvipc.patch.sig) to fix the SysV IPC reference-counting use-after-free
  • Audit which local users, services, or jailed/sandboxed processes have the ability to call shmget/shmat/shmctl and setsockopt(IPPROTO_IP, IP_MULTICAST_TTL) and restrict where not required
  • Inventory all OpenBSD hosts for release version to confirm exposure to the shm_nattch / ip_moptions code paths prior to errata 018/026

Workarounds

  • Restrict or disable unprivileged access to System V shared memory IPC primitives where not operationally required
  • Restrict unprivileged processes' ability to create IP multicast sockets / set IP_MULTICAST_TTL where not operationally required
  • Limit local shell/code-execution exposure on OpenBSD hosts (the chain requires an existing local foothold) via least-privilege account design and process sandboxing

Longer-term hardening

  • Track upstream adoption of proposed kernel hardening: safe-unlinking for kernel linked lists, self-referential PTE mapping randomization, kernel allocator base-address/order randomization
  • Evaluate compiler-based mitigations (array bounds sanitizers, allocation-tagging schemes such as Alloc Tokens) as they become available in OpenBSD toolchains
  • Do not rely solely on KARL/SMAP/SMEP/ASLR as a substitute for patching, since this chain is reported to bypass all four
  • Monitor the califio/publications GitHub repository and OpenBSD errata feed for follow-on advisories related to SysV IPC and IP multicast socket options

Affected and fixed versions

  • OpenBSD Project — OpenBSD kernel (SysV IPC shared memory / IP multicast socket options)
    Vulnerable versions: OpenBSD 7.9 (and potentially earlier releases sharing the same shm_nattch and ip_moptions code paths)
    Fixed in: OpenBSD 7.9 with errata 018 (018_shmat.patch.sig) and errata 026 (026_sysvipc.patch.sig) applied

Timeline

Last updated · revalidated 1× · latest source

  • Original BSD sources define shm_nattch as a signed 16-bit short in sys/sys/shm.h, the root cause later inherited by OpenBSD (year approximate, 'about 37 years' per sources).
  • Researcher Andrew Griffiths (Calif) reports the shm_nattch / SysV IPC and ip_moptions kernel issues to the OpenBSD project earlier in 2026, ahead of public disclosure (exact report date not stated in sources).
  • OpenBSD releases errata 018 (locked-ioc-4) for OpenBSD 7.9, described as a reliability fix preventing integer overflow in shmat(4).
  • OpenBSD releases errata 026 (locked-ioc-3) for OpenBSD 7.9, a security fix for a reference-counting bug that could lead to kernel use-after-free.
  • Public proof-of-concept exploit code (locked-ioc-7) is published in the califio/publications GitHub repository under locked-ioc-5/.
  • Andrew Griffiths (Calif) publishes the 'Big Fish' research write-up at calif.io/research/big-fish detailing the full exploit chain.
  • Threadlinqs threat hunting pipeline ingests the GBHackers article and opens threat TL-2026-3804 for research and tracking.
  • GBHackers publishes an article summarizing the OpenBSD kernel flaw chain and public PoC, bringing broader attention to the research.
  • Security Affairs publishes coverage of Big Fish, summarizing the chain, KARL/SMAP/SMEP/W^X bypasses, absence of CVEs and in-the-wild exploitation, and syspatch remediation.

Update history

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 5 sources; published ; last updated .

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats