{"api_version":"1","generated_at":"2026-08-07T00:15:44+00:00","cve":"CVE-2025-40183","urls":{"html":"https://cve.report/CVE-2025-40183","api":"https://cve.report/api/cve/CVE-2025-40183.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40183","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40183"},"summary":{"title":"bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}\n\nCilium has a BPF egress gateway feature which forces outgoing K8s Pod\ntraffic to pass through dedicated egress gateways which then SNAT the\ntraffic in order to interact with stable IPs outside the cluster.\n\nThe traffic is directed to the gateway via vxlan tunnel in collect md\nmode. A recent BPF change utilized the bpf_redirect_neigh() helper to\nforward packets after the arrival and decap on vxlan, which turned out\nover time that the kmalloc-256 slab usage in kernel was ever-increasing.\n\nThe issue was that vxlan allocates the metadata_dst object and attaches\nit through a fake dst entry to the skb. The latter was never released\nthough given bpf_redirect_neigh() was merely setting the new dst entry\nvia skb_dst_set() without dropping an existing one first.","state":"PUBLISHED","assigner":"Linux","published_at":"2025-11-12 22:15:45","updated_at":"2026-07-30 06:24:16"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.5","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","data":{"baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/23f3770e1a53e6c7a553135011f547209e141e72","name":"https://git.kernel.org/stable/c/23f3770e1a53e6c7a553135011f547209e141e72","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b6bfe44b6dbb14a31d86c475cdc9c7689534fb09","name":"https://git.kernel.org/stable/c/b6bfe44b6dbb14a31d86c475cdc9c7689534fb09","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3fba965a9aac0fa3cbd8138436a37af9ab466d79","name":"https://git.kernel.org/stable/c/3fba965a9aac0fa3cbd8138436a37af9ab466d79","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f36a305d30f557306d87c787ddffe094ac5dac89","name":"https://git.kernel.org/stable/c/f36a305d30f557306d87c787ddffe094ac5dac89","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7404ce888a45eb7da0508b7cbbe6f2e95302eeb8","name":"https://git.kernel.org/stable/c/7404ce888a45eb7da0508b7cbbe6f2e95302eeb8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2e67c2037382abb56497bb9d7b7e10be04eb5598","name":"https://git.kernel.org/stable/c/2e67c2037382abb56497bb9d7b7e10be04eb5598","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/057764172fcc6ee2ccb6c41351a55a9f054dc8fd","name":"https://git.kernel.org/stable/c/057764172fcc6ee2ccb6c41351a55a9f054dc8fd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40183","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40183","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4ab31414970a7a03a5d55d75083f2c101a30592 3fba965a9aac0fa3cbd8138436a37af9ab466d79 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4ab31414970a7a03a5d55d75083f2c101a30592 057764172fcc6ee2ccb6c41351a55a9f054dc8fd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4ab31414970a7a03a5d55d75083f2c101a30592 2e67c2037382abb56497bb9d7b7e10be04eb5598 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4ab31414970a7a03a5d55d75083f2c101a30592 b6bfe44b6dbb14a31d86c475cdc9c7689534fb09 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4ab31414970a7a03a5d55d75083f2c101a30592 f36a305d30f557306d87c787ddffe094ac5dac89 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4ab31414970a7a03a5d55d75083f2c101a30592 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b4ab31414970a7a03a5d55d75083f2c101a30592 23f3770e1a53e6c7a553135011f547209e141e72 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.246 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.195 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.157 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.113 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.54 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17.4 6.17.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2025","cve_id":"40183","cve":"CVE-2025-40183","epss":"0.005730000","percentile":"0.441140000","score_date":"2026-07-31","updated_at":"2026-08-01 00:10:35"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/core/filter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3fba965a9aac0fa3cbd8138436a37af9ab466d79","status":"affected","version":"b4ab31414970a7a03a5d55d75083f2c101a30592","versionType":"git"},{"lessThan":"057764172fcc6ee2ccb6c41351a55a9f054dc8fd","status":"affected","version":"b4ab31414970a7a03a5d55d75083f2c101a30592","versionType":"git"},{"lessThan":"2e67c2037382abb56497bb9d7b7e10be04eb5598","status":"affected","version":"b4ab31414970a7a03a5d55d75083f2c101a30592","versionType":"git"},{"lessThan":"b6bfe44b6dbb14a31d86c475cdc9c7689534fb09","status":"affected","version":"b4ab31414970a7a03a5d55d75083f2c101a30592","versionType":"git"},{"lessThan":"f36a305d30f557306d87c787ddffe094ac5dac89","status":"affected","version":"b4ab31414970a7a03a5d55d75083f2c101a30592","versionType":"git"},{"lessThan":"7404ce888a45eb7da0508b7cbbe6f2e95302eeb8","status":"affected","version":"b4ab31414970a7a03a5d55d75083f2c101a30592","versionType":"git"},{"lessThan":"23f3770e1a53e6c7a553135011f547209e141e72","status":"affected","version":"b4ab31414970a7a03a5d55d75083f2c101a30592","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/core/filter.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.10"},{"lessThan":"5.10","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.246","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.195","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.157","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.113","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.54","versionType":"semver"},{"lessThanOrEqual":"6.17.*","status":"unaffected","version":"6.17.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.18","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.246","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.195","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.157","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.113","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.54","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.17.4","versionStartIncluding":"5.10","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18","versionStartIncluding":"5.10","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}\n\nCilium has a BPF egress gateway feature which forces outgoing K8s Pod\ntraffic to pass through dedicated egress gateways which then SNAT the\ntraffic in order to interact with stable IPs outside the cluster.\n\nThe traffic is directed to the gateway via vxlan tunnel in collect md\nmode. A recent BPF change utilized the bpf_redirect_neigh() helper to\nforward packets after the arrival and decap on vxlan, which turned out\nover time that the kmalloc-256 slab usage in kernel was ever-increasing.\n\nThe issue was that vxlan allocates the metadata_dst object and attaches\nit through a fake dst entry to the skb. The latter was never released\nthough given bpf_redirect_neigh() was merely setting the new dst entry\nvia skb_dst_set() without dropping an existing one first."}],"metrics":[{"cvssV3_1":{"baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-07-30T06:01:15.141Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3fba965a9aac0fa3cbd8138436a37af9ab466d79"},{"url":"https://git.kernel.org/stable/c/057764172fcc6ee2ccb6c41351a55a9f054dc8fd"},{"url":"https://git.kernel.org/stable/c/2e67c2037382abb56497bb9d7b7e10be04eb5598"},{"url":"https://git.kernel.org/stable/c/b6bfe44b6dbb14a31d86c475cdc9c7689534fb09"},{"url":"https://git.kernel.org/stable/c/f36a305d30f557306d87c787ddffe094ac5dac89"},{"url":"https://git.kernel.org/stable/c/7404ce888a45eb7da0508b7cbbe6f2e95302eeb8"},{"url":"https://git.kernel.org/stable/c/23f3770e1a53e6c7a553135011f547209e141e72"}],"title":"bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2025-40183","datePublished":"2025-11-12T21:56:27.429Z","dateReserved":"2025-04-16T07:20:57.177Z","dateUpdated":"2026-07-30T06:01:15.141Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2025-11-12 22:15:45","lastModifiedDate":"2026-07-30 06:24:16","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2025","CveId":"40183","Ordinal":"1","Title":"bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}","CVE":"CVE-2025-40183","Year":"2025"},"notes":[{"CveYear":"2025","CveId":"40183","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}\n\nCilium has a BPF egress gateway feature which forces outgoing K8s Pod\ntraffic to pass through dedicated egress gateways which then SNAT the\ntraffic in order to interact with stable IPs outside the cluster.\n\nThe traffic is directed to the gateway via vxlan tunnel in collect md\nmode. A recent BPF change utilized the bpf_redirect_neigh() helper to\nforward packets after the arrival and decap on vxlan, which turned out\nover time that the kmalloc-256 slab usage in kernel was ever-increasing.\n\nThe issue was that vxlan allocates the metadata_dst object and attaches\nit through a fake dst entry to the skb. The latter was never released\nthough given bpf_redirect_neigh() was merely setting the new dst entry\nvia skb_dst_set() without dropping an existing one first.","Type":"Description","Title":"bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}"}]}}}