Pin, Test, Clean: the remediation ladder for eBPF CNIs on 5.15

Site Admin · 4 Dec 2026 · Cloud & Virtualization

Inventory the pair, pin the CNI to a kernel matrix, canary one node, and assert the deny path continuously. The download carries the ten parts, the two verified upstream Calico diffs, the kernel preflight, XDP diagnostics, the uninstall checklist and the rollback procedure.

There is no CVE to patch and no advisory to cite. What exists is a compatibility relationship, a silent failure mode, and controls that make both survivable.

The ladder

1. Inventory the pair, not the product. Every node has a kernel and a CNI version; the risk lives in the pair. preflight-kernel-guard.sh prints both and fails when the kernel is below the CNI's floor or a 5.15 node is about to take a release known to fail there. Run it as a DaemonSet init check or pre-upgrade gate, not a dashboard.

2. Pin the CNI to a kernel matrix. Do not upgrade the CNI independently of the kernel. On 5.15, stay on Calico 3.32.2+ until the kernel moves to 6.8 or a 3.33.x is confirmed there; 3.32.2 carries the verifier fixes, and 3.32.0 carries #9417. For Cilium, 5.15 is inside the 5.10+ floor, so pin to a minor that has passed your conformance test on that kernel.

3. Roll one node first. A DaemonSet update is not a canary by default. Taint or cordon one node, let the new agent start, and check three things before the fleet moves: the verifier log is clean, bpftool net shows the expected tc and XDP programs, and the deny-path test still fails as it should. rollout-canary.md has the sequence.

4. Test the deny path continuously. Connectivity checks cannot detect unenforced policy. A default-deny namespace pair with a connection that must be refused is the only assertion that fails when the policy program is missing. deny-path-test.yaml and verify-policy-enforcement.sh implement it; wire the script to a CronJob per node pool.

5. Keep one CNI per node. #17540 was not a Cilium bug; it was two CNIs sharing an XDP hook. Never install a second CNI "just to compare", and after a migration confirm no Felix, calico-node or stale CNI DaemonSet is still running. xdp-diagnostics.sh prints every XDP and tc attachment with its program ID and pin path.

6. Uninstall completely. The documented uninstall plus uninstall-cleanup.md: the CNI binary and conflist under /opt/cni/bin and /etc/cni/net.d, the agent socket directory, bpffs pins under /sys/fs/bpf, the cilium_host / cilium_net links, routes and rules, and iptables/nftables chains. Verify from the kernel, not kubectl.

7. Keep a rollback that does not need the network. If the dataplane fails, rollback must not depend on pulling an image through the cluster network. Pre-pull the previous agent image, keep the previous manifest, and know whether your provider pins the node image. rollback.md covers Calico 3.33→3.32, kernel 6.8→5.15 and the Cilium equivalent.

What PATCH contains

The verifier class has two real upstream fixes, packaged as upstream diffs, not OwlMan patches:

Both are single-file changes to felix/bpf-gpl/parsing6.h (PR head commits d3963324… and 4d2c6fd3…). Each reproduces its fix commit byte-for-byte from the exact parent; both applied to v3.31.0 and v3.32.0 produce v3.33.0's file exactly (ad7480f9…). On v3.33.0 they are rejected as already applied; on v3.30.0 they apply but leave one unrelated include difference.

They are a backport for 3.30–3.32.1; 3.31.7+, 3.32.2+ and 3.33.0+ already contain them, and 3.30.x never does. Not a claim that every 3.33-on-5.15 report is fixed. Use the fixed release where one exists; use the patches only where you are pinned to an old branch and cannot move the kernel.

The honest bottom line

With a pinned pair, a matrix, a canary node and a continuous deny-path test, the residual risk is manageable. Without the deny-path test, the residual is unknown policy state: you do not know whether your segmentation is real.

A CVE has a version, a score and a fixed release. A dataplane compatibility regression has a kernel, a program size and a log line — and the only way to know you are affected is to look at the kernel, not the dashboard.

Next: the series is complete. The download carries the ten parts, the two verified upstream diffs, the kernel preflight, the XDP diagnostics, the uninstall checklist and the rollback procedure.