CVE-2025-68185
nfs4_setup_readdir(): insufficient locking for ->d_parent->d_inode dereferencing
Description
In the Linux kernel, the following vulnerability has been resolved: nfs4_setup_readdir(): insufficient locking for ->d_parent->d_inode dereferencing Theoretically it's an oopsable race, but I don't believe one can manage to hit it on real hardware; might become doable on a KVM, but it still won't be easy to attack. Anyway, it's easy to deal with - since xdr_encode_hyper() is just a call of put_unaligned_be64(), we can put that under ->d_lock and be done with that.
INFO
Published Date :
Dec. 16, 2025, 2:15 p.m.
Last Modified :
Dec. 16, 2025, 2:15 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Apply the Linux kernel patch.
- Protect d_parent->d_inode dereferencing with d_lock.
- Ensure XDR encode calls use put_unaligned_be64 under d_lock.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-68185.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-68185 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-68185
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-68185 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-68185 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 16, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: nfs4_setup_readdir(): insufficient locking for ->d_parent->d_inode dereferencing Theoretically it's an oopsable race, but I don't believe one can manage to hit it on real hardware; might become doable on a KVM, but it still won't be easy to attack. Anyway, it's easy to deal with - since xdr_encode_hyper() is just a call of put_unaligned_be64(), we can put that under ->d_lock and be done with that. Added Reference https://git.kernel.org/stable/c/40be5b9080114f18b0cea386db415b68a7273c1a Added Reference https://git.kernel.org/stable/c/504b3fb9948a9e96ebbabdee0d33966a8bab15cb Added Reference https://git.kernel.org/stable/c/6025f641a0e30afdc5aa62017397b1860ad9f677 Added Reference https://git.kernel.org/stable/c/a890a2e339b929dbd843328f9a92a1625404fe63 Added Reference https://git.kernel.org/stable/c/e6cafe71eb3b5579b245ba1bd528a181e77f3df1 Added Reference https://git.kernel.org/stable/c/eacfd08b26a062f1095b18719715bc82ad35312e Added Reference https://git.kernel.org/stable/c/f5e570eaab36a110c6ffda32b87c51170990c2d1 Added Reference https://git.kernel.org/stable/c/fa4daf7d11e45b72aad5d943a7ab991f869fff79