CVE-2025-21788 Details
Description
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
A memory leak vulnerability has been addressed in the Linux kernel's AM65 CPSW Ethernet driver, specifically related to the eXpress Data Path (XDP) functionality. The issue arose when the XDP program did not return XDP_PASS, leading to a leak of memory allocated for socket buffers (SKB) by the am65_cpsw_build_skb() function. This allocation was unnecessary before evaluating the XDP program's result, as it wasted CPU cycles in cases other than XDP_PASS. The vulnerability has been fixed by moving the SKB allocation to after the XDP program evaluation, thereby eliminating the memory leak and improving performance in XDP_DROP scenarios.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1bba1d042107167164a0ae3a843fdf650ab005d7 | kernel.org | Mailing ListPatch |
| https://git.kernel.org/stable/c/5db843258de1e4e6b1ef1cbd1797923c9e3de548 | kernel.org | Mailing ListPatch |
| https://git.kernel.org/stable/c/dc11f049612b9d926aca2e55f8dc9d82850d0da3 | kernel.org | Mailing ListPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
| CWE-401 | Missing Release of Memory after Effective Lifetime | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.10, < 6.12.16 >= 6.13, < 6.13.4 6.14 rc1 6.14 rc2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 5, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | New CVE Received | kernel.org |