//nefariousplan

Backport Gap

A coordinated multi-branch release ships a security fix on one branch and ships the unfixed code on the others. The CVE record covers all branches; the patch covered the one.

A coordinated multi-branch release is the shape where a project cuts several release tags in one push. The release notes read like a coordinated patch. The CVE advisory that follows lists every branch in the affected-versions field, with a fixed-in column alongside. The reader infers from the shape of the advisory that every branch received the same remediation.

The infrastructure does not guarantee that. Each branch is a tree. Each release is one picker's walk through one tree's log. A security commit lands first on whichever branch its author was working in. Propagation to the siblings is a separate action by a separate person at a separate time, or is the same person making the same action twice and missing once. The release engineer cutting three tags on the same day picks whatever commits are on each tree at the moment of the cut. The CVE record is written against the bug class and covers every branch the bug class touches. The patch is written against one tree and covers whichever branches the picker walked.

For the gap window, administrators running the branch that received the commit are patched, administrators running any other branch in the same advisory are the CVE, and the two states are produced by the same maintainer in the same push.

Mechanism

The pattern names a specific failure mode of coordinated multi-branch maintenance. A project supports several release branches concurrently: a current line, one or more long-term-support lines, and often a development trunk from which the others diverged. The same code lives on each tree in near-identical form. When a researcher reports a bug, the fix is authored once, against whichever branch the developer happens to be working in. Propagating it to the siblings is a cherry-pick step the developer, or a separate release engineer, must perform explicitly. That step is where the patch loses branches.

The release cadence hides the loss. The project cuts tags on multiple branches on the same day, under the same version-bump discipline, and the advisory lists them together. The reader of the advisory sees a coordinated response. The git log sees three release tags, three commit DAGs, and one security commit present in one of them. Apache MINA's CVE-2026-42779 is the canonical shape: three releases went out on 2026-04-24 from the 2.0.X, 2.1.X, and 2.2.X branches, the fix for the deserialization filter bypass had been committed to the 2.0.X branch the day before, and the commit message labeled the fix a backport from 2.2.X while being the only instance of the fix anywhere in the tree. 2.1.11 and 2.2.6 shipped the bug. The missing fix landed on the two sibling branches five days later as ba8c355d8 and cca24d646, with commit messages reading "Added a missing fix."

The gap window scales with the distance between the branches and the discipline of the release engineering. FreeBSD's CVE-2026-45250 measured the gap in one hundred and sixty-seven days: the stack overflow in kern_setcred_copyin_supp_groups() was fixed in main on November 27, 2025, as a refactor side effect under the subject "Fix a panic on too many groups from latest commit," and the backport to releng/14.4 landed May 20, 2026, one day before public disclosure. secteam's first reply to the disclosure was "appears to be a duplicate issue that we are already working on," one hundred and sixty-seven days after the duplicate had been sitting in main fixed. The branch that shipped to administrators was every supported release. The branch that carried the fix was the development tree.

The mechanism extends past single-project maintenance branches. When an upstream serves a population of downstream vendor forks, each fork is a branch in the same sense: it shares the upstream's code, carries its own release cadence, and must explicitly pull each security commit to receive it. The Linux rtmutex CVE-2026-43499 exhibit measures the gap across an ecosystem: one upstream patch, eight stable-LTS backports available by October 2026, and ninety-one GitHub repositories carrying device-specific exploit ports against Android vendor forks whose security_patch property is a date string rather than a commit hash. The fork maintainers who ran git am on the stable commit received the fix. The fork maintainers who shipped a date carried the bug.

The pattern also admits an inverse direction. undici's CVE-2026-9675 was a feature authored once and propagated to two branches on the same day, in the same PR, by the same author, with the safety check stripped from one of the two ports. PR #4955 landed as d7a1e55f on 6.x and bd91f867 on 8.x within the same minute on April 13, 2026. The 6.x port enforced the cumulative #fragmentsBytes > #maxPayloadSize check on both the compressed and the uncompressed paths of ByteParser.run(). The 8.x port enforced it on the compressed path only. The CVE covers v8.0.0 through v8.4.x because that is the range where the option exists and the bound it advertises is not enforced across every fragmented path. The direction is forward-port rather than backport. The mechanism is the same: two branches of one project, one of them carrying the full check and one of them carrying a partial copy, written by the same author at the same moment.

Three structural facts make the class durable. First, the natural unit of code review is the one branch the author is looking at; the sibling branches are not in the editor and are not in the test run, even when they are in the release schedule. Second, release engineering tools do not enforce commit parity across branches; they enforce tag parity across pushes. The tags go out together whether or not the trees under them agree. Third, the CVE record is written against the bug class, and the bug class is a property of the code; the CVE record's affected-versions field therefore lists every branch where the bug class is present, independent of whether the patch is. The advisory tells administrators which branches are vulnerable. It does not tell them which branches the picker reached before the push.

What distinguishes this class from parallel-implementation-gap is the source of the divergence. Parallel implementations are forks of a contract written by different authors against the same client-facing surface; the invariant that makes the capability safe lives in one author's imports and not the other's. Backport-gap is one implementation on multiple trees where the invariant exists in the code and the question is whether the picker brought the commit to every branch that needs it. What distinguishes it from release-lag-disclosure is the axis of the gap: release-lag is the vertical gap between a fix commit on a branch and the next tag cut from that same branch. Backport-gap is the horizontal gap between branches at the moment tags are cut from each.

