CVE-2025-40183

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-40183
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40183.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40183
Downstream
Published
2025-11-12T21:56:27.429Z
Modified
2025-11-27T19:34:46.597289Z
Summary
bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix metadatadst leak _bpfredirectneigh_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 bpfredirectneigh() 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 metadatadst object and attaches it through a fake dst entry to the skb. The latter was never released though given bpfredirectneigh() was merely setting the new dst entry via skbdst_set() without dropping an existing one first.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/ee626f5d79d5817bb21d6f048dc0da4c4e383443/cves/2025/40xxx/CVE-2025-40183.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4ab31414970a7a03a5d55d75083f2c101a30592
Fixed
3fba965a9aac0fa3cbd8138436a37af9ab466d79
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4ab31414970a7a03a5d55d75083f2c101a30592
Fixed
057764172fcc6ee2ccb6c41351a55a9f054dc8fd
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4ab31414970a7a03a5d55d75083f2c101a30592
Fixed
2e67c2037382abb56497bb9d7b7e10be04eb5598
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4ab31414970a7a03a5d55d75083f2c101a30592
Fixed
b6bfe44b6dbb14a31d86c475cdc9c7689534fb09
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4ab31414970a7a03a5d55d75083f2c101a30592
Fixed
f36a305d30f557306d87c787ddffe094ac5dac89
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4ab31414970a7a03a5d55d75083f2c101a30592
Fixed
7404ce888a45eb7da0508b7cbbe6f2e95302eeb8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b4ab31414970a7a03a5d55d75083f2c101a30592
Fixed
23f3770e1a53e6c7a553135011f547209e141e72

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.10.246
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.195
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.157
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.113
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.54
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.4