Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-47192

5.3 · MEDIUM
Published Apr 10, 2024 linux CWE-667 EPSS 0.61% (47th pctl)

Overview

CVE-2021-47192 is a medium-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.4.143, < 5.4.162 Affected

Frequently Asked Questions

What is CVE-2021-47192?

CVE-2021-47192 is a medium-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2021-47192 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.