# CVE-2025-40183: bpf: Fix metadata\_dst leak \_\_bpf\_redirect\_neigh\_v{4,6}

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.93% (percentile 59, 2026-11-26)
- **Published:** 2025-11-12T21:56:27.429Z
- **Modified:** 2026-10-19T21:10:00.160Z

## 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

## 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

- Linux: \>= b4ab31414970a7a03a5d55d75083f2c101a30592, \< 3fba965a9aac0fa3cbd8138436a37af9ab466d79; \>= b4ab31414970a7a03a5d55d75083f2c101a30592, \< 057764172fcc6ee2ccb6c41351a55a9f054dc8fd; \>= b4ab31414970a7a03a5d55d75083f2c101a30592, \< 2e67c2037382abb56497bb9d7b7e10be04eb5598; \>= b4ab31414970a7a03a5d55d75083f2c101a30592, \< b6bfe44b6dbb14a31d86c475cdc9c7689534fb09; \>= b4ab31414970a7a03a5d55d75083f2c101a30592, \< f36a305d30f557306d87c787ddffe094ac5dac89; \>= b4ab31414970a7a03a5d55d75083f2c101a30592, \< 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8; \>= b4ab31414970a7a03a5d55d75083f2c101a30592, \< 23f3770e1a53e6c7a553135011f547209e141e72 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 23f3770e1a53e6c7a553135011f547209e141e72 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/3fba965a9aac0fa3cbd8138436a37af9ab466d79>
- other: <https://git.kernel.org/stable/c/057764172fcc6ee2ccb6c41351a55a9f054dc8fd>
- other: <https://git.kernel.org/stable/c/2e67c2037382abb56497bb9d7b7e10be04eb5598>
- other: <https://git.kernel.org/stable/c/b6bfe44b6dbb14a31d86c475cdc9c7689534fb09>
- other: <https://git.kernel.org/stable/c/f36a305d30f557306d87c787ddffe094ac5dac89>
- other: <https://git.kernel.org/stable/c/7404ce888a45eb7da0508b7cbbe6f2e95302eeb8>
- other: <https://git.kernel.org/stable/c/23f3770e1a53e6c7a553135011f547209e141e72>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40183>

HTML: <https://flawdb.com/CVE-2025-40183> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40183>
