
eBPF-based daemon to mitigate CVE-2026-31431 on systems where `algif_aead` is built into the kernel, without a reboot!
This repository holds the source code for our eBPF-based mitigation against CVE-2026-31431, also known as "copy.fail". (More info available at https://copy.fail)
The motivation behind building this solution was to fulfill the need for a reboot-less mitigation for mission-critical machines where algif_aead is built directly into the kernel, which makes it impossible to just blocklist the module for a quick mitigation.
This code is distributed AS-IS, without warranty of any kind, and licensed under the terms of the GPL-v2.0 license.
While we have tried this in our production servers, and it has been effective for us, we are presenting it only as a stop-gap solution.
In order to build this, you'll need to install the BPF tools and headers for your kernel version. For example, on CloudLinux:
dnf install bpftool libbpf-devel clang llvm kernel-devel kernel-headers
YMMV on other distros.
Once you have built the code in this repo, block_alg can take the following args: