# CVE-2023-54240: net: ethernet: mtk\_eth\_soc: fix possible NULL pointer dereference in mtk\_hwlro\_get\_fdir\_all()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **Published:** 2025-12-30T12:11:29.039Z
- **Modified:** 2026-06-17T06:47:04.483Z

## 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

## 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

- Linux: \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< 7776591e5ae2befff86579f68916a171971c6aab; \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< 751b2e22a188b0c306029d094da29b6b8de31430; \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< 653fbddbdfc6673bba01b13dae5a4384ad8f92ec; \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< 75f2de75c1182e80708c932418e4895dbc88b68f; \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< 072324cfab9b96071c0782f51f53cc5aea1e9d5b; \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< ff5faed5f5487b0fd2b640ba1304f82a5ebaab42; \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< fe0195fe48f85182bc7e7eabcad925bd3cbc10f5; \>= 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd, \< e4c79810755f66c9a933ca810da2724133b1165a (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- other: <https://git.kernel.org/stable/c/7776591e5ae2befff86579f68916a171971c6aab>
- other: <https://git.kernel.org/stable/c/751b2e22a188b0c306029d094da29b6b8de31430>
- other: <https://git.kernel.org/stable/c/653fbddbdfc6673bba01b13dae5a4384ad8f92ec>
- other: <https://git.kernel.org/stable/c/75f2de75c1182e80708c932418e4895dbc88b68f>
- other: <https://git.kernel.org/stable/c/072324cfab9b96071c0782f51f53cc5aea1e9d5b>
- other: <https://git.kernel.org/stable/c/ff5faed5f5487b0fd2b640ba1304f82a5ebaab42>
- other: <https://git.kernel.org/stable/c/fe0195fe48f85182bc7e7eabcad925bd3cbc10f5>
- other: <https://git.kernel.org/stable/c/e4c79810755f66c9a933ca810da2724133b1165a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54240>

HTML: <https://flawdb.com/CVE-2023-54240> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54240>
