Menu

Star on GitHub · 3.2k

CVE-2021-47192

5.3 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: scsi: core: sysfs: Fix hang when device state is set via sysfs This fixes a regression added with: commit f0f82e2476f6 ("scsi:…

Published Apr 10, 2024CWE-667EPSS 0.61%

Overview

CVE-2021-47192 is a medium-severity vulnerability. It was published on April 10, 2024 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.3, rated MEDIUM. 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: sysfs: Fix hang when device state is set via sysfs

This fixes a regression added with:

commit f0f82e2476f6 ("scsi: core: Fix capacity set to zero after

offlinining device")

The problem is that after iSCSI recovery, iscsid will call into the kernel

to set the dev's state to running, and with that patch we now call

scsi_rescan_device() with the state_mutex held. If the SCSI error handler

thread is just starting to test the device in scsi_send_eh_cmnd() then it's

going to try to grab the state_mutex.

We are then stuck, because when scsi_rescan_device() tries to send its I/O

scsi_queue_rq() calls -> scsi_host_queue_ready() -> scsi_host_in_recovery()

which will return true (the host state is still in recovery) and I/O will

just be requeued. scsi_send_eh_cmnd() will then never be able to grab the

state_mutex to finish error handling.

To prevent the deadlock move the rescan-related code to after we drop the

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-2021-47192?

CVE-2021-47192 is a medium-severity vulnerability. It was published on April 10, 2024 and has a CVSS 3.1 base score of 5.3 (MEDIUM).

How severe is CVE-2021-47192?

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

How do I fix or remediate CVE-2021-47192?

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-2021-47192?

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

View all