{"id":"CVE-2025-21788","aliases":["CVE-2025-21788"],"related":[],"kind":"vulnerability","state":"published","title":"net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: ethernet: ti: am65-cpsw: corrige la fuga de memoria en ciertos casos de XDP Si el programa XDP no da como resultado XDP_PASS, filtramos la memoria asignada por am65_cpsw_build_skb(). No tiene sentido asignar memoria SKB antes de ejecutar el programa XDP, ya que estaríamos desperdiciando ciclos de CPU para casos distintos a XDP_PASS. Mueva la asignación de SKB después de evaluar el resultado del programa XDP. Esto corrige la fuga de memoria. Se observa una mejora en el rendimiento de la prueba XDP_DROP. Prueba XDP_DROP: Antes: 460256 rx/s 0 err/s Después: 784130 rx/s 0 err/s","source":"nvd"}],"published":"2025-02-27T02:18:27.336Z","modified":"2026-08-05T11:54:25.991Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","fixed":"1bba1d042107167164a0ae3a843fdf650ab005d7","status":"affected"},{"type":"git","introduced":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","fixed":"dc11f049612b9d926aca2e55f8dc9d82850d0da3","status":"affected"},{"type":"git","introduced":"8acacc40f7337527ff84cd901ed2ef0a2b95b2b6","fixed":"5db843258de1e4e6b1ef1cbd1797923c9e3de548","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.16","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.4","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.10","fixed":"6.12.16"},{"status":"affected","introduced":"6.13","fixed":"6.13.4"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/1bba1d042107167164a0ae3a843fdf650ab005d7","tags":["mailing-list","patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc11f049612b9d926aca2e55f8dc9d82850d0da3","tags":["mailing-list","patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5db843258de1e4e6b1ef1cbd1797923c9e3de548","tags":["mailing-list","patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:30:00.916Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21788","url":"https://www.cve.org/CVERecord?id=CVE-2025-21788","licence":"CVE Terms of Use","modified":"2026-08-05T11:54:25.991Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21788","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21788","licence":"Public domain","modified":"2026-07-30T06:21:30.810Z"}],"updatedAt":"2026-11-25T22:58:54.566Z","epss":{"score":0.00498,"percentile":0.44289,"date":"2026-12-01T12:00:22.000Z"}}