CVE-2026-72427
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn the Linux kernel, the following vulnerability has been resolved: bpf: Fix effective prog array index with BPF_F_PREORDER replace_effective_prog() and purge_effective_progs() located the slot in the effective array by walking the program hlist and counting entries linearly. That count does not match the array layout: compute_effective_ progs() places BPF_F_PREORDER programs at the front (ancestor cgroup first, attach order within a cgroup) and the rest after them (descendant cgroup first). So when a preorder program is present, the linear hlist position no longer equals the program's index in the effective array. For replace_effective_prog() (bpf_link_update()) this overwrote the wrong slot, corrupting the effective order. For purge_effective_progs(), it could dummy out a slot belonging to a different program and leave the detached program in the array while bpf_prog_put() drops its reference, i.e. a use-after-free. Fix both by replaying compute_effective_progs()'s placement (including the per-cgroup preorder reversal) in a shared effective_prog_pos() helper. Identify the entry by its struct bpf_prog_list pointer rather than by (prog, link) value, so the lookup resolves to exactly the attachment the syscall selected even when the same bpf_prog is attached to several cgroups in the hierarchy.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysisA detailed technical summary for this CVE is being prepared.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataThere is no version to upgrade to and no patch to apply. Every affected install stays exposed until the vendor ships a fix — or somebody else builds one.
Free. We build fixes in the order the community asks for them — and we’ll tell you the moment this one lands.
We develop and verify an original fix where the vendor hasn’t, from $4,900. Deployed to your staging first — never straight to production.
Scope it with usSee what else the community needs solved on the solutions-needed board.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-72427 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesCVE-2026-72427 is an algorithmic correctness bug in the BPF cgroup attachment code where a semantic invariant—specifically, that linear hlist position equals array index—silently diverged from the actual data structure layout policy. The root cause is BPF_F_PREORDER, a flag that changed program placement in the effective array without updating all consumer functions that assumed the old linear ordering held. The bug produces two distinct failure modes from the same faulty indexing logic. In replace_effective_prog(), the wrong program gets silently overwritten while the correct one becomes orphaned—the kernel continues running, but security policy enforcement executes out of intended order. In purge_effective_progs(), the bug creates a genuine use-after-free: the wrong array slot gets nulled, the target program pointer remains intact, bpf_prog_put() decrements the refcount to zero, and the freed object leaves a dangling pointer in the array. Whether this is exploitable depends on allocation timing and whether subsequent array access occurs before reallocation. The fix replays compute_effective_progs() placement logic rather than storing an inverse mapping—this choice is telling. It acknowledges that function as the authoritative source of truth, revealing the original bug was not merely an off-by-one but a fundamental misunderstanding of how BPF_F_PREORDER changed the semantic contract. The addition of effective_prog_pos() as a shared helper is the correct immediate fix, but it quarantines the problem rather than eliminating the underlying pattern. The more dangerous failure path is the silent corruption in replace_effective_prog(). Unlike the UAF, which crashes and generates detectable evidence, ordering corruption in BPF cgroup programs (which enforce network filtering, resource limits, and seccomp) propagates silently through every subsequent hook invocation. An attacker who triggers bpf_link_update() during a window with preorder programs has a reliable path to subvert enforcement semantics without touching the UAF path at all. Audit other BPF cgroup functions for similar linear position-to-index assumptions—this pattern of implicit ordering equivalence is exactly the kind of assumption that lives in 'obviously correct' iteration code and is hard to discover without explicit review.
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-72427 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data