Kernel Kit / Infix / v26.10.0latest
CVE-2026-98966
—unknownlinux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach linux · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
bonding: fix the program leak when XDP is replaced
We need to release the reference on the old BPF prog, whether we are going to no-prog, or replacing the prog with another.
Spotted by AI while running tests for the propagation series (leaked programs were accumulating). Selftest will come in the net-next series to avoid conflicts.
Published 2026-10-23NVD
The build is affected but the leak is not reachable through the product's management interfaces. bond_xdp_set() in output/build/linux-6.18.60/drivers/net/bonding/bond_main.c still only releases the old BPF program when XDP is being removed, not when it is replaced, and CONFIG_BONDING=m builds it.
An operator can create bond devices through the infix-if-lag YANG model, but bond_xdp_set() only runs when an XDP program is attached to the bond via ndo_bpf. I found no XDP or BPF handling in src/confd/src, infix-if-lag.yang or the finit service directory, so reaching it needs a root shell plus a BPF program brought onto the device.
The path is local and privileged only, not reachable from a network interface, and the impact is a kernel memory leak per program replacement.
Evidence 11
In `bond_xdp_set()`, `bpf_prog_put(old_prog)` sits only in the `else if (old_prog)` branch taken when `prog` is NULL. Replacing one program with another takes the `if (prog)` branch and never drops the old reference, which is the unfixed behaviour the CVE describes.
output/build/linux-6.18.60/drivers/net/bonding/bond_main.c:5708-5713
`bond_xdp_set()` is called only from the bond's `ndo_bpf` handler `bond_xdp` (registered at line 5942), i.e. only when an XDP program is attached to or detached from a bond device.
output/build/linux-6.18.60/drivers/net/bonding/bond_main.c:5744
`CONFIG_BONDING=m`: the bonding driver is built as a module.
output/build/linux-6.18.60/.config:2117
`CONFIG_BONDING=m` is set deliberately in the product defconfig, alongside `CONFIG_BPF_SYSCALL=y` at line 6.
board/x86_64/linux_defconfig:276
`CONFIG_BPF_SYSCALL=y` (and `CONFIG_BPF=y` at line 111): the kernel can load BPF/XDP programs, so the path is functional if driven from userspace.
output/build/linux-6.18.60/.config:118
`drivers/net/bonding/bond_main.o` was produced by the build.
output/objects.txt:22176
A case-insensitive search for `bond` returns no entries, so none of the applied patches is named for bonding.
output/build/linux-6.18.60/.applied_patches_list
confd creates bond devices with `ip link ... type bond min_links 1` from the LAG YANG configuration, so the bonding module is loaded when an operator configures a LAG.
src/confd/src/if-lag.c:99
The LAG model exposes mode (`static`/`lacp`) and related settings; a search of this file for `xdp` or `bpf` finds nothing.
src/confd/yang/confd/infix-if-lag.yang:38-60
A case-insensitive search for `xdp` or `bpf` across confd's sources returns no matches, so no management code attaches XDP programs to any interface.
src/confd/src
`BR2_PACKAGE_BPFTOOL` and `BR2_PACKAGE_LIBBPF` (line 659) are not set; only `BR2_PACKAGE_IPROUTE2=y` (line 3264) is in the image, so no dedicated BPF tooling ships.
output/.config:618
Version and patches
The tree's 6.18.60 source contains the pre-fix code: bond_xdp_set() releases old_prog only on the no-program path (bond_main.c:5708-5713). No applied patch has bond in its name in .applied_patches_list.
I could not read the upstream fix commits (184b5ddf82d4, bba6b1b086f9) or the CNA's affected range from this tree, so the fixed stable version is not confirmed. The judgement that the build is affected rests on the source matching the CVE description.
Recommendation
Document as not exposed and do not prioritise a dedicated backport. Pick up the fix with the next routine 6.18.y stable bump that includes it. Severity is low: a kernel memory leak that needs root and repeated XDP program replacement on a bond.
Open questions
Which 6.18.y release carries the fix was not determined; the upstream commits are not available in this tree.
I searched confd's sources, the LAG YANG model and the finit service directory for XDP/BPF use, but not every other package in the image. A third-party package or container that attaches XDP programs to a bond would change the verdict.
Infix can run operator-supplied containers; whether a privileged container with host networking could attach XDP to a bond was not examined.
Patches were checked by name only, not by content, though the source itself shows the fix is absent.
Members of Kernel Kit decide. Sign in if you are one.