Skip to navigation

Threat reportVulnerabilityTL-2026-3770

OpenBSD 7.9 Root Exploit ("Big Fish") Chaining 37-Year-Old shmat(4) Integer Overflow with sysvipc Kernel Use-After-Free (No CVE Assigned)

highPATCHED

Calif published a proof-of-concept local root exploit for OpenBSD that chains a 37-year-old signed 16-bit shm_nattch integer overflow in shmat(4) with a reference-counting use-after-free in sysvipc and an out-of-bounds write. Patches are available via syspatch (errata 018 and 026); no in-the-wild exploitation has been documented and no CVE was assigned.

By

Key facts

IdentifiersTL-2026-3770, CVE-2026-57589
Also known asBig Fish, Calif MADBugs OpenBSD
SeverityHIGH
First disclosed
EPSSCVE-2026-57589: 0.1% (6.2th percentile)
Affected productsOpenBSD OpenBSD kernel (shmat / sysvipc / sysvsem)
Weaknesses (CWE)CWE-190, CWE-416, CWE-787
MITRE ATT&CK techniquesT1059.004 Unix Shell, T1082 System Information Discovery, T1106 Native API, T1587.004 Exploits
MotivationUNKNOWN
Target sectorstechnology, telecoms, government administration
Target regionsGlobal
Detection rules9 (1 shown free)
Sources10 cited sources

Detection coverage

As of 2026-10-16, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3770 across Splunk SPL, Microsoft KQL and Sigma, covering 13 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 Fault / Panic Burst (shmat-sysvipc UAF Race) — Exploitation

TL-2026-3770 (Big Fish, no CVE): the public PoC chains a shm_nattch 16-bit overflow with a sysvipc reference-counting use-after-free raced against shmctl(IPC_RMID), then an out-of-bounds write into struct ip_moptions. Heap grooming and the race are probabilistic, so failed or unstable attempts on unpatched OpenBSD 7.8/7.9 hosts commonly surface as kernel traps (uvm_fault, protection fault trap) or panics in syslog. This search surfaces those kernel fault messages per host per hour so an analyst can correlate them with unprivileged SysV IPC / mass-fork activity (T1068, T1106). A burst of kernel panics or reboots on a multi-user host also maps to endpoint denial of service via system exploitation (T1499.004), the side effect of a lost race. It is a heuristic for exploitation attempts, not proof of compromise.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1068, T1106, T1499.004
  • Data sources: openbsd_syslog (index=os sourcetype=syslog, kernel facility), Microsoft Sentinel Syslog table
  • Severity: high
  • Confidence: medium

Splunk SPL

index=os sourcetype=syslog earliest=-24h ```TL-2026-3770 Big Fish shmat/sysvipc UAF race: OpenBSD kernel fault telemetry (T1068, T1106, T1499.004)``` ("bsd:" OR process=bsd OR program=bsd) ("uvm_fault" OR "panic:" OR "protection fault trap" OR "page fault trap" OR "kernel diagnostic assertion" OR "double fault" OR "pool_do_put")
| eval fault_class=case(match(_raw,"(?i)panic:"),"panic", match(_raw,"(?i)uvm_fault"),"uvm_fault", true(),"trap")
| bin _time span=1h
| stats count as fault_events values(fault_class) as fault_classes min(_time) as first_seen max(_time) as last_seen by host _time
| eval first_seen=strftime(first_seen,"%F %T"), last_seen=strftime(last_seen,"%F %T")
| table host fault_events fault_classes first_seen last_seen

Microsoft KQL

Syslog
| where TimeGenerated > ago(24h)
// TL-2026-3770 Big Fish shmat/sysvipc UAF race: OpenBSD kernel fault telemetry (T1068, T1106, T1499.004)
| where ProcessName in~ ("bsd", "/bsd") or Facility =~ "kern"
| where SyslogMessage has_any ("uvm_fault", "panic:", "protection fault trap", "page fault trap", "kernel diagnostic assertion", "double fault", "pool_do_put")
| extend FaultClass = case(SyslogMessage has "panic:", "panic", SyslogMessage has "uvm_fault", "uvm_fault", "trap")
| summarize FaultEvents = count(), FaultClasses = make_set(FaultClass), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Computer, bin(TimeGenerated, 1h)
| project TimeGenerated, Computer, FaultEvents, FaultClasses, FirstSeen, LastSeen

