CVE-2022-50314
Linux Kernel vulnerability analysis and mitigation

Overview

A race condition vulnerability was discovered in the Linux kernel's Network Block Device (NBD) implementation, specifically in the nbdstartdeviceioctl() function. The vulnerability was disclosed on September 15, 2025, affecting various versions of the Linux kernel. The issue occurs when a signal interrupts nbdstartdeviceioctl() while waiting for the condition atomicread(&config->recvthreads) == 0 (NVD, Red Hat).

Technical details

The vulnerability manifests as a race condition in the NBD device initialization process. When a signal interrupts nbdstartdevice_ioctl() during its wait state, the task can become hung because it waits for the completion of inflight I/Os. The issue has been assigned a CVSS v3.1 base score of 4.4 with vector CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H and is categorized under CWE-667 (Improper Locking) (Red Hat).

Impact

The vulnerability can result in a local denial of service condition where the NBD device becomes unresponsive. The system may end up with stuck I/O operations and an unresponsive NBD device. Since the issue can only be triggered by a privileged user with direct access to /dev/nbdX, it is classified as a local DoS vulnerability rather than a privilege escalation or memory corruption risk (Red Hat).

Mitigation and workarounds

The vulnerability has been fixed by modifying the behavior to clear the queue, not just shutdown, when a signal interrupts nbdstartdevice_ioctl(). Various Linux distributions have released patches to address this issue. Red Hat has marked this for deferred fixes in RHEL 8 and 9, while some versions are not affected or out of support scope (Red Hat).

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-2025-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-modules-partner
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • python3-perf
NoNoDec 04, 2025

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