Menu

Star on GitHub · 3.2k

CVE-2022-48666

9.8 · CRITICAL

In the Linux kernel, the following vulnerability has been resolved: scsi: core: Fix a use-after-free There are two .exit_cmd_priv implementations.

Published Apr 28, 2024CWE-416EPSS 0.78%

Overview

CVE-2022-48666 is a critical-severity vulnerability. It was published on April 28, 2024 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

scsi: core: Fix a use-after-free

There are two .exit_cmd_priv implementations. Both implementations use

resources associated with the SCSI host. Make sure that these resources are

still available when .exit_cmd_priv is called by waiting inside

scsi_remove_host() until the tag set has been freed.

This commit fixes the following use-after-free:

==================================================================

BUG: KASAN: use-after-free in srp_exit_cmd_priv+0x27/0xd0 [ib_srp]

Read of size 8 at addr ffff888100337000 by task multipathd/16727

Call Trace:

<TASK>

dump_stack_lvl+0x34/0x44

print_report.cold+0x5e/0x5db

kasan_report+0xab/0x120

srp_exit_cmd_priv+0x27/0xd0 [ib_srp]

scsi_mq_exit_request+0x4d/0x70

blk_mq_free_rqs+0x143/0x410

__blk_mq_free_map_and_rqs+0x6e/0x100

blk_mq_free_tag_set+0x2b/0x160

scsi_host_dev_release+0xf3/0x1a0

device_release+0x54/0xe0

kobject_put+0xa5/0x120

device_release+0x54/0xe0

kob

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

CVE-2022-48666 is a critical-severity vulnerability. It was published on April 28, 2024 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

How severe is CVE-2022-48666?

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

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

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

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

View all