Kernel Kit / Infix / v26.10.0latest
CVE-2026-74314
7.8highlinux6.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
bpf: Cancel special fields on map value recycle
Map update and delete paths currently call bpf_obj_free_fields() when a value is being replaced or recycled. That makes field destruction depend on the context of the update/delete operation. For tracing programs this can include NMI context, where referenced kptr destructors, uptr unpinning, and graph root destruction are not generally safe.
Introduce bpf_obj_cancel_fields() for the reusable-value path. It only performs NMI-safe cleanup for timer, workqueue, and task_work fields. Fields that need full destruction are left attached to the recycled value and are destroyed by the final cleanup path instead.
Switch array and hashtab update/delete/recycle paths to this cancel helper. Keep bpf_obj_free_fields() for final map destruction and for bpf_mem_alloc destructors. Preallocated hashtabs do not have allocator destructors, so teardown continues to walk the normal and extra elements and fully destroy their fields.
This deliberately relaxes the eager-free semantics of map update/delete for special fields. Programs that relied on a recycled map slot becoming empty immediately after update/delete were relying on behavior that cannot be implemented safely from every BPF execution context without offloading arbitrary destructors.
There is a chance this change breaks programs making assumptions regarding the eager freeing of fields. If so, we can relax semantics to cancellation only when irqs_disabled() is true in the future. However, theoretically, map values that get reused eagerly already have weaker guarantees as parallel users can recreate freed fields before the new element becomes visible again.
Published 2026-08-15NVD
CVSS 3.1Local · low privileges · no user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
What it costs
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Scope
- Unchanged
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fable 5.2 · medium confidence · 2026-11-19
The unfixed code is compiled into this kernel: array_map_update_elem() and the hashtab update/delete/recycle paths still call bpf_obj_free_fields(), and bpf_obj_cancel_fields() does not exist anywhere in the tree. No applied patch mentions the fix.
Nothing in the shipped image reaches it. No Infix source loads BPF programs or creates BPF maps, and bpftool, bpftrace, bcc and libbpf are not in the image. Unprivileged BPF is off by default (CONFIG_BPF_UNPRIV_DEFAULT_OFF=y), and container support (the only YANG route to handing out capabilities) is not built into this image.
Reaching it would require a root shell (CAP_BPF plus CAP_PERFMON) and a BPF loader brought onto the device. It is a local-only issue, not reachable from a network interface.
Two further factors narrow it: CONFIG_DEBUG_INFO_BTF and CONFIG_ARM64_PSEUDO_NMI are both unset. Without kernel BTF I believe the referenced-kptr and graph-root fields the CVE is about cannot be created, but I did not trace that through the verifier.
Evidence 12
`array_map_update_elem()` still calls `bpf_obj_free_fields()` on the value being replaced, which is the pre-fix behaviour.
output/build/linux-6.18.60/kernel/bpf/arraymap.c:383,391
`check_and_free_fields()` calls `bpf_obj_free_fields()` and is used from `htab_map_update_elem()`, `free_htab_elem()` and `htab_lru_push_free()`; the fix switches these to a cancel helper.
output/build/linux-6.18.60/kernel/bpf/hashtab.c:856-873,1266,1270,1279
`bpf_obj_free_fields()` runs kptr destructors, `unpin_uptr_kaddr()` and list/rbtree root frees. A search of `kernel/` and `include/` finds no `bpf_obj_cancel_fields`.
output/build/linux-6.18.60/kernel/bpf/syscall.c:812-870
None of the 139 applied patches matches `bpf`, the fix commit IDs, the fix subject or the CVE ID; the same search of `patches/`, `board/` and `package/` is also empty.
output/build/linux-6.18.60/.applied_patches_list
`kernel/bpf/syscall.o`, `arraymap.o` and `hashtab.o` were built.
output/objects.txt:18927,18932,18964
`CONFIG_BPF_SYSCALL=y` and `CONFIG_BPF_UNPRIV_DEFAULT_OFF=y`: the bpf() syscall exists but unprivileged users cannot load programs or create maps by default.
output/build/linux-6.18.60/.config:100,104
`CONFIG_KPROBES=y`, `CONFIG_KPROBE_EVENTS=y` and `CONFIG_BPF_EVENTS=y`: tracing BPF programs are supported by the kernel for a privileged user.
output/build/linux-6.18.60/.config:694,8094,8098
`CONFIG_ARM64_PSEUDO_NMI` is not set and `CONFIG_PAHOLE_VERSION=0`; `CONFIG_DEBUG_INFO_BTF` does not appear in the file at all, so there is no vmlinux BTF.
output/build/linux-6.18.60/.config:24,546
`BR2_PACKAGE_BCC`, `BR2_PACKAGE_BPFTOOL`, `BR2_PACKAGE_BPFTRACE`, `BR2_PACKAGE_LIBBPF` and `BR2_PACKAGE_LINUX_TOOLS_BPFTOOL` are not set, so no BPF loader tooling is in the image.
output/.config:616,620,622,659,4387
Outside `output/` and `buildroot/`, the only mentions of BPF in the Infix tree are kernel defconfig lines; nothing under `src/`, `package/` or `board/common/rootfs/` loads BPF or creates maps.
board/aarch64/linux_defconfig:6,7,28,148,252
`BR2_PACKAGE_CONMON` and `BR2_PACKAGE_CRUN` are not set and no podman symbol is present, so the container runtime is not in this image.
output/.config:3641,3646
confd container support defaults to `enable_containers=no`. The `privileged` and `capabilities` leaves in `infix-containers.yang`, which emit `--privileged` and `--cap-add`, are therefore not an available route here.
src/confd/configure.ac:45-47; src/confd/src/containers.c:137-143
Version and patches
Tree is Linux 6.18.60 (output/build/linux-6.18.60/Makefile: VERSION = 6, PATCHLEVEL = 18, SUBLEVEL = 60). The NVD record is still in status Received and the upstream fix commits (9ea734e2cc01, a3a81d247651) could not be fetched from this tree, so the exact affected range and fixed stable version are not confirmed. The fix is not present in the source, and none of the 139 applied patches touches kernel/bpf/. The build is treated as affected.
Recommendation
No urgent backport is needed for this image. Document it as not exposed: reaching the code requires root and a BPF loader that the product does not ship.
Pick up the fix through the next routine 6.18.y stable bump that contains commit 9ea734e2cc01 or a3a81d247651.
Re-evaluate if a build enables container support, since privileged or added capabilities such as CAP_BPF/CAP_SYS_ADMIN would let a container workload use bpf(). Re-evaluate also if libbpf/bpftool/bpftrace, CONFIG_DEBUG_INFO_BTF or CONFIG_ARM64_PSEUDO_NMI are enabled.
Open questions
The exact affected range and the first fixed 6.18.y release are unknown; the upstream commits are not available offline.
I did not prove that the lack of vmlinux BTF makes the dangerous field types (referenced kptrs, list/rbtree roots) impossible to create. It is a mitigating observation, not the basis of the verdict.
Other Infix defconfigs (non-minimal, with containers enabled) were not reviewed and may warrant USED_WHEN_ENABLED via the infix-containers privileged and capabilities leaves.
Two of my search commands were blocked by the sandbox (one combining cd with git log, one combining cd with rg). I re-ran the searches without cd; the git log history check was skipped and was not needed for the conclusion.
Members of Kernel Kit decide. Sign in if you are one.