Vulnerability in Kernel: nvmet freeing unallocated p2pmem

Kernel Updated 02 Oct 2025

Summary

25/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000797: nvmet: fix freeing unallocated p2pmem. Affects Kernel versions >= c6e3f13398123a008cd2ee28f93510b113a32791, < 8a452d62e7cea3c8a2676a3b89a9118755a1a271. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Kernel is a crucial component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software. It provides essential functionality for the functioning of the entire system. One of its features is nvmet, which is responsible for handling NVMe over Fabrics (NVMe-oF) storage devices. NVMe-oF allows remote access to NVMe storage devices over a network. However, a vulnerability has been identified in the nvmet module, specifically related to freeing unallocated p2pmem.

Vulnerability Detail

The vulnerability in the nvmet module of the Kernel allows an attacker to free unallocated p2pmem, leading to potential memory corruption or other undefined behavior. This vulnerability was introduced in version v5.8 of the Linux Kernel and was fixed in version v5.12.10. If exploited, an attacker could potentially execute arbitrary code, escalate privileges, or cause a denial of service. The impact and attack plausibility of this vulnerability have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a workaround, users can disable the nvmet module if it is not required for their system. This can be achieved by modifying the Kernel configuration and rebuilding it without the nvmet module. However, this workaround should only be considered if the nvmet functionality is not essential for the system's operation.

Conclusion

The vulnerability in the Kernel's nvmet module can have severe consequences if exploited. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. Regularly updating the Kernel ensures that the system benefits from the latest security fixes and enhancements. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a critical component of the Linux operating system, responsible for managing system resources and facilitating communication between hardware and software.

nvmet is a module in the Kernel that handles NVMe over Fabrics (NVMe-oF) storage devices, allowing remote access to NVMe storage devices over a network.

If exploited, this vulnerability can lead to memory corruption, arbitrary code execution, privilege escalation, or denial of service.

To fix this vulnerability, update the Linux Kernel to version v5.12.10 or later, which includes the necessary patch to address the issue.

Yes, users can disable the nvmet module if it is not required for their system. However, this should only be considered if the nvmet functionality is not essential.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback