lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022609-CVE-2025-21788-2619@gregkh>
Date: Wed, 26 Feb 2025 18:17:44 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2025-21788: net: ethernet: ti: am65-cpsw: fix memleak in certain XDP cases

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

The Linux kernel CVE team has assigned CVE-2025-21788 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 6.10 with commit 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6 and fixed in 6.12.16 with commit 1bba1d042107167164a0ae3a843fdf650ab005d7
	Issue introduced in 6.10 with commit 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6 and fixed in 6.13.4 with commit dc11f049612b9d926aca2e55f8dc9d82850d0da3
	Issue introduced in 6.10 with commit 8acacc40f7337527ff84cd901ed2ef0a2b95b2b6 and fixed in 6.14-rc3 with commit 5db843258de1e4e6b1ef1cbd1797923c9e3de548

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2025-21788
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/net/ethernet/ti/am65-cpsw-nuss.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/1bba1d042107167164a0ae3a843fdf650ab005d7
	https://git.kernel.org/stable/c/dc11f049612b9d926aca2e55f8dc9d82850d0da3
	https://git.kernel.org/stable/c/5db843258de1e4e6b1ef1cbd1797923c9e3de548

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