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

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-07-30 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-42224, DEBIAN-CVE-2024-42224
- Record: https://cvemate.com/vulnerability/CVE-2024-42224 · JSON: https://cvemate.com/vulnerability/CVE-2024-42224/json

## Description

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

## Signals

- CVSS: 7 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.235%, percentile 15.367%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 132)

- debian linux (Debian): \< 6.1.98-1 \| \< 6.9.9-1
- ubuntu linux (Ubuntu): \< 4.15.0-229.241 \| \< 5.4.0-195.215 \| \< 5.15.0-121.131 \| \< 6.8.0-45.45
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.15.0-1173.186 \| \< 5.4.0-1132.142 \| \< 5.15.0-1069.75 \| \< 6.8.0-1016.17
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1069.75~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1132.142~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1016.17~22.04.2
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2111.117 \| All versions (No fix recorded) \| \< 5.4.0-1132.142+fips1 \| \< 5.15.0-1069.75+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1173.186~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1181.196~14.04.1 \| \< 4.15.0-1181.196~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1137.144 \| \< 5.15.0-1072.81 \| \< 6.8.0-1015.17
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1181.196
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 34)

- <https://git.kernel.org/stable/c/47d28dde172696031c880c5778633cdca30394ee>
- <https://git.kernel.org/stable/c/3bf8d70e1455f87856640c3433b3660a31001618>
- <https://git.kernel.org/stable/c/2a2fe25a103cef73cde356e6d09da10f607e93f5>
- <https://git.kernel.org/stable/c/8c2c3cca816d074c75a2801d1ca0dea7b0148114>
- <https://git.kernel.org/stable/c/aa03f591ef31ba603a4a99d05d25a0f21ab1cd89>
- <https://git.kernel.org/stable/c/3f25b5f1635449036692a44b771f39f772190c1d>
- <https://git.kernel.org/stable/c/f75625db838ade28f032dacd0f0c8baca42ecde4>
- <https://git.kernel.org/stable/c/4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://ubuntu.com/security/CVE-2024-42224>
- <https://www.cve.org/CVERecord?id=CVE-2024-42224>
- <https://git.kernel.org/linus/4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b>
- <https://ubuntu.com/security/notices/USN-7003-1>
- <https://ubuntu.com/security/notices/USN-7003-2>
- <https://ubuntu.com/security/notices/USN-7006-1>
- <https://ubuntu.com/security/notices/USN-7003-3>
- <https://ubuntu.com/security/notices/USN-7007-1>
- <https://ubuntu.com/security/notices/USN-7009-1>
- <https://ubuntu.com/security/notices/USN-7019-1>
- <https://ubuntu.com/security/notices/USN-7020-1>

---

Data as of 2026-12-05T04:47:46.430Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
