CVE-2023-54240

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

N/A
Published: December 30, 2025 at 12:11 PM UTC
Updated: June 17, 2026 at 06:47 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.9 ≤ v < 4.14.3264.9 ≤ v < 4.19.2954.9 ≤ v < 5.10.1954.9 ≤ v < 5.15.1324.9 ≤ v < 5.4.2574.9 ≤ v < 6.1.544.9 ≤ v < 6.5.44.9 ≤ v < 6.64.97aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd
Vendor states this is fixed in 072324cfab9b96071c0782f51f53cc5aea1e9d5b (fixed)
Vendor states this is fixed in 653fbddbdfc6673bba01b13dae5a4384ad8f92ec (fixed)
Vendor states this is fixed in 751b2e22a188b0c306029d094da29b6b8de31430 (fixed)
Vendor states this is fixed in 75f2de75c1182e80708c932418e4895dbc88b68f (fixed)
Vendor states this is fixed in 7776591e5ae2befff86579f68916a171971c6aab (fixed)
Vendor states this is fixed in e4c79810755f66c9a933ca810da2724133b1165a (fixed)
Vendor states this is fixed in fe0195fe48f85182bc7e7eabcad925bd3cbc10f5 (fixed)
Vendor states this is fixed in ff5faed5f5487b0fd2b640ba1304f82a5ebaab42 (fixed)
Vendor states this is fixed in 4.14.326 (unaffected)
Vendor states this is fixed in 4.19.295 (unaffected)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 5.10.195 (unaffected)
Vendor states this is fixed in 5.15.132 (unaffected)
Vendor states this is fixed in 5.4.257 (unaffected)
Vendor states this is fixed in 6.1.54 (unaffected)
Vendor states this is fixed in 6.5.4 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card