bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98376

7.8high

linux6.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: Use array_map_meta_equal for percpu array inner map replacement

percpu_array_map_ops.map_meta_equal points to the generic bpf_map_meta_equal(), which does not compare max_entries. When a percpu array serves as an inner map, replacing it with one that has fewer max_entries bypasses the check. Since percpu_array_map_gen_lookup() inlines the original template's index_mask as a JIT immediate, a lookup on the replacement map can access pptrs[] out of bounds.

Point percpu_array_map_ops.map_meta_equal to array_map_meta_equal(), which already enforces the max_entries equality check.

Add a selftest to verify that replacing a percpu array inner map with a differently-sized one is rejected.

Published 2026-10-09NVD

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

References 1
Review Av26.10.0aarch64_minimalNot exposedThe fix is not in this tree: percpu_array_map_ops.map_meta_equal still points to the generic bpf_map_meta_equal() in kernel/bpf/arraymap.c, and the file is compiled with CONFIG_BPF_SYSCALL=y, CONFIG_BPF_JIT=y and CONFIG_SMP=y on arm64, where the inlined per-CPU lookup is active.This build follows it · open the review →

Members of Kernel Kit decide. Sign in if you are one.