Menu

Star on GitHub · 3.2k

CVE-2021-47130

7.5 · HIGH

In the Linux kernel, the following vulnerability has been resolved: nvmet: fix freeing unallocated p2pmem In case p2p device was found but the p2p pool is empty, the nvme target is still trying t…

Published Mar 15, 2024CWE-770EPSS 0.64%

Overview

CVE-2021-47130 is a high-severity vulnerability. It was published on March 15, 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: fix freeing unallocated p2pmem

In case p2p device was found but the p2p pool is empty, the nvme target

is still trying to free the sgl from the p2p pool instead of the

regular sgl pool and causing a crash (BUG() is called). Instead, assign

the p2p_dev for the request only if it was allocated from p2p pool.

This is the crash that was caused:

[Sun May 30 19:13:53 2021] ------------[ cut here ]------------

[Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518!

[Sun May 30 19:13:53 2021] invalid opcode: 0000 [#1] SMP PTI

...

[Sun May 30 19:13:53 2021] kernel BUG at lib/genalloc.c:518!

...

[Sun May 30 19:13:53 2021] RIP: 0010:gen_pool_free_owner+0xa8/0xb0

...

[Sun May 30 19:13:53 2021] Call Trace:

[Sun May 30 19:13:53 2021] ------------[ cut here ]------------

[Sun May 30 19:13:53 2021] pci_free_p2pmem+0x2b/0x70

[Sun May 30 19:13:53 2021] pci_p2pmem_free_sgl+0x4f/0x80

[Sun May 30 19:13:53 2021] nvmet_req

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

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

How severe is CVE-2021-47130?

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

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

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