# CVE-2024-42224: net: dsa: mv88e6xxx: Correct check for empty list

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

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-754
- **Published:** 2024-07-30T07:47:05.608Z
- **Modified:** 2026-08-05T11:35:55.054Z

## Who should check

- Anyone running Linux \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 47d28dde172696031c880c5778633cdca30394ee; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 3bf8d70e1455f87856640c3433b3660a31001618; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 2a2fe25a103cef73cde356e6d09da10f607e93f5; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 8c2c3cca816d074c75a2801d1ca0dea7b0148114; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< aa03f591ef31ba603a4a99d05d25a0f21ab1cd89; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 3f25b5f1635449036692a44b771f39f772190c1d; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< f75625db838ade28f032dacd0f0c8baca42ecde4; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b
- Anyone running Linux 4.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: dsa: mv88e6xxx: Correct check for empty list

Since commit a3c53be55c95 ("net: dsa: mv88e6xxx: Support multiple MDIO
busses") mv88e6xxx\_default\_mdio\_bus() has checked that the
return value of list\_first\_entry() is non-NULL.

This appears to be intended to guard against the list chip-\>mdios being
empty.  However, it is not the correct check as the implementation of
list\_first\_entry is not designed to return NULL for empty lists.

Instead, use list\_first\_entry\_or\_null() which does return NULL if the
list is empty.

Flagged by Smatch.
Compile tested only.

## Affected and fixed versions

- Linux: \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 47d28dde172696031c880c5778633cdca30394ee; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 3bf8d70e1455f87856640c3433b3660a31001618; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 2a2fe25a103cef73cde356e6d09da10f607e93f5; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 8c2c3cca816d074c75a2801d1ca0dea7b0148114; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< aa03f591ef31ba603a4a99d05d25a0f21ab1cd89; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 3f25b5f1635449036692a44b771f39f772190c1d; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< f75625db838ade28f032dacd0f0c8baca42ecde4; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-42224. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42224.md
Affected: Linux >= a3c53be55c955b7150cda17874c3fcb4eeb97a89, < 47d28dde172696031c880c5778633cdca30394ee; >= a3c53be55c955b7150cda17874c3fcb4eeb97a89, < 3bf8d70e1455f87856640c3433b3660a31001618; >= a3c53be55c955b7150cda17874c3fcb4eeb97a89, < 2a2fe25a103cef73cde356e6d09da10f607e93f5; >= a3c53be55c955b7150cda17…
Fixed in: Linux 47d28dde172696031c880c5778633cdca30394ee, Linux 3bf8d70e1455f87856640c3433b3660a31001618, Linux 2a2fe25a103cef73cde356e6d09da10f607e93f5, Linux 8c2c3cca816d074c75a2801d1ca0dea7b0148114, Linux 3f25b5f1635449036692a44b771f39f772190c1d, Linux 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b

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-2024-42224 being exploited?

There is no confirmed exploitation: CVE-2024-42224 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-42224?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-42224?

Linux \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 47d28dde172696031c880c5778633cdca30394ee; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 3bf8d70e1455f87856640c3433b3660a31001618; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 2a2fe25a103cef73cde356e6d09da10f607e93f5; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 8c2c3cca816d074c75a2801d1ca0dea7b0148114; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< aa03f591ef31ba603a4a99d05d25a0f21ab1cd89; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 3f25b5f1635449036692a44b771f39f772190c1d; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< f75625db838ade28f032dacd0f0c8baca42ecde4; \>= a3c53be55c955b7150cda17874c3fcb4eeb97a89, \< 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b; Linux 4.11.

### Is there a fix for CVE-2024-42224?

Yes. Fixed in Linux 47d28dde172696031c880c5778633cdca30394ee, Linux 3bf8d70e1455f87856640c3433b3660a31001618, Linux 2a2fe25a103cef73cde356e6d09da10f607e93f5, Linux 8c2c3cca816d074c75a2801d1ca0dea7b0148114, Linux 3f25b5f1635449036692a44b771f39f772190c1d, Linux 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b. Upgrade Linux to 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b or later.

### How do I check if I'm affected by CVE-2024-42224?

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

- patch: <https://git.kernel.org/stable/c/47d28dde172696031c880c5778633cdca30394ee>
- patch: <https://git.kernel.org/stable/c/3bf8d70e1455f87856640c3433b3660a31001618>
- patch: <https://git.kernel.org/stable/c/2a2fe25a103cef73cde356e6d09da10f607e93f5>
- patch: <https://git.kernel.org/stable/c/8c2c3cca816d074c75a2801d1ca0dea7b0148114>
- patch: <https://git.kernel.org/stable/c/aa03f591ef31ba603a4a99d05d25a0f21ab1cd89>
- patch: <https://git.kernel.org/stable/c/3f25b5f1635449036692a44b771f39f772190c1d>
- patch: <https://git.kernel.org/stable/c/f75625db838ade28f032dacd0f0c8baca42ecde4>
- patch: <https://git.kernel.org/stable/c/4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

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

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