CVE-2025-40183
bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}
Mitigation
- Upgrade Linux to 23f3770e1a53e6c7a553135011f547209e141e72 or later.
Who should check
- Anyone running Linux >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 3fba965a9aac0fa3cbd8138436a37af9ab466d79; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 057764172fcc6ee2ccb6c41351a55a9f054dc8fd; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 2e67c2037382abb56497bb9d7b7e10be04eb5598; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < b6bfe44b6dbb14a31d86c475cdc9c7689534fb09; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < f36a305d30f557306d87c787ddffe094ac5dac89; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 23f3770e1a53e6c7a553135011f547209e141e72
- Anyone running Linux 5.10
Vulnerability facts
- Affected
- Linux >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 3fba965a9aac0fa3cbd8138436a37af9ab466d79; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 057764172fcc6ee2ccb6c41351a55a9f054dc8fd; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 2e67c2037382abb56497bb9d7b7e10be04eb5598; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < b6bfe44b6dbb14a31d86c475cdc9c7689534fb09; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < f36a305d30f557306d87c787ddffe094ac5dac89; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 23f3770e1a53e6c7a553135011f547209e141e72; Linux 5.10
- Fixed in
- Linux 3fba965a9aac0fa3cbd8138436a37af9ab466d79, Linux 057764172fcc6ee2ccb6c41351a55a9f054dc8fd, Linux 2e67c2037382abb56497bb9d7b7e10be04eb5598, Linux 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8, Linux 23f3770e1a53e6c7a553135011f547209e141e72
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.93% chance of exploitation in 30 days (percentile 59, 2026-11-26)
- Modified
Description
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 gateway feature which forces outgoing K8s Pod traffic to pass through dedicated egress gateways which then SNAT the traffic in order to interact with stable IPs outside the cluster. The traffic is directed to the gateway via vxlan tunnel in collect md mode. A recent BPF change utilized the bpf_redirect_neigh() helper to forward packets after the arrival and decap on vxlan, which turned out over time that the kmalloc-256 slab usage in kernel was ever-increasing. The issue was that vxlan allocates the metadata_dst object and attaches it through a fake dst entry to the skb. The latter was never released though given bpf_redirect_neigh() was merely setting the new dst entry via skb_dst_set() without dropping an existing one first.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 3fba965a9aac0fa3cbd8138436a37af9ab466d79; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 057764172fcc6ee2ccb6c41351a55a9f054dc8fd; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 2e67c2037382abb56497bb9d7b7e10be04eb5598; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < b6bfe44b6dbb14a31d86c475cdc9c7689534fb09; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < f36a305d30f557306d87c787ddffe094ac5dac89; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 23f3770e1a53e6c7a553135011f547209e141e72 | — | cvelist |
| Linux | 5.10 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-40183. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-40183.md Affected: Linux >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 3fba965a9aac0fa3cbd8138436a37af9ab466d79; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 057764172fcc6ee2ccb6c41351a55a9f054dc8fd; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 2e67c2037382abb56497bb9d7b7e10be04eb5598; >= b4ab31414970a7a03a5d55d… Fixed in: Linux 3fba965a9aac0fa3cbd8138436a37af9ab466d79, Linux 057764172fcc6ee2ccb6c41351a55a9f054dc8fd, Linux 2e67c2037382abb56497bb9d7b7e10be04eb5598, Linux 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8, Linux 23f3770e1a53e6c7a553135011f547209e141e72 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- https://git.kernel.org/stable/c/3fba965a9aac0fa3cbd8138436a37af9ab466d79
- https://git.kernel.org/stable/c/057764172fcc6ee2ccb6c41351a55a9f054dc8fd
- https://git.kernel.org/stable/c/2e67c2037382abb56497bb9d7b7e10be04eb5598
- https://git.kernel.org/stable/c/b6bfe44b6dbb14a31d86c475cdc9c7689534fb09
- https://git.kernel.org/stable/c/f36a305d30f557306d87c787ddffe094ac5dac89
- https://git.kernel.org/stable/c/7404ce888a45eb7da0508b7cbbe6f2e95302eeb8
- https://git.kernel.org/stable/c/23f3770e1a53e6c7a553135011f547209e141e72
FAQ
Is CVE-2025-40183 being exploited?
There is no confirmed exploitation: CVE-2025-40183 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.93% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-40183?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-40183?
Linux >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 3fba965a9aac0fa3cbd8138436a37af9ab466d79; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 057764172fcc6ee2ccb6c41351a55a9f054dc8fd; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 2e67c2037382abb56497bb9d7b7e10be04eb5598; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < b6bfe44b6dbb14a31d86c475cdc9c7689534fb09; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < f36a305d30f557306d87c787ddffe094ac5dac89; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8; >= b4ab31414970a7a03a5d55d75083f2c101a30592, < 23f3770e1a53e6c7a553135011f547209e141e72; Linux 5.10.
Is there a fix for CVE-2025-40183?
Yes. Fixed in Linux 3fba965a9aac0fa3cbd8138436a37af9ab466d79, Linux 057764172fcc6ee2ccb6c41351a55a9f054dc8fd, Linux 2e67c2037382abb56497bb9d7b7e10be04eb5598, Linux 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8, Linux 23f3770e1a53e6c7a553135011f547209e141e72. Upgrade Linux to 23f3770e1a53e6c7a553135011f547209e141e72 or later.
How do I check if I'm affected by CVE-2025-40183?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.