{"id":"CVE-2025-21788","published":"2025-02-27T02:18:27Z","modified":"2026-08-05T11:54:25Z","title":"net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00672,"percentile":0.47126,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://git.kernel.org/stable/c/1bba1d042107167164a0ae3a843fdf650ab005d7","tags":[]},{"url":"https://git.kernel.org/stable/c/dc11f049612b9d926aca2e55f8dc9d82850d0da3","tags":[]},{"url":"https://git.kernel.org/stable/c/5db843258de1e4e6b1ef1cbd1797923c9e3de548","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":9.43},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, < 1bba1d042107167164a0ae3a843fdf650ab005d7",">= 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, < dc11f049612b9d926aca2e55f8dc9d82850d0da3",">= 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, < 5db843258de1e4e6b1ef1cbd1797923c9e3de548"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:30:00.916275Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5150","exploited":false,"provenance":"source"}}