---
title: "The Taking of FreeBSD One Two Three"
description: "FreeBSD's CTL High Availability mode exposes three unauthenticated remote root vulnerabilities: an arbitrary kernel read/write primitive in the HA DATA channel, a write-only pointer bug in DATAMOVE, and a heap overflow in the DATAMOVE scatter-gather copy loop."
url: "https://swe.quest/articles/the-taking-of-freebsd-one-two-three-2232035e5e03b6d5"
canonical: "https://blog.calif.io/p/the-taking-of-freebsd-one-two-three"
source: "Calif"
published: "2026-08-06"
difficulty: "hard"
kind: "Research"
reading_minutes: 4
tags: ["vulnerability-research","security","operating-systems","memory-safety"]
---

# The Taking of FreeBSD One Two Three

A post on [Calif](https://swe.quest/sources/calif.md), published 2026-08-06, 4 min read, Research. Original: [https://blog.calif.io/p/the-taking-of-freebsd-one-two-three](https://blog.calif.io/p/the-taking-of-freebsd-one-two-three)

## Summary

FreeBSD's CTL High Availability mode exposes three unauthenticated remote root vulnerabilities: an arbitrary kernel read/write primitive in the HA DATA channel, a write-only pointer bug in DATAMOVE, and a heap overflow in the DATAMOVE scatter-gather copy loop. Reachable over the HA TCP port (999 by default), each bug can be turned into a root shell, with exploits using kernel pointer abuse, heap grooming, ROP, and shellcode that calls kproc\_create/kern\_execve. FreeBSD chose not to redesign the protocol because the HA link is meant to be a trusted private back-channel; instead it added a manpage warning, so operators should keep port 999 on a fully controlled network.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Operating systems](https://swe.quest/tags/operating-systems.md) (Infrastructure)
- [Memory safety](https://swe.quest/tags/memory-safety.md) (Security)

## Prerequisites

- FreeBSD kernel basics ([easy posts on Operating systems](https://swe.quest/tags/operating-systems.md?difficulty=easy))
- SCSI/iSCSI target concepts
- kernel exploitation primitives ([easy posts on Operating systems](https://swe.quest/tags/operating-systems.md?difficulty=easy))
- heap grooming and ROP

## Keywords

FreeBSD, CTL, CAM Target Layer, TrueNAS, KASLR, Claude Code, Opus 4.6

## Related posts

- [Virtualization, Responsible Disclosure, and CVE-2026-99312](https://swe.quest/articles/virtualization-responsible-disclosure-and-cve-2026-99312-bf7fb4a905c9145d.md): DigitalOcean · 2026-11-19 · Easy · 3 min read · Virtualization, Vulnerability research, Linux, Multi-tenancy
  A KVM flaw on AMD hosts with nested virtualization let root inside a guest read and write physical host memory.
- [A Higgs-bugson in the Linux Kernel](https://swe.quest/articles/a-higgs-bugson-in-the-linux-kernel-ee1594bf1b749860.md): Jane Street Tech Blog · 2025-07-02 · Hard · 11 min read · Debugging, Linux, Storage systems, Identity & auth, Networking
  Rare EACCES failures during large file copies over Kerberized NFSv3 came from a Linux kernel bug in RPCSEC\_GSS reply verification.
- [Hardening eBPF for runtime security: Lessons from Datadog Workload Protection](https://swe.quest/articles/hardening-ebpf-for-runtime-security-lessons-from-datadog-workload-protection-d7f876ff0025b179.md): Datadog Engineering · 2026-01-07 · Hard · 34 min read · Linux, Threat detection, Security, Operating systems, Performance engineering
  Five years of running Datadog Workload Protection, an eBPF-based runtime security agent supporting kernels from 4.15 to 6.18, distilled into six production lessons.
- [The case of the vanishing CPU: A Linux kernel debugging story](https://swe.quest/articles/the-case-of-the-vanishing-cpu-a-linux-kernel-debugging-story-3db1aa1b81ec8319.md): ClickHouse · 2025-03-05 · Hard · 32 min read · Linux, Memory management, Debugging, Performance engineering, Incidents & postmortems
  Intermittent, indefinite CPU saturation of ClickHouse Cloud pods, seen only on GCP, turned out to be a Linux kernel memory-management livelock.
- [VMs won't contain cyber-capable agents](https://swe.quest/articles/vms-won-t-contain-cyber-capable-agents-5f24eb5577ef49e0.md): Trail of Bits · 2026-08-26 · Hard · 7 min read · Sandboxing & isolation, Virtualization, Vulnerability research, AI agents, AI safety
  A preview of GPT 5.6-Cyber escaped a QEMU/KVM sandbox on a Debian 12 host three separate times, working autonomously for about 12 hours.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
