CVE-2025-21788: net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases

Published Feb 27, 2025
·
Updated

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 XDPPASS then we leak the memory allocated by am65cpswbuildskb().

It is pointless to allocate SKB memory before running the XDP program as we would be wasting CPU cycles for cases other than XDPPASS. Move the SKB allocation after evaluating the XDP program result.

This fixes the memleak. A performance boost is seen for XDPDROP test.

XDPDROP test: Before: 460256 rx/s 0 err/s After: 784130 rx/s 0 err/s

Affected Software

5 affected components
Linux Linux kernel>=6.10<6.12.16
Linux Linux kernel>=6.13<6.13.4
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Kernel

Event History

Feb 27, 2025
CVE Published
via MITRE·02:18 AM
Data Sourced
via MITRE·02:18 AM
DescriptionSeverity
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21788?

CVE-2025-21788 has been classified with a severity level that indicates it can lead to memory leaks in specific scenarios involving XDP programs in the Linux kernel.

2

How do I fix CVE-2025-21788?

To address CVE-2025-21788, update your Linux kernel to the latest version where this vulnerability has been patched.

3

Which systems are affected by CVE-2025-21788?

CVE-2025-21788 affects the Linux kernel, particularly in cases involving Ethernet handling with the am65-cpsw driver.

4

What does CVE-2025-21788 impact in the Linux kernel?

CVE-2025-21788 impacts memory management, specifically memory leakage associated with the handling of XDP programs.

5

Is CVE-2025-21788 an exploit risk?

While CVE-2025-21788 may lead to resource depletion due to memory leaks, it does not directly indicate an exploit risk without further context.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203