Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Docker 6 min read Incident mediumAdept

Mitigating CVE-2026-31431 (“Copy Fail”) in Docker Engine

CVE-2026-31431 ("Copy Fail") is a Linux kernel flaw in the AF_ALG algif_aead module. It lets any unprivileged process with an AF_ALG socket write to the shared page cache, so a default container can corrupt files such as setuid binaries for the host and for other containers. Docker's first mitigation in v29.4.2 blocked socket(AF_ALG) via seccomp and denied socketcall(2) outright, because BPF cannot inspect socketcall's pointer arguments. That broke networking for 32-bit glibc, Go GOARCH=386, Wine and SteamCMD workloads, and the int $0x80 path from amd64 could still reach socketcall anyway. Docker Engine v29.4.3 reverts the socketcall deny and blocks AF_ALG at the LSM socket-creation hook through AppArmor and a SELinux CIL module, keeping the seccomp filter as defense-in-depth; patching the kernel remains the real fix.

Assumes: Linux syscallsseccomp-BPFAppArmor or SELinux basicsDocker container security profiles

Related posts

  • From 732 bytes to nowhere: shutting down Copy Fail in production

    Together AI mediumAdept

    Copy Fail (CVE-2026-31431) is a logic bug in the Linux kernel's algif_aead AF_ALG interface. It gives an unprivileged local user a 4-byte write into the page cache of any readable file. That is enough to patch setuid binaries in memory and gain root without changing the file on disk, so integrity checks miss it. Together AI mitigated it fleet-wide within hours, without reboots, by unloading the module and moving the .ko file out of the module path so it could not reload. They enforced this as an idempotent config-management health check and planned staged, soak-tested kernel rollouts by region. They will keep the module disabled after patching and are adding telemetry for unexpected AF_ALG use and anomalous privileged-binary behavior.

  • Docker Security Advisory: AuthZ Plugin Bypass Regression in Docker Engine

    Docker mediumAdept

    Docker Engine v19.03 and later regressed on a 2018 authorization-plugin bypass (CVE-2024-41110): an API request with Content-Length set to 0 causes the daemon to forward the request to the AuthZ plugin without its body, so a plugin not set to deny by default may approve it and allow privilege escalation. The original fix shipped in v18.09.1 in January 2019 but was not carried forward; patches were released July 23, 2024. Only setups relying on AuthZ plugins are affected, and Docker Desktop impact is limited to the VM, with 4.33 containing the fix. Remediation is to upgrade, or else avoid AuthZ plugins and restrict Docker API access.

  • From Security Blocked to Prod Ready: ClickHouse on Docker Hardened Images

    Docker mediumAdept

    Security scanners block the standard ClickHouse image because its Ubuntu 22.04 base ships unused packages carrying unpatched CVEs, such as wget (CVE-2021-31879) and tar. Docker Hardened Images remove apt, wget, curl and other unneeded packages. They run as non-root uid 65532, ship SLSA Level 3 provenance with VEX attestations, and come in dev and runtime variants. A Docker Scout comparison shows all medium-severity findings eliminated, with only unfixable low findings in glibc and openssl remaining. The guide covers docker run setup, custom XML config, Kubernetes fsGroup settings, a smaller metrics exporter (10.3 MB vs 29.4 MB), and debugging with docker debug in place of in-container tools.

  • Well, That Wasn't Fun: October 16 '26

    Fly.io mediumAdept

    A Linux kernel bug in IPv4 checksum offload validation let a guest VM direct the host to write its computed checksum into an already-trusted IPv4 header field. This enabled a firewall bypass and a 32-byte out-of-bounds read that could leak host memory or packets from neighboring VMs. XDP rules ran too early to catch the rewrite, and disabling offload required a reboot anyway, so Fly.io patched and rebooted its entire fleet in 10 hours. Reboots were sequenced in waves so no Managed Postgres cluster lost both nodes (17 waves in iad), with some hosts stuck in BIOS or lost to a failed power supply. The write-up also covers the decision to label the work as 'maintenance' rather than disclose vulnerability, the move of incident comms to the exec team, and advice to encrypt internal traffic, scope and expire agent credentials, and rehearse rotation.

  • How We Found and Fixed a Filesystem Corruption Bug

    Heroku Engineering mediumAdept

    A failed Cedar-14 stack image rollback caused Heroku's container tools to truncate and overwrite a disk image while it was still mounted read-only as dynos' root filesystem. A container-tools upgrade had changed checksum filenames and digests, so the safety check that skips already-present images missed the existing image. Because the page cache still held old pages while the backing file was truncated or half-written, newly loaded binaries mixed cached and missing data and segfaulted for about five hours. A loop-mount reproduction shows the effect, and the fix was migrating dynos to fresh hosts and marking installed images read-only on the host.

The quest for software engineering knowledge.

Look:
Layout: