Menu

Star on GitHub · 3.2k

CVE-2021-47041

7.5 · HIGH

In the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: fix incorrect locking in state_change sk callback We are not changing anything in the TCP connection state so we sho…

Published Feb 28, 2024CWE-667EPSS 0.49%

Overview

CVE-2021-47041 is a high-severity vulnerability. It was published on February 28, 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:

nvmet-tcp: fix incorrect locking in state_change sk callback

We are not changing anything in the TCP connection state so

we should not take a write_lock but rather a read lock.

This caused a deadlock when running nvmet-tcp and nvme-tcp

on the same system, where state_change callbacks on the

host and on the controller side have causal relationship

and made lockdep report on this with blktests:

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

WARNING: inconsistent lock state

5.12.0-rc3 #1 Tainted: G I

--------------------------------

inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-R} usage.

nvme/1324 [HC0[0]:SC0[0]:HE1:SE1] takes:

ffff888363151000 (clock-AF_INET){++-?}-{2:2}, at: nvme_tcp_state_change+0x21/0x150 [nvme_tcp]

{IN-SOFTIRQ-W} state was registered at:

__lock_acquire+0x79b/0x18d0

lock_acquire+0x1ca/0x480

_raw_write_lock_bh+0x39/0x80

nvmet_tcp_state_change+0x21/0x170 [nvmet_tcp]

tcp_fin+0x2a8/0x780

tcp_data_

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

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

How severe is CVE-2021-47041?

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

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

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