CVE Database›CVE-2025-40183

CVE-2025-40183

kernel: bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}

Loading…

Severity

Low

Red Hat Product Security

4.4

CVSS 3.1

Review impact separately from score.

Published · November 12, 2025

Updated · July 30, 2026

Description

A metadata structure leak was found in the Linux kernel's BPF redirect neighbor helper functions for both IPv4 and IPv6. A local user running BPF programs can trigger this issue when redirecting packets that already have metadata_dst objects attached (such as vxlan decapsulated packets), causing the helper to overwrite the existing destination entry without releasing it first. This creates permanent memory leaks that accumulate over time, leading to resource exhaustion and denial of service.

Statement

When vxlan decapsulates packets, it attaches metadata_dst objects via fake dst entries. The bpf_redirect_neigh helper then calls skb_dst_set to attach its own dst for the redirect, but never drops the existing reference first. Each redirect leaks the vxlan metadata_dst. This manifests in Cilium's egress gateway feature where pod traffic flows through vxlan tunnels then gets BPF-redirected—kmalloc-256 slab usage grows continuously as leaked structures accumulate.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4.4
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

CWE-771 · Missing Reference to Active Allocated Resource