CVE-2023-54240
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-54240 is a NULL pointer dereference vulnerability in the Linux kernel's MediaTek Ethernet driver (mtk_eth_soc), specifically in the mtk_hwlro_get_fdir_all() function. The flaw arises because rule_locs, allocated in ethtool_get_rxnfc with a size determined by user-supplied rule_cnt, is used without first validating rule_cnt, potentially resulting in a NULL pointer dereference. The vulnerability affects the Linux kernel across multiple stable branches prior to the patched versions. It was published on December 30, 2025, and carries an EPSS score of 0.024% (very low probability of exploitation) (Feedly, ENISA EUVD). No CVSS base score has been assigned by the authoritative sources at this time.

Technical details

The root cause is a missing input validation check (CWE-476: NULL Pointer Dereference) in the mtk_hwlro_get_fdir_all() function within the MediaTek Ethernet SoC driver (net/ethernet/mtk_eth_soc.c). When a user-space application calls the ethtool interface with ETHTOOL_GRXCLSRLALL, the kernel allocates rule_locs based on the user-supplied rule_cnt value; if rule_cnt is zero or invalid, rule_locs may be NULL, and subsequent use of this pointer without validation causes a kernel NULL pointer dereference. The fix adds a check on rule_cnt before accessing rule_locs. Patches were applied across multiple stable kernel branches (Feedly, ENISA EUVD).

Impact

Successful exploitation of this vulnerability could cause a kernel panic or system crash (denial of service) on affected Linux systems using the MediaTek Ethernet SoC driver. Because the vulnerability is triggered via the ethtool interface, exploitation typically requires local access with sufficient privileges to invoke ethtool operations. There is no evidence of confidentiality or integrity impact; the primary risk is availability loss on embedded or networking devices using the affected MediaTek hardware (Feedly, ENISA EUVD).

Mitigation and workarounds

Apply the upstream Linux kernel patches that add the rule_cnt validation check in mtk_hwlro_get_fdir_all(). Fixed versions include: Linux 4.14.326, 4.19.295, 5.4.257, 5.10.195, 5.15.132, 6.1.54, 6.5.4, and 6.6 (stable). Users running affected kernel versions on MediaTek Ethernet SoC hardware should update to the appropriate patched stable release. As a temporary workaround, restricting unprivileged user access to ethtool operations can reduce exposure (ENISA EUVD, Feedly).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management