Exhibits

CVE-2026-42779: Apache MINA Shipped the Fix on One Branch. The Same Day, Two Other Branches Shipped the Bug.. CVE-2026-42779 is the canonical exhibit: on 2026-04-24, Apache MINA cut 2.0.28, 2.1.11, and 2.2.6 from coordinated maintenance branches in the same push. 2.0.28 carried the bypass fix (8b1dadb55, committed the day before). 2.1.11 and 2.2.6 carried the buggy filter. The fix landed on the other two branches five days later as ba8c355d8 and cca24d646, with commit messages "Added a missing fix." For the five-day window, the CVE record applied to all three branches; the patch applied to one. The 2.0.X commit message labeled itself "backported from mina-2.2.X" while being the only known instance of the fix anywhere in the tree, suggesting a release-engineering gap rather than an authoring delay.

Boundaries

Not every missing security check across two surfaces is a backport-gap. Parallel Implementation Gap is the shape where two modules implement the same client-facing contract against different code, authored separately, and the canonical imports a safety helper the divergent never imported. The modules are not branches of each other; they are forks of a contract. Backport-gap is reserved for the case where the trees carry the same implementation and the fix was applied to one of them. If the "divergent" surface was never going to inherit the invariant because it was written against a parallel codebase, the pattern is parallel-implementation-gap and the remedy is a convergence point. If the surface shares the implementation and only lost the fix at propagation time, the pattern is here and the remedy is a parity check.

Not every fix-to-deployed-binary gap is a backport-gap. Release Lag Disclosure is the single-branch shape: the fix lands in trunk as a public commit, the next release tag on the same branch is cut weeks or months later, and the gap is between commit date and tag date on one tree. Backport-gap is the cross-branch shape: multiple release tags cut in the same push from different trees, with the fix present on one tree and absent on the others. The release-lag mechanism is calendar drift on one branch. The backport-gap mechanism is picker scope across branches. A CVE can exhibit both simultaneously, but the mitigations differ: release-lag is closed by cutting tags more often, backport-gap is closed by enforcing commit parity across branches at tag time.

Not every CVE-record-does-not-match-code shape is a backport-gap. CVE Scope Is The Patcher describes the record that omits an unmaintained upstream carrying the same bug, and Scope Is Support Status describes the record whose affected-versions line encodes the vendor's end-of-support matrix rather than the code's reach. Both of those patterns are about the CVE record under-covering the branches where the bug lives. Backport-gap is the inverse: the CVE record honestly covers every affected branch, and it is the patch that fails to reach them. If the administrator looks up their version and finds it listed as "fixed in," and the deployed binary still carries the primitive, the pattern is here.

Defender playbook

When a vendor's advisory names multiple fixed-in versions released on the same day, verify commit parity before trusting tag parity. Pull the diff between the vulnerable tag and the fixed tag on each branch and confirm the security commit is present in every branch the advisory lists as fixed. The 2.0.X, 2.1.X, and 2.2.X releases in the MINA push were tagged together, and the fix was in one. The advisory read the push as coordinated remediation. The git log read it as one picker's walk.

For upstream-plus-downstream ecosystems (Linux kernel plus vendor forks, LLVM plus distro patches, OpenSSL plus FIPS forks, framework plus plugin forks), track the stable backport commit hash in the downstream tree, not the downstream's self-declared security-patch date. The Android security_patch property is a date string, and a date string is a claim about intent, not about git am. Enumerate the forks a project serves and, for each one, resolve the fix commit against the fork's own git log before accepting the vendor's advisory as covering it.

In projects you maintain, make the backport step a visible gate rather than a convention. A pre-release check that diffs each maintenance branch's tip against the trunk's fix commits and fails the release if a security-labeled commit is present in trunk and missing downstream converts the mechanism from "the picker remembered" to "the tooling remembered." The MINA 2.0.X commit's message included the phrase "backported from mina-2.2.X" at a moment when 2.2.X did not yet contain the fix; the labeling convention existed and the parity check did not.

Backports can carry divergent semantics as well as divergent presence. When a feature or fix is ported across branches, diff the ports against each other, not just against their own prior versions. undici's 6.x and 8.x ports of PR #4955 were authored inside the same minute by the same author with the same subject line, and one of them stripped a cumulative-bound check present in the other. The same-author, same-minute, same-subject metadata reads as fidelity; the file contents are the only authority on whether it is.

Kinship

Parallel Implementation Gap. The closest neighbor. Both patterns describe a CVE where one surface in a project is gated and another is not, and both read in review as "the check exists in the code and does not reach the call site that needs it." The difference is the axis along which the two surfaces differ. Parallel-implementation-gap names forks of a contract across modules, where the invariant lives in one author's imports and not the other's, and the fix is a convergence point both call sites can route through. Backport-gap names copies of an implementation across branches of one tree, where the invariant exists in the code and the question is whether the picker brought the commit to every branch. The remedies disagree: the former is architectural (route both surfaces through one helper), the latter is procedural (enforce commit parity at release time).

The push shipped. The tags cut together. The branch that got the commit and the branch that did not are both in the CVE record.