Kernel Kit / Infix / v26.10.0latest
CVE-2026-74354
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: Take mmap_lock in zap_pages()
zap_vma_range() requires the owning mm's mmap_lock to be held.
Taking mmap_read_lock under arena->lock would AB-BA against arena_vm_close() and arena_map_mmap(), both of which run with mmap_write_lock held and then acquire arena->lock. Instead drop arena->lock, mmget_not_zero() the vma's mm, take mmap_read_lock, and re-resolve the vma via find_vma() since it may have been unmapped or replaced while waiting.
Track processed vmls with a per-call generation in vml->zap_gen and serialize zap_pages() callers with a new arena->zap_mutex so concurrent callers on different uaddr ranges do not mark each other's vmls processed before the zap is done.
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 vulnerable code is in this build and is not fixed: zap_pages() in kernel/bpf/arena.c still walks arena->vma_list and zaps each vma without taking the owning mm's mmap_lock, and arena.o is compiled in because CONFIG_BPF_SYSCALL=y.
Reaching it requires creating a BPF_MAP_TYPE_ARENA map, which the kernel gates on CAP_BPF, and unprivileged BPF is off by default (CONFIG_BPF_UNPRIV_DEFAULT_OFF=y). I found nothing in the Infix tree outside the kernel and Buildroot sources that uses a BPF arena, and no BPF reference in the rootfs etc overlay or the confd YANG models.
So the path is not run by default and cannot be enabled through NETCONF/RESTCONF, the CLI or the web UI. An attacker would need a root (or CAP_BPF) shell on the device to load their own arena-using BPF program, and it is not reachable from a network interface.
Evidence 12
`zap_pages()` is the pre-fix version: it iterates `arena->vma_list` and calls `zap_page_range_single()` with no `mmap_read_lock`, `mmget_not_zero()`, `find_vma()` re-resolution, `zap_gen` or `zap_mutex`. None of those fix symbols appear anywhere in the file.
output/build/linux-6.18.60/kernel/bpf/arena.c:518-525
`arena_free_pages()` calls `zap_pages()` while holding `arena->lock`, which is the vulnerable call pattern the CVE describes.
output/build/linux-6.18.60/kernel/bpf/arena.c:545-566
`arena.o` is built under `CONFIG_BPF_SYSCALL`.
output/build/linux-6.18.60/kernel/bpf/Makefile:19
`CONFIG_BPF_SYSCALL=y` (also `CONFIG_BPF_JIT=y` at line 101 and `CONFIG_MMU=y`, `CONFIG_64BIT=y` at lines 287-288).
output/build/linux-6.18.60/.config:100
`output/build/linux-6.18.60/kernel/bpf/arena.o` was produced, so the code is in the kernel image.
output/objects.txt:18959
`bpf_jit_supports_arena()` returns true on arm64, so arena maps are usable on this target.
output/build/linux-6.18.60/arch/arm64/net/bpf_jit_comp.c:3064-3067
Creating a `BPF_MAP_TYPE_ARENA` map requires `bpf_token_capable(token, CAP_BPF)`.
output/build/linux-6.18.60/kernel/bpf/syscall.c:1490-1492
`CONFIG_BPF_UNPRIV_DEFAULT_OFF=y`: unprivileged `bpf()` is disabled by default.
output/build/linux-6.18.60/.config:104
The only BPF-related Buildroot symbols set are `BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS` and `BR2_PACKAGE_BPFTRACE_ARCH_SUPPORTS`; no bpftool, bpftrace or libbpf package is selected.
output/.config:619-621
A case-insensitive search for `bpf` returned no matches, so no default service config and no YANG node refers to BPF.
board/common/rootfs/etc, src/confd/yang
No file mentions `BPF_MAP_TYPE_ARENA` or `bpf_arena`, so no Infix component ships an arena-using BPF program.
tree-wide search (excluding the kernel build dir and `buildroot/`)
No applied patch name mentions `bpf`, so none of the 139 patches backports the fix.
output/build/linux-6.18.60/.applied_patches_list
Version and patches
The source for 6.18.60 in output/build/linux-6.18.60/kernel/bpf/arena.c does not contain the fix (no zap_gen, zap_mutex, or mmap_read_lock in zap_pages()), and no applied patch touches BPF. I could not read the upstream commits 36b1d997866f and 80b89d0226a0 from here, so the exact affected range and the first fixed 6.18.y release are not confirmed; the source inspection alone shows this build is unfixed.
Recommendation
Not urgent: document as not exposed in the shipped configuration (needs CAP_BPF/root on the device, no management-interface path, not network reachable).
Pick up the fix with the next routine bump to the 6.18.y stable release that contains it, since the score is 7.8 and the code is compiled in. If arena-using BPF programs or container workloads granted CAP_BPF are ever added to the product, re-triage.
Open questions
Which 6.18.y release first carries the fix: the upstream commits were not available offline.
Whether Infix containers can be granted CAP_BPF through the container YANG configuration was not checked; a container with that capability in the initial user namespace could reach the path. My search for bpf in src/confd/yang found nothing, but I did not review the container capability settings specifically.
The bpf search over patches/linux returned nothing and I did not confirm that directory exists; the "no backport" conclusion rests on .applied_patches_list and the source itself.
Members of Kernel Kit decide. Sign in if you are one.