CVE-2023-54240: net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
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.
Security readout for executives and security teams
Plain-English summary
CVE-2023-54240 is a Linux kernel flaw in MediaTek Ethernet driver handling. A user-controlled rule count can lead kernel code to use a NULL pointer, which can crash affected systems. The public record does not provide CVSS, confirmed exploitation, or broad impact details.
Executive priority
Treat this as targeted kernel maintenance, not an emergency, unless your estate includes MediaTek-based Linux network devices. Because no severity or exploitation is supplied, prioritize inventory and patch tracking over incident response.
Technical view
The flaw is in mtk_hwlro_get_fdir_all() in the mtk_eth_soc Ethernet driver. rule_locs is allocated by ethtool_get_rxnfc using rule_cnt from user space. Without checking rule_cnt before using rule_locs, the kernel may dereference NULL. Stable kernel commits add the missing validation.
Likely exposure
Exposure appears limited to Linux systems using the MediaTek mtk_eth_soc Ethernet driver and affected kernel versions listed by the CVE record. Systems without this driver or hardware path are unlikely to be exposed based on the provided sources.
Exploitation context
The bundle marks CISA KEV as false and gives no public exploitation evidence. The described impact is consistent with a kernel NULL pointer dereference, most likely availability impact, but the sources do not confirm exploitability, required privileges, or remote reachability.
Researcher notes
The record lacks CVSS, CWE, privilege requirements, and reachability details. Analysis should focus on the ethtool RXNFC path, affected stable branches, and whether downstream vendors backported the rule_cnt validation fix.
Mitigation direction
Identify systems running affected Linux kernel versions with MediaTek mtk_eth_soc Ethernet support.
Update to a kernel containing the referenced stable fixes.
Prioritize network appliances, embedded systems, and routers using MediaTek Ethernet SoCs.
If patching is delayed, check vendor guidance for supported mitigations.
Monitor distribution advisories for backported kernel packages.
Validation and detection
Confirm the running kernel version and distribution patch level.
Check whether the mtk_eth_soc driver is present or loaded.
Verify the kernel includes one of the referenced stable fix commits.
Review vendor advisories for package-specific fixed versions.
Track any future CVSS, CWE, or exploitation updates.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2023-54240 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
0CVSS vectors
3Timeline events
0ADP providers
9Source links
Vulnerability timeline
Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.
CVE reservedCVE Program
The CVE ID was reserved by the assigning CNA.
CVE publishedCVE Program
The CVE record was published.
Dec 30, 2025, 12:11 UTC (UTC+00:00)
CVE updatedCVE Program
The CVE record metadata indicates this as the latest update time.