CVE Catalog

CVE-2025-21788

HighCVSS 7.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.48%

39th percentile - higher than 39% of all known CVEs

Summary

In the TI AM65 CPSW Ethernet driver in the Linux kernel, there is a memory leak when the XDP program does not return XDP_PASS. Memory allocated by am65_cpsw_build_skb() was not freed, and allocating SKB before running the XDP program wasted CPU cycles. The fix moves SKB allocation after evaluating the XDP result.

Risk Assessment

The memory leak can lead to exhaustion of available system memory, potentially causing performance degradation or system crash. Additionally, CPU cycles are wasted.

Recommendation

Apply the Linux kernel patch that moves SKB allocation after XDP program execution, eliminating the memory leak and improving performance (e.g., for XDP_DROP).

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS