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: <2025123033-CVE-2023-54240-b9f8@gregkh>
Date: Tue, 30 Dec 2025 13:14:10 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-54240: net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()

From: Greg Kroah-Hartman <gregkh@...nel.org>

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

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

net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()

rule_locs is allocated in ethtool_get_rxnfc and the size is determined by
rule_cnt from user space. So rule_cnt needs to be check before using
rule_locs to avoid NULL pointer dereference.

The Linux kernel CVE team has assigned CVE-2023-54240 to this issue.


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

	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 4.14.326 with commit 7776591e5ae2befff86579f68916a171971c6aab
	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 4.19.295 with commit 751b2e22a188b0c306029d094da29b6b8de31430
	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.4.257 with commit 653fbddbdfc6673bba01b13dae5a4384ad8f92ec
	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.10.195 with commit 75f2de75c1182e80708c932418e4895dbc88b68f
	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 5.15.132 with commit 072324cfab9b96071c0782f51f53cc5aea1e9d5b
	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 6.1.54 with commit ff5faed5f5487b0fd2b640ba1304f82a5ebaab42
	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 6.5.4 with commit fe0195fe48f85182bc7e7eabcad925bd3cbc10f5
	Issue introduced in 4.9 with commit 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd and fixed in 6.6 with commit e4c79810755f66c9a933ca810da2724133b1165a

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-2023-54240
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/mediatek/mtk_eth_soc.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/7776591e5ae2befff86579f68916a171971c6aab
	https://git.kernel.org/stable/c/751b2e22a188b0c306029d094da29b6b8de31430
	https://git.kernel.org/stable/c/653fbddbdfc6673bba01b13dae5a4384ad8f92ec
	https://git.kernel.org/stable/c/75f2de75c1182e80708c932418e4895dbc88b68f
	https://git.kernel.org/stable/c/072324cfab9b96071c0782f51f53cc5aea1e9d5b
	https://git.kernel.org/stable/c/ff5faed5f5487b0fd2b640ba1304f82a5ebaab42
	https://git.kernel.org/stable/c/fe0195fe48f85182bc7e7eabcad925bd3cbc10f5
	https://git.kernel.org/stable/c/e4c79810755f66c9a933ca810da2724133b1165a

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