6.1
MEDIUM
CVE-2024-42224
Mellanox Technologies Linux Kernel Null Pointer Dereference Vulnerability
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.

INFO

Published Date :

July 30, 2024, 8:15 a.m.

Last Modified :

Sept. 25, 2024, 3:55 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

4.2

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-42224 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-42224 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-42224 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Reanalysis by [email protected]

    Sep. 25, 2024

    Action Type Old Value New Value
    Removed CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
  • Initial Analysis by [email protected]

    Aug. 02, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/2a2fe25a103cef73cde356e6d09da10f607e93f5 No Types Assigned https://git.kernel.org/stable/c/2a2fe25a103cef73cde356e6d09da10f607e93f5 Patch
    Changed Reference Type https://git.kernel.org/stable/c/3bf8d70e1455f87856640c3433b3660a31001618 No Types Assigned https://git.kernel.org/stable/c/3bf8d70e1455f87856640c3433b3660a31001618 Patch
    Changed Reference Type https://git.kernel.org/stable/c/3f25b5f1635449036692a44b771f39f772190c1d No Types Assigned https://git.kernel.org/stable/c/3f25b5f1635449036692a44b771f39f772190c1d Patch
    Changed Reference Type https://git.kernel.org/stable/c/47d28dde172696031c880c5778633cdca30394ee No Types Assigned https://git.kernel.org/stable/c/47d28dde172696031c880c5778633cdca30394ee Patch
    Changed Reference Type https://git.kernel.org/stable/c/4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b No Types Assigned https://git.kernel.org/stable/c/4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b Patch
    Changed Reference Type https://git.kernel.org/stable/c/8c2c3cca816d074c75a2801d1ca0dea7b0148114 No Types Assigned https://git.kernel.org/stable/c/8c2c3cca816d074c75a2801d1ca0dea7b0148114 Patch
    Changed Reference Type https://git.kernel.org/stable/c/aa03f591ef31ba603a4a99d05d25a0f21ab1cd89 No Types Assigned https://git.kernel.org/stable/c/aa03f591ef31ba603a4a99d05d25a0f21ab1cd89 Patch
    Changed Reference Type https://git.kernel.org/stable/c/f75625db838ade28f032dacd0f0c8baca42ecde4 No Types Assigned https://git.kernel.org/stable/c/f75625db838ade28f032dacd0f0c8baca42ecde4 Patch
    Added CWE NIST CWE-754
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.11 up to (excluding) 4.19.318 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.280 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.222 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.163 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.98 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.39 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.9.9
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 30, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference kernel.org https://git.kernel.org/stable/c/47d28dde172696031c880c5778633cdca30394ee [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/3bf8d70e1455f87856640c3433b3660a31001618 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/2a2fe25a103cef73cde356e6d09da10f607e93f5 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/8c2c3cca816d074c75a2801d1ca0dea7b0148114 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/aa03f591ef31ba603a4a99d05d25a0f21ab1cd89 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/3f25b5f1635449036692a44b771f39f772190c1d [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/f75625db838ade28f032dacd0f0c8baca42ecde4 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/4c7f3950a9fd53a62b156c0fe7c3a2c43b0ba19b [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-42224 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-42224 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability