Vulnerability · Published Jul 30, 2024 · Assigned by Linux
CVE-2024-42224net: dsa: mv88e6xxx: Correct check for empty list
High 7.0
In plain English
A high-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 6.1.98-1 | DEBIAN-CVE-2024-42224 |
| Debian:13 | linux | 6.9.9-1 | DEBIAN-CVE-2024-42224 |
| Debian:14 | linux | 6.9.9-1 | DEBIAN-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux | 5.15.0-121.131 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux | 6.8.0-45.45 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux | 6.8.0-45.45 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-aws | 5.15.0-1069.75 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1016.17 | USN-7020-1 |
| Ubuntu:24.04:LTS | linux-aws | 6.8.0-1016.17 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1016.17~22.04.2 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-aws-6.8 | 6.8.0-1016.17~22.04.2 | USN-7020-4 |
| Ubuntu:22.04:LTS | linux-azure | 5.15.0-1072.81 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1015.17 | USN-7020-2 |
| Ubuntu:24.04:LTS | linux-azure | 6.8.0-1015.17 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-azure-6.8 | 6.8.0-1015.17~22.04.2 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-azure-fde | 5.15.0-1072.81.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-gcp | 5.15.0-1068.76 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1015.17 | USN-7020-1 |
| Ubuntu:24.04:LTS | linux-gcp | 6.8.0-1015.17 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-gcp-6.8 | 6.8.0-1015.17~22.04.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-gke | 5.15.0-1066.72 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1011.14 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-gke | 6.8.0-1011.14 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-gkeop | 5.15.0-1052.59 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-gkeop | 6.8.0-1002.4 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-hwe-6.8 | 6.8.0-45.45~22.04.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-ibm | 5.15.0-1062.65 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1013.13 | USN-7020-1 |
| Ubuntu:24.04:LTS | linux-ibm | 6.8.0-1013.13 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-ibm-6.8 | 6.8.0-1013.13~22.04.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-intel-iotg | 5.15.0-1064.70 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-kvm | 5.15.0-1066.71 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-lowlatency | 5.15.0-121.131 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-45.45.1 | USN-7020-1 |
| Ubuntu:24.04:LTS | linux-lowlatency | 6.8.0-45.45.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-45.45.1~22.04.1 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.8 | 6.8.0-45.45.1~22.04.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-nvidia | 5.15.0-1064.65 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1014.15 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-nvidia | 6.8.0-1014.15 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1014.15~22.04.1 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-nvidia-6.8 | 6.8.0-1014.15~22.04.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1014.15.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-nvidia-lowlatency | 6.8.0-1014.15.1 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra | 5.15.0-1028.28 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-nvidia-tegra-igx | 5.15.0-1016.16 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1013.13 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | 6.8.0-1013.13 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-oracle | 5.15.0-1067.73 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1013.13 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-oracle | 6.8.0-1013.13 | USN-7020-1 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1013.13~22.04.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-oracle-6.8 | 6.8.0-1013.13~22.04.1 | USN-7020-4 |
| Ubuntu:22.04:LTS | linux-raspi | 5.15.0-1062.65 | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1012.13 | USN-7020-3 |
| Ubuntu:24.04:LTS | linux-raspi | 6.8.0-1012.13 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-riscv | 6.8.0-47.47.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-riscv-6.8 | 6.8.0-47.47.1~22.04.1 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2024-42224 |
| Ubuntu:24.04:LTS | linux-xilinx | 6.8.0-1009.10 | UBUNTU-CVE-2024-42224 |
| Ubuntu:22.04:LTS | linux-xilinx-zynqmp | 5.15.0-1035.39 | UBUNTU-CVE-2024-42224 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a3c53be55c955b7150cda17874c3fcb4eeb97a89 – before 47d28dde172696031c880c5778633cdca30394eea3c53be55c955b7150cda17874c3fcb4eeb97a89 – before 3bf8d70e1455f87856640c3433b3660a31001618a3c53be55c955b7150cda17874c3fcb4eeb97a89 – before 2a2fe25a103cef73cde356e6d09da10f607e93f5a3c53be55c955b7150cda17874c3fcb4eeb97a89 – before 8c2c3cca816d074c75a2801d1ca0dea7b0148114a3c53be55c955b7150cda17874c3fcb4eeb97a89 – before aa03f591ef31ba603a4a99d05d25a0f21ab1cd89a3c53be55c955b7150cda17874c3fcb4eeb97a89 – before 3f25b5f1635449036692a44b771f39f772190c1da3c53be55c955b7150cda17874c3fcb4eeb97a89 – before f75625db838ade28f032dacd0f0c8baca42ecde4a3c53be55c955b7150cda17874c3fcb4eeb97a89 – before 4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b |
| Linux | Linux | 4.11 |
References
- 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