CVE-2021-47130
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47130 affects the Linux kernel's NVMe target subsystem. The vulnerability was discovered when a p2p device was found but the p2p pool was empty, causing the NVMe target to incorrectly attempt freeing an SGL from the p2p pool instead of the regular SGL pool, resulting in a system crash (Kernel Git).

Technical details

The vulnerability occurs in the nvmet subsystem when handling p2pmem (peer-to-peer memory) allocations. When a p2p device is found but its pool is empty, the system attempts to free memory from the wrong pool, triggering a kernel BUG() at lib/genalloc.c:518. The issue was fixed by modifying the code to only assign the p2p_dev for the request if it was allocated from the p2p pool (Kernel Git). The vulnerability has been assigned a CVSS v3.1 Base Score of 4.4 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability results in a kernel crash when specific conditions are met in the NVMe target subsystem, leading to a denial of service condition. The crash occurs during the memory deallocation process when handling peer-to-peer memory operations (Kernel Git).

Exploitability

The vulnerability requires local access with high privileges to trigger. It specifically occurs when using NVMe target functionality with peer-to-peer memory operations, making it relatively difficult to exploit in most environments (NVD).

Mitigation and workarounds

The issue has been fixed in the Linux kernel through a patch that modifies the p2p_dev assignment logic. The fix ensures that p2p_dev is only assigned when memory is actually allocated from the p2p pool (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80913NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesSep 04, 2026
CVE-2026-80905NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesSep 04, 2026
CVE-2026-80898NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.18
NoYesSep 04, 2026
CVE-2026-80897NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026
CVE-2026-80892NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management