Menu

Star on GitHub · 3.4k

CVE-2021-47178

7.5 · HIGH

In the Linux kernel, the following vulnerability has been resolved: scsi: target: core: Avoid smp_processor_id() in preemptible code The BUG message "BUG: using smp_processor_id() in preemptible…

Published Mar 25, 2024CWE-459EPSS 0.58%

Overview

CVE-2021-47178 is a high-severity vulnerability. It was published on March 25, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. 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: target: core: Avoid smp_processor_id() in preemptible code

The BUG message "BUG: using smp_processor_id() in preemptible [00000000]

code" was observed for TCMU devices with kernel config DEBUG_PREEMPT.

The message was observed when blktests block/005 was run on TCMU devices

with fileio backend or user:zbc backend [1]. The commit 1130b499b4a7

("scsi: target: tcm_loop: Use LIO wq cmd submission helper") triggered the

symptom. The commit modified work queue to handle commands and changed

'current->nr_cpu_allowed' at smp_processor_id() call.

The message was also observed at system shutdown when TCMU devices were not

cleaned up [2]. The function smp_processor_id() was called in SCSI host

work queue for abort handling, and triggered the BUG message. This symptom

was observed regardless of the commit 1130b499b4a7 ("scsi: target:

tcm_loop: Use LIO wq cmd submission helper").

To avoid the preemptible code check at sm

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

CVE-2021-47178 is a high-severity vulnerability. It was published on March 25, 2024 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2021-47178?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. 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-47178?

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

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

View all
LiveWatch live →