VDB

CVE-2025-21788

CVE-2025-21788 PUBLISHED CVSS 7.5 HIGH

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.

PackageEcosystemFixed in
linux_kernellinux6.14, 6.13.4, 6.12.16
LinuxLinux5db843258de1e4e6b1ef1cbd1797923c9e3de548

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6
LinuxLinux6.10, 0, 6.12.16
linuxlinux_kernel6.10, 6.10, 6.10
LinuxLinux8acacc40f7337527ff84cd901ed2ef0a2b95b2b6, 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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›