7.0
HIGH
CVE-2022-48858
"Mellanox mlx5 Linux Kernel Refcount Use After Free Vulnerability"
Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Fix a race on command flush flow Fix a refcount use after free warning due to a race on command entry. Such race occurs when one of the commands releases its last refcount and frees its index and entry while another process running command flush flow takes refcount to this command entry. The process which handles commands flush may see this command as needed to be flushed if the other process released its refcount but didn't release the index yet. Fix it by adding the needed spin lock. It fixes the following warning trace: refcount_t: addition on 0; use-after-free. WARNING: CPU: 11 PID: 540311 at lib/refcount.c:25 refcount_warn_saturate+0x80/0xe0 ... RIP: 0010:refcount_warn_saturate+0x80/0xe0 ... Call Trace: <TASK> mlx5_cmd_trigger_completions+0x293/0x340 [mlx5_core] mlx5_cmd_flush+0x3a/0xf0 [mlx5_core] enter_error_state+0x44/0x80 [mlx5_core] mlx5_fw_fatal_reporter_err_work+0x37/0xe0 [mlx5_core] process_one_work+0x1be/0x390 worker_thread+0x4d/0x3d0 ? rescuer_thread+0x350/0x350 kthread+0x141/0x160 ? set_kthread_struct+0x40/0x40 ret_from_fork+0x1f/0x30 </TASK>

INFO

Published Date :

July 16, 2024, 1:15 p.m.

Last Modified :

July 23, 2024, 3:07 p.m.

Source :

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

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.0
Affected Products

The following products are affected by CVE-2022-48858 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-2022-48858 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-48858 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.

  • Initial Analysis by [email protected]

    Jul. 23, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6 No Types Assigned https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6 Patch
    Changed Reference Type https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d No Types Assigned https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d Patch
    Changed Reference Type https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee No Types Assigned https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee Patch
    Changed Reference Type https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a No Types Assigned https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a Patch
    Changed Reference Type https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f No Types Assigned https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f Patch
    Added CWE NIST CWE-362
    Added CWE NIST CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 5.4.185 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.106 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.29 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 5.16.15
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 16, 2024

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Fix a race on command flush flow Fix a refcount use after free warning due to a race on command entry. Such race occurs when one of the commands releases its last refcount and frees its index and entry while another process running command flush flow takes refcount to this command entry. The process which handles commands flush may see this command as needed to be flushed if the other process released its refcount but didn't release the index yet. Fix it by adding the needed spin lock. It fixes the following warning trace: refcount_t: addition on 0; use-after-free. WARNING: CPU: 11 PID: 540311 at lib/refcount.c:25 refcount_warn_saturate+0x80/0xe0 ... RIP: 0010:refcount_warn_saturate+0x80/0xe0 ... Call Trace: <TASK> mlx5_cmd_trigger_completions+0x293/0x340 [mlx5_core] mlx5_cmd_flush+0x3a/0xf0 [mlx5_core] enter_error_state+0x44/0x80 [mlx5_core] mlx5_fw_fatal_reporter_err_work+0x37/0xe0 [mlx5_core] process_one_work+0x1be/0x390 worker_thread+0x4d/0x3d0 ? rescuer_thread+0x350/0x350 kthread+0x141/0x160 ? set_kthread_struct+0x40/0x40 ret_from_fork+0x1f/0x30 </TASK>
    Added Reference kernel.org https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d [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-2022-48858 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-2022-48858 weaknesses.

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