Menu

Star on GitHub · 3.2k

CVE-2022-48858

7.0 · HIGH

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.

Published Jul 16, 2024CWE-362EPSS 0.18%

Overview

CVE-2022-48858 is a high-severity vulnerability. It was published on July 16, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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]

pro

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-48858?

CVE-2022-48858 is a high-severity vulnerability. It was published on July 16, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

How severe is CVE-2022-48858?

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-48858?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-48858?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-48858 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all