Sigma

title: Big Fish OpenBSD Kernel Fault or Panic Messages (shmat/sysvipc UAF Race)
id: 6f1d2a3c-8b47-4e5a-9c10-3a7d5e2b1f01
status: experimental
description: Detects OpenBSD kernel trap, uvm_fault or panic messages in syslog that can result from failed or unstable attempts at the Big Fish (Calif MADBugs, TL-2026-3770) shmat integer overflow and sysvipc use-after-free race chain. Heuristic only; no CVE assigned.
references:
    - https://calif.io/research/big-fish
    - https://github.com/califio/publications/tree/main/MADBugs/openbsd
    - https://www.openbsd.org/errata79.html
author: Threadlinqs Team
date: 2026/10/16
tags:
    - attack.privilege-escalation
    - attack.t1068
    - attack.execution
    - attack.t1106
    - attack.impact
    - attack.t1499.004
logsource:
    product: openbsd
    service: syslog
detection:
    keywords_kernel_fault:
        - 'uvm_fault'
        - 'protection fault trap'
        - 'page fault trap'
        - 'kernel diagnostic assertion'
        - 'double fault'
        - 'pool_do_put'
        - 'panic:'
    condition: keywords_kernel_fault
falsepositives:
    - Faulty RAM or hardware causing kernel traps
    - Unpatched drivers or unrelated kernel bugs
    - Deliberate kernel debugging or fuzzing in lab hosts
level: medium

Known false positives:

  • Hardware faults (bad RAM, failing disk controller) producing kernel traps or panics
  • Unrelated kernel bugs, driver issues, or intentional kernel testing/fuzzing on lab hosts

Tuning notes: Restrict to the OpenBSD host inventory (lookup or watchlist) since syslog is OS-agnostic. Verify the exact kernel message text in your own /var/log/messages and tune the keyword list. Raise fidelity by requiring the same host to show unprivileged SysV IPC or high fork activity in the preceding hour. Hosts that rebooted after a panic and lack syspatch errata 018/026 are highest priority.

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 and Gold in full, 2 calls a day on a free account)
  • Big Fish Mass-Fork Burst by Unprivileged Process (shm_nattch Wrap) — Exploitation · unlock with TL Creds
  • Root Shell With No Elevation Broker in Process Lineage (Unexplained uid 0 Transition) · unlock with TL Creds
  • Big Fish PoC Download via git/curl/ftp Command Line on Host — Tool Staging · unlock with TL Creds
  • Big Fish PoC Compilation or Execution ([indicator]) — Exploit Preparation · unlock with TL Creds
  • Unprivileged OpenBSD Patch-Level and Kernel Malloc Reconnaissance (syspatch -l / sysctl kern.malloc) · unlock with TL Creds
  • Big Fish PoC Artifacts Written to Disk ([indicator] / [indicator] / MADBugs path) · unlock with TL Creds
  • Root Shell Spawned From User-Writable Path (Post-Exploitation Root Outcome) · unlock with TL Creds
  • Big Fish PoC Repository or Write-Up Retrieved via Web Proxy — Tool Staging · unlock with TL Creds

Indicators of compromise

As of 2026-10-16, Threadlinqs Intelligence tracks 13 indicators of compromise for TL-2026-3770.

Sample indicators (1 of 13)

  • URL: hxxps://www[.]youtube[.]com/watch?v=7FO_6nwNCCs

Defanged, TLP:CLEAR. Full set of 13 indicators: unlock with TL Creds.

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

Technical analysis

Calif researcher Andrew Griffiths disclosed on 2026-10-16 a local privilege-escalation exploit chain against OpenBSD 7.9, published as the 'Big Fish' PoC (big-fish.c, with README.md and big-fish.jpg) in the califio/publications MADBugs repository, with a full write-up at calif.io/research/big-fish. The root cause of the first bug is that the System V shared-memory attachment counter (shm_nattch) is a signed 16-bit short inherited from the original BSD sources roughly 37 years ago, with a maximum of 32,767. By mapping 127 SysV shared-memory segments (and unmapping them via munmap()) and forking 259 processes, the counter is wrapped from 32,767 to -32,643.

