{
  "id": "CVE-2025-21788",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21788",
  "published_at": "2025-02-27T02:18:27.336Z",
  "title": "net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases",
  "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\nnet: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases\n\nIf the XDP program doesn't result in XDP_PASS then we leak the\nmemory allocated by am65_cpsw_build_skb().\n\nIt is pointless to allocate SKB memory before running the XDP\nprogram as we would be wasting CPU cycles for cases other than XDP_PASS.\nMove the SKB allocation after evaluating the XDP program result.\n\nThis fixes the memleak. A performance boost is seen for XDP_DROP test.\n\nXDP_DROP test:\nBefore: 460256 rx/s                  0 err/s\nAfter:  784130 rx/s                  0 err/s",
  "cwe": "CWE-401",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 5.5,
    "cna": 7.5,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, \u003c 1bba1d042107167164a0ae3a843fdf650ab005d7",
          "\u003e= 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, \u003c dc11f049612b9d926aca2e55f8dc9d82850d0da3",
          "\u003e= 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, \u003c 5db843258de1e4e6b1ef1cbd1797923c9e3de548"
        ],
        "fixed_in": [
          "1bba1d042107167164a0ae3a843fdf650ab005d7",
          "dc11f049612b9d926aca2e55f8dc9d82850d0da3",
          "5db843258de1e4e6b1ef1cbd1797923c9e3de548"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.10"
        ],
        "fixed_in": [
          "0",
          "6.12.16",
          "6.13.4",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 1bba1d042107167164a0ae3a843fdf650ab005d7 or dc11f049612b9d926aca2e55f8dc9d82850d0da3 or 5db843258de1e4e6b1ef1cbd1797923c9e3de548 or later.",
      "Upgrade Linux to 0 or 6.12.16 or 6.13.4 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
