Menu

Star on GitHub · 3.2k

CVE-2022-48884

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Fix command stats access after free Command may fail while driver is reloading and can't accept FW commands till comm…

Published Aug 21, 2024CWE-476EPSS 0.21%

Overview

CVE-2022-48884 is a medium-severity vulnerability. It was published on August 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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 command stats access after free

Command may fail while driver is reloading and can't accept FW commands

till command interface is reinitialized. Such command failure is being

logged to command stats. This results in NULL pointer access as command

stats structure is being freed and reallocated during mlx5 devlink

reload (see kernel log below).

Fix it by making command stats statically allocated on driver probe.

Kernel log:

[ 2394.808802] BUG: unable to handle kernel paging request at 000000000002a9c0

[ 2394.810610] PGD 0 P4D 0

[ 2394.811811] Oops: 0002 [#1] SMP NOPTI

...

[ 2394.815482] RIP: 0010:native_queued_spin_lock_slowpath+0x183/0x1d0

...

[ 2394.829505] Call Trace:

[ 2394.830667] _raw_spin_lock_irq+0x23/0x26

[ 2394.831858] cmd_status_err+0x55/0x110 [mlx5_core]

[ 2394.833020] mlx5_access_reg+0xe7/0x150 [mlx5_core]

[ 2394.834175] mlx5_query_port_ptys+0x78/0xa0 [mlx5_core]

[ 2394.835337] mlx5e_e

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-48884?

CVE-2022-48884 is a medium-severity vulnerability. It was published on August 21, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2022-48884?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-48884?

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-48884?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-48884 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 MEDIUM CVEs from 2022

View all