bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-53089

7.8high

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

bpf: Fix use-after-free in offloaded map/prog info fill

When querying info for an offloaded BPF map or program, bpf_map_offload_info_fill_ns() and bpf_prog_offload_info_fill_ns() obtain the network namespace with get_net(dev_net(offmap->netdev)). However, the associated netdev's netns may be racing with teardown during netns destruction. If the netns refcount has already reached 0, get_net() performs a refcount_t increment on 0, triggering:

  refcount_t: addition on 0; use-after-free.

Although rtnl_lock and bpf_devs_lock ensure the netdev pointer remains valid, they cannot prevent the netns refcount from reaching zero.

Fix this by using maybe_get_net() instead of get_net(). maybe_get_net() uses refcount_inc_not_zero() and returns NULL if the refcount is already zero, which causes ns_get_path_cb() to fail and the caller to return -ENOENT -- the correct behavior when the netns is being destroyed.

Published 2026-06-24NVD

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 8
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-11 · settles 4 of 8

Fable 5.1 · high confidence · 2026-11-09

The upstream fix for CVE-2026-53089 (replace get_net() with maybe_get_net() in bpf_prog_offload_info_fill_ns() and bpf_map_offload_info_fill_ns()) is already present in the linux 6.18.60 source used by this build: both call sites in kernel/bpf/offload.c use maybe_get_net() with a NULL check, exactly as in the stable fix commits.

None of the 139 Infix patches touch kernel/bpf/offload.c, so this is a stable backport in the 6.18.60 release that NVD's version range does not reflect.

As secondary evidence, the only in-tree drivers that register BPF offload devices (netdevsim, nfp) are both disabled in the kernel config, so the vulnerable path would be unreachable even without the fix.

Evidence 6

…/ is output/build/linux-6.18.60/

  1. bpf_prog_offload_info_fill_ns() uses maybe_get_net(dev_net(aux->offload->netdev)) followed by ns = net ? &net->ns : NULL — the fixed code

    …/kernel/bpf/offload.c:448

  2. bpf_map_offload_info_fill_ns() uses maybe_get_net(dev_net(args->offmap->netdev)) with NULL check — the fixed code

    …/kernel/bpf/offload.c:659

  3. None of the 139 applied Infix patches modify kernel/bpf/offload.c (grep for the path across patches/linux/6.18.60/*.patch returns nothing), so the fix comes from the upstream 6.18.60 stable release itself

    …/.applied_patches_list

  4. # CONFIG_NFP is not set — the Netronome NFP driver, one of only two in-tree BPF offload providers, is not built

    …/.config:2277

  5. # CONFIG_NETDEVSIM is not set — the netdevsim test driver, the other BPF offload provider, is not built

    …/.config:2555

  6. CONFIG_BPF_SYSCALL=y — kernel/bpf/offload.o is compiled (output/objects.txt:21952), but with no offload-capable netdev driver, aux->offload / offmap->netdev can never be set

    …/.config:118

Version and patches

CVE fix: 'bpf: Fix use-after-free in offloaded map/prog info fill' (maybe_get_net() in kernel/bpf/offload.c), backported to stable branches via the listed git.kernel.org commits. The 6.18.60 tarball used here already contains the fixed code at kernel/bpf/offload.c:448 and :659. No local Infix patch touches this file; NVD's CPE range (linux_kernel 6.18.60) is stale relative to the stable backport.

Recommendation

No action required; document as not applicable (fix already present in 6.18.60 source). Optionally add a Buildroot IGNORE_CVES entry for CVE-2026-53089 to silence the scanner.

Open questions

None. The exact stable commit ID that landed in 6.18.60 is not recoverable from the tarball alone, but the fixed code is unambiguously present.

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