The wrapped counter enables a use-after-free through a race condition (shmctl IPC_RMID racing against the attach of a size-confused segment), caused by a reference-counting bug in sysvipc. The exploit performs heap grooming using sysctl(KERN_MALLOCSTATS) metrics, then aligns IP socket allocations so that a persistent 16-byte struct ip_moptions is allocated via the IP_MULTICAST_TTL (value 2) socket option. The final word of ip_moptions packs two 16-bit counters (imo_num_memberships | imo_max_memberships) at offset +12; a conditional -1 out-of-bounds write corrupts these membership fields. Closing the socket then executes atomic decrements that modify a page-table-entry (PTE) self-referential mapping, switching a mapping from user to supervisor accessible and defeating SMAP/SMEP. Finally a predictable kernel pointer is overwritten to achieve kernel code execution; the PoC restores the pointer and returns a root shell. The write-up states no information-disclosure vulnerability is required.

KARL (kernel address randomization by relinking) is bypassed because, in Griffiths' words, the kernel's memory allocators remain deterministic, so early-boot structures land at predictable addresses. OpenBSD fixed the integer overflow in errata 018 (2026-09-14, classified as a reliability fix; 7.8 and 7.9) and the reference-counting use-after-free in errata 026 (2026-09-30, a security fix; sysvipc). A related semop(2) use-after-free was fixed in errata 029 (2026-09-30, sysvsem). All are available through syspatch on all architectures. Calif reported the flaws to OpenBSD earlier in 2026 and also proposed hardening: safe-unlinking for kernel doubly-linked lists, randomizing the PTE self-map base (PML4 slots 320-448), kernel allocator randomization, an array bounds sanitizer and Alloc Tokens.

No CVE or CVSS has been assigned; severity HIGH is an analyst judgment (local root, public PoC). Separately, CVE-2026-57589 (CVSS 7.8, CWE-416; published 2026-06-25) is a distinct use-after-free in sys_semget() affecting OpenBSD through 7.9 and is related only by subsystem, not part of this chain. The sources report no evidence of exploitation in attacks and name no actor, malware, or network infrastructure.

MITRE ATT&CK techniques by tactic:

Execution

T1059.004 Unix Shell; T1106 Native API

Discovery

T1082 System Information Discovery

Resource Development

T1587.004 Exploits

Remediation

Patches

  • OpenBSD 7.9 errata 018_shmat.patch.sig (2026-09-14)
  • OpenBSD 7.9 errata 026_sysvipc.patch.sig (2026-09-30)
  • OpenBSD 7.9 errata 029_sysvsem.patch.sig (2026-09-30)
  • OpenBSD 7.8 integer overflow fix (shmat) via syspatch

Immediate actions

  • Run syspatch on all OpenBSD 7.9 and 7.8 systems and reboot to load the patched kernel
  • Confirm errata 018 (shmat), 026 (sysvipc) and 029 (sysvsem) are installed on 7.9

Workarounds

  • No vendor workaround documented; limit untrusted local users until patched

Longer-term hardening

  • Restrict local shell access on OpenBSD hosts to trusted users, since the chain requires local code execution
  • Monitor for abnormal fork and SysV IPC usage on multi-user OpenBSD systems
  • Track upstream hardening work: safe-unlinking, PTE self-map randomization, allocator randomization, bounds sanitizers

Affected and fixed versions

  • OpenBSD — OpenBSD kernel (shmat / sysvipc / sysvsem)
    Vulnerable versions: 7.9 before errata 018 and 026; 7.8 before errata 018
    Fixed in: 7.9 with errata 018, 026, 029 (syspatch); 7.8 with errata 018 (syspatch)

Timeline

  • NVD publishes CVE-2026-57589, a separate sys_semget() use-after-free in OpenBSD through 7.9 (related subsystem, not part of the Big Fish chain)
  • OpenBSD 7.9 errata 005 addresses numerous problems in the System V (sem, msg, ipc) system call layers
  • OpenBSD releases errata 018 (7.8 and 7.9) preventing integer overflow in shmat(4); classified as a reliability fix
  • OpenBSD releases related errata 029 (security fix) for a semop(2) use-after-free in sysvsem
  • OpenBSD releases errata 026 (security fix) for a sysvipc reference-counting bug that could lead to kernel use-after-free
  • The Hacker News reports the exploit chain; no CVE assigned and no evidence of exploitation in attacks
  • Calif publishes the Big Fish PoC ([file name withheld]), README and write-up at [domain withheld]/research/big-fish after patches shipped

Sources cited

Previous and next in vulnerability

AI-drafted from 10 cited 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