CVE-2025-21788
net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases
Reported by linux · Published February 27, 2025
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases If the XDP program doesn't result in XDP_PASS then we leak the memory allocated by am65_cpsw_build_skb(). It is pointless to allocate SKB memory before running the XDP program as we would be wasting CPU cycles for cases other than XDP_PASS. Move the SKB allocation after evaluating the XDP program result. This fixes the memleak. A performance boost is seen for XDP_DROP test. XDP_DROP test: Before: 460256 rx/s 0 err/s After: 784130 rx/s 0 err/s
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.14, 6.13.4, 6.12.16 |
| Linux | Linux | 5db843258de1e4e6b1ef1cbd1797923c9e3de548 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6 |
| Linux | Linux | 6.10, 0, 6.12.16 |
| linux | linux_kernel | 6.10, 6.10, 6.10 |
| Linux | Linux | 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, 6.10 |
Timeline
- Feb 26, 2025 CVE Published
- Feb 27, 2025 EPSS Score (30 in total, the first dated here)
- Feb 27, 2025 PoC Published
- Mar 1, 2025 Coalition ESS Score (10 in total, the first dated here)
- Dec 22, 2025 Security Advisory (361 in total, the first dated here)
- Nov 11, 2026 CVE Updated
- Nov 15, 2026 Distribution Patch (316 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-21788
vulnetix vdb fixes CVE-2025-21788
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21788/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart