CVE-2022-50401
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50401 is a vulnerability in the Linux kernel's NFSv4.1 implementation, discovered and disclosed in September 2025. The vulnerability specifically affects the NFSd (Network File System daemon) component when handling callback setup under NFSv4.1 protocol (NVD, Red Hat).

Technical details

The vulnerability occurs due to a double svcxprtput operation on rpccreate failure in the NFSv4.1 callback setup. When an error situation occurs, `clp->clcbconn.cbxprt` incorrectly receives a reference to the xprt, causing both client cleanup and the error handling path to attempt to release it. This leads to a refcount underflow condition and potential use-after-free scenario (Red Hat). The vulnerability has been assigned a CVSS v3.1 Base Score of 5.1 with attack vector: Local, attack complexity: High (Red Hat).

Impact

The vulnerability can result in a server-side denial of service condition. When triggered, it can cause a refcount underflow and use-after-free situation, potentially leading to kernel oops or panic. This can be initiated by a misbehaving client or during resource-pressure situations during callback establishment (Red Hat).

Mitigation and workarounds

The fix involves modifying the reference handling in the NFSv4.1 callback setup code to delay handing over the reference to a later branch, preventing the double-put situation. Various Linux distributions have different patch status: Red Hat Enterprise Linux 8 and 9 have deferred the fix, while Red Hat Enterprise Linux 7 is not affected (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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesDec 09, 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