CVE-2024-42224
MediumIn 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.
CVSS 3.1 score
6.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness type
CWE-754CVE-2024-42224 is classified as CWE-754
See CWE-754 on MITRE CWE for full details on this weakness type.
References
The following references provide additional information about CVE-2024-42224 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2a2fe25a103cef73cde356e6d09da10f607e93f5
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3bf8d70e1455f87856640c3433b3660a31001618
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3f25b5f1635449036692a44b771f39f772190c1d
Frequently asked questions
-
What is CVE-2024-42224?
CVE-2024-42224 is a Medium severity Linux kernel vulnerability with a CVSS score of 6.1 out of 10 . CVE-2024-42224 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-42224?
CVE-2024-42224 has a CVSS score of 6.1 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H. -
Is there a patch available for CVE-2024-42224?
No patch is currently available for CVE-2024-42224. Monitor the NIST NVD and your Linux distribution's security advisories for updates.
-
Is CVE-2024-42224 actively exploited?
No — CVE-2024-42224 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.