In the Linux kernel, the following vulnerability has been resolved: bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6} Cilium has a BPF egress… (CVE-2025-40183)
A vulnerability in the Linux kernel related to the bpf_redirect_neigh() helper caused a memory leak of metadata_dst objects in the kernel's kmalloc-256 slab. This issue affected the BPF egress gateway feature used by Cilium for Kubernetes pod traffic, where vxlan tunnels allocate metadata_dst objects that were not properly released. The leak occurs because bpf_redirect_neigh() sets a new destination entry without releasing the previous one, leading to increasing kernel memory usage over time.
AI Analysis
Technical Summary
The Linux kernel vulnerability CVE-2025-40183 involves a memory leak in the bpf_redirect_neigh() helper function used in BPF egress gateway implementations such as Cilium's. Specifically, when forwarding packets via vxlan tunnels in collect metadata mode, the kernel allocates metadata_dst objects attached to skb buffers. However, bpf_redirect_neigh() replaces the skb's destination entry without freeing the existing metadata_dst, causing a persistent memory leak in the kernel's kmalloc-256 slab cache. This issue was resolved by fixing the handling of the metadata_dst object to ensure proper release before setting a new destination entry.
Potential Impact
The vulnerability leads to a kernel memory leak that can cause resource exhaustion over time, potentially resulting in denial of service due to kernel memory depletion. There is no direct confidentiality or integrity impact reported. The issue affects systems using the BPF egress gateway feature with vxlan tunnels, such as Kubernetes clusters using Cilium for network traffic management.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should monitor kernel memory usage on affected systems and consider disabling or limiting the use of the BPF egress gateway feature with vxlan tunnels if feasible. Follow updates from the Linux kernel maintainers and Cilium project for patches addressing this issue.
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6} Cilium has a BPF egress… (CVE-2025-40183)
Description
A vulnerability in the Linux kernel related to the bpf_redirect_neigh() helper caused a memory leak of metadata_dst objects in the kernel's kmalloc-256 slab. This issue affected the BPF egress gateway feature used by Cilium for Kubernetes pod traffic, where vxlan tunnels allocate metadata_dst objects that were not properly released. The leak occurs because bpf_redirect_neigh() sets a new destination entry without releasing the previous one, leading to increasing kernel memory usage over time.
CVSS v3.1
Score 7.5high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability CVE-2025-40183 involves a memory leak in the bpf_redirect_neigh() helper function used in BPF egress gateway implementations such as Cilium's. Specifically, when forwarding packets via vxlan tunnels in collect metadata mode, the kernel allocates metadata_dst objects attached to skb buffers. However, bpf_redirect_neigh() replaces the skb's destination entry without freeing the existing metadata_dst, causing a persistent memory leak in the kernel's kmalloc-256 slab cache. This issue was resolved by fixing the handling of the metadata_dst object to ensure proper release before setting a new destination entry.
Potential Impact
The vulnerability leads to a kernel memory leak that can cause resource exhaustion over time, potentially resulting in denial of service due to kernel memory depletion. There is no direct confidentiality or integrity impact reported. The issue affects systems using the BPF egress gateway feature with vxlan tunnels, such as Kubernetes clusters using Cilium for network traffic management.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should monitor kernel memory usage on affected systems and consider disabling or limiting the use of the BPF egress gateway feature with vxlan tunnels if feasible. Follow updates from the Linux kernel maintainers and Cilium project for patches addressing this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-553v-hjpm-738q
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40183"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d69c2644c7f847a588
Added to database: 07/30/2026, 15:50:46 UTC
Last enriched: 07/30/2026, 16:53:54 UTC
Last updated: 09/10/2026, 19:38:45 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.