{
  "id": "CVE-2025-40183",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40183",
  "published_at": "2025-11-12T21:56:27.429Z",
  "title": "bpf: Fix metadata_dst leak __bpf_redirect_neigh_v{4,6}",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= b4ab31414970a7a03a5d55d75083f2c101a30592, \u003c 3fba965a9aac0fa3cbd8138436a37af9ab466d79",
          "\u003e= b4ab31414970a7a03a5d55d75083f2c101a30592, \u003c 057764172fcc6ee2ccb6c41351a55a9f054dc8fd",
          "\u003e= b4ab31414970a7a03a5d55d75083f2c101a30592, \u003c 2e67c2037382abb56497bb9d7b7e10be04eb5598",
          "\u003e= b4ab31414970a7a03a5d55d75083f2c101a30592, \u003c b6bfe44b6dbb14a31d86c475cdc9c7689534fb09",
          "\u003e= b4ab31414970a7a03a5d55d75083f2c101a30592, \u003c f36a305d30f557306d87c787ddffe094ac5dac89",
          "\u003e= b4ab31414970a7a03a5d55d75083f2c101a30592, \u003c 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8",
          "\u003e= b4ab31414970a7a03a5d55d75083f2c101a30592, \u003c 23f3770e1a53e6c7a553135011f547209e141e72"
        ],
        "fixed_in": [
          "3fba965a9aac0fa3cbd8138436a37af9ab466d79",
          "057764172fcc6ee2ccb6c41351a55a9f054dc8fd",
          "2e67c2037382abb56497bb9d7b7e10be04eb5598",
          "b6bfe44b6dbb14a31d86c475cdc9c7689534fb09",
          "f36a305d30f557306d87c787ddffe094ac5dac89",
          "7404ce888a45eb7da0508b7cbbe6f2e95302eeb8",
          "23f3770e1a53e6c7a553135011f547209e141e72"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.10"
        ],
        "fixed_in": [
          "0",
          "5.10.246",
          "5.15.195",
          "6.1.157",
          "6.6.113",
          "6.12.54",
          "6.17.4",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3fba965a9aac0fa3cbd8138436a37af9ab466d79 or 057764172fcc6ee2ccb6c41351a55a9f054dc8fd or 2e67c2037382abb56497bb9d7b7e10be04eb5598 or b6bfe44b6dbb14a31d86c475cdc9c7689534fb09 or f36a305d30f557306d87c787ddffe094ac5dac89 or 7404ce888a45eb7da0508b7cbbe6f2e95302eeb8 or 23f3770e1a53e6c7a553135011f547209e141e72 or later.",
      "Upgrade Linux to 0 or 5.10.246 or 5.15.195 or 6.1.157 or 6.6.113 or 6.12.54 or 6.17.4 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
