CVE-2025-40183

bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}

7.5 high EPSS 0.63%

Published 12 Nov 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-40183

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40183 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.63%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 51.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 15 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from b4ab31414970a7a03a5d55d75083f2c101a30592, before 3fba965a9aac0fa3cbd8138436a37af9ab466d79
affected from b4ab31414970a7a03a5d55d75083f2c101a30592, before 057764172fcc6ee2ccb6c41351a55a9f054dc8fd
affected from b4ab31414970a7a03a5d55d75083f2c101a30592, before 2e67c2037382abb56497bb9d7b7e10be04eb5598
affected from b4ab31414970a7a03a5d55d75083f2c101a30592, before b6bfe44b6dbb14a31d86c475cdc9c7689534fb09
affected from b4ab31414970a7a03a5d55d75083f2c101a30592, before f36a305d30f557306d87c787ddffe094ac5dac89
affected from b4ab31414970a7a03a5d55d75083f2c101a30592, before 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8
affected from b4ab31414970a7a03a5d55d75083f2c101a30592, before 23f3770e1a53e6c7a553135011f547209e141e72
Other versions: unaffected
Linux
affected 5.10
unaffected before 5.10
unaffected from 5.10.246 up to and including 5.10.*
unaffected from 5.15.195 up to and including 5.15.*
unaffected from 6.1.157 up to and including 6.1.*
unaffected from 6.6.113 up to and including 6.6.*
unaffected from 6.12.54 up to and including 6.12.*
unaffected from 6.17.4 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40183 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40183

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40183
trivy image --scanners vuln IMAGE | grep CVE-2025-40183

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40183 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.