CVE-2023-54240Published Dec 30, 2025 · Dec 30Updated Oct 28
net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd · < ff5faed5f5487b0fd2b640ba1304f82a5ebaab42| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's mtk_eth_soc Ethernet code can dereference a NULL pointer when handling a rule count supplied from user space. The issue occurs if rule_cnt is not checked before rule_locs is used; the input does not specify whether authentication is required.
Engineers running the Linux kernel should check affected versions; none are specified in the input.