Skip to contentSkip to conversation

CVE-2024-50168: net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 7, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()

The sun3_82586_send_packet() returns NETDEV_TX_OK without freeing skb in case of skb->len being too long, add dev_kfree_skb() to fix it.

The Linux kernel CVE team has assigned CVE-2024-50168 to this issue.

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

	Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 5.15.170 with commit 9c6ce55e6f0b
	Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.1.115 with commit 1a17a4ac2d57
	Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.6.59 with commit 6dc937a3086e
	Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.11.6 with commit 84f2bac74000
	Issue introduced in 2.6.12 with commit 1da177e4c3f4 and fixed in 6.12-rc5 with commit 2cb3f56e827a

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-2024-50168

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/i825xx/sun3_82586.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/9c6ce55e6f0bd1541f112833006b4052614c7d94
	https://git.kernel.org/stable/c/1a17a4ac2d57102497fac53b53c666dba6a0c20d
	https://git.kernel.org/stable/c/6dc937a3086e344f965ca5c459f8f3eb6b68d890
	https://git.kernel.org/stable/c/84f2bac74000dbb7a177d9b98a17031ec8d07ec5
	https://git.kernel.org/stable/c/2cb3f56e827abb22c4168ad0c1bbbf401bb2f3b8