CVE-2025-21850
Linux Kernel vulnerability analysis and mitigation

Overview

In the Linux kernel, CVE-2025-21850 addresses a vulnerability in the nvmet subsystem that can cause a system crash when a namespace is disabled. The issue was discovered in March 2025 and affects Linux kernel versions from 6.13 through 6.13.5 and release candidates 6.14-rc1 through 6.14-rc3. The vulnerability occurs due to improper handling of pending I/O operations during namespace disablement (NVD).

Technical details

The vulnerability stems from a race condition in the nvmet subsystem where the namespace percpu counter, which protects pending I/O operations, is not properly handled during namespace disablement. This can lead to a crash when the queue is torn down while calling submit_bio(). The issue manifests as a general protection fault with a null pointer dereference, particularly visible when running blktests/nvme/058 for loop transport. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 MEDIUM (Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) (NVD).

Impact

When exploited, this vulnerability results in a system crash (denial of service) when a namespace is disabled while I/O operations are still pending. The crash occurs due to a null pointer dereference in the kernel's nvmet subsystem, affecting system stability and availability (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through patches that properly initialize the percpu counter in nvmetnsenable() and ensure it drops to zero in nvmetnsdisable() before completing the namespace disablement. Users should update to patched versions of the kernel. The fix is documented in commit 4082326807072b71496501b6a0c55ffe8d5092a5 (Kernel Patch).

Additional resources


SourceThis report was generated using AI

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