CVE-2025-21788
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
27/02/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases<br />
<br />
If the XDP program doesn&#39;t result in XDP_PASS then we leak the<br />
memory allocated by am65_cpsw_build_skb().<br />
<br />
It is pointless to allocate SKB memory before running the XDP<br />
program as we would be wasting CPU cycles for cases other than XDP_PASS.<br />
Move the SKB allocation after evaluating the XDP program result.<br />
<br />
This fixes the memleak. A performance boost is seen for XDP_DROP test.<br />
<br />
XDP_DROP test:<br />
Before: 460256 rx/s 0 err/s<br />
After: 784130 rx/s 0 err/s
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.10 (including) | 6.12.16 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.13.4 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



