CVE-2023-54240
net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 7776591e5ae2befff86579f68916a171971c6aab; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 751b2e22a188b0c306029d094da29b6b8de31430; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 653fbddbdfc6673bba01b13dae5a4384ad8f92ec; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 75f2de75c1182e80708c932418e4895dbc88b68f; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 072324cfab9b96071c0782f51f53cc5aea1e9d5b; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < ff5faed5f5487b0fd2b640ba1304f82a5ebaab42; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < fe0195fe48f85182bc7e7eabcad925bd3cbc10f5; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < e4c79810755f66c9a933ca810da2724133b1165a
- Anyone running Linux 4.9
Vulnerability facts
- Affected
- Linux >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 7776591e5ae2befff86579f68916a171971c6aab; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 751b2e22a188b0c306029d094da29b6b8de31430; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 653fbddbdfc6673bba01b13dae5a4384ad8f92ec; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 75f2de75c1182e80708c932418e4895dbc88b68f; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 072324cfab9b96071c0782f51f53cc5aea1e9d5b; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < ff5faed5f5487b0fd2b640ba1304f82a5ebaab42; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < fe0195fe48f85182bc7e7eabcad925bd3cbc10f5; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < e4c79810755f66c9a933ca810da2724133b1165a; Linux 4.9
- Fixed in
- Linux 7776591e5ae2befff86579f68916a171971c6aab, Linux 751b2e22a188b0c306029d094da29b6b8de31430, Linux 653fbddbdfc6673bba01b13dae5a4384ad8f92ec, Linux 75f2de75c1182e80708c932418e4895dbc88b68f, Linux 072324cfab9b96071c0782f51f53cc5aea1e9d5b
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 7776591e5ae2befff86579f68916a171971c6aab; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 751b2e22a188b0c306029d094da29b6b8de31430; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 653fbddbdfc6673bba01b13dae5a4384ad8f92ec; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 75f2de75c1182e80708c932418e4895dbc88b68f; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 072324cfab9b96071c0782f51f53cc5aea1e9d5b; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < ff5faed5f5487b0fd2b640ba1304f82a5ebaab42; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < fe0195fe48f85182bc7e7eabcad925bd3cbc10f5; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < e4c79810755f66c9a933ca810da2724133b1165a | — | cvelist |
| Linux | 4.9 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-54240. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-54240.md Affected: Linux >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 7776591e5ae2befff86579f68916a171971c6aab; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 751b2e22a188b0c306029d094da29b6b8de31430; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 653fbddbdfc6673bba01b13dae5a4384ad8f92ec; >= 7aab747e5563ecbc9f3cb64… Fixed in: Linux 7776591e5ae2befff86579f68916a171971c6aab, Linux 751b2e22a188b0c306029d094da29b6b8de31430, Linux 653fbddbdfc6673bba01b13dae5a4384ad8f92ec, Linux 75f2de75c1182e80708c932418e4895dbc88b68f, Linux 072324cfab9b96071c0782f51f53cc5aea1e9d5b Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Other
- 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
FAQ
Is CVE-2023-54240 being exploited?
There is no confirmed exploitation: CVE-2023-54240 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-54240?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2023-54240?
Linux >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 7776591e5ae2befff86579f68916a171971c6aab; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 751b2e22a188b0c306029d094da29b6b8de31430; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 653fbddbdfc6673bba01b13dae5a4384ad8f92ec; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 75f2de75c1182e80708c932418e4895dbc88b68f; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < 072324cfab9b96071c0782f51f53cc5aea1e9d5b; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < ff5faed5f5487b0fd2b640ba1304f82a5ebaab42; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < fe0195fe48f85182bc7e7eabcad925bd3cbc10f5; >= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, < e4c79810755f66c9a933ca810da2724133b1165a; Linux 4.9.
Is there a fix for CVE-2023-54240?
Yes. Fixed in Linux 7776591e5ae2befff86579f68916a171971c6aab, Linux 751b2e22a188b0c306029d094da29b6b8de31430, Linux 653fbddbdfc6673bba01b13dae5a4384ad8f92ec, Linux 75f2de75c1182e80708c932418e4895dbc88b68f, Linux 072324cfab9b96071c0782f51f53cc5aea1e9d5b. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2023-54240?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.