All reports
Medium

kernel: nfs4_setup_readdir(): insufficient locking for ->d_parent->d_inode dereferencing

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-68185

Probability of exploitation in the next 30 days: 0.23%

FIRST EPSS · 2026-11-23

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.

A race condition exists in the NFS4 client's nfs4_setup_readdir() function in the Linux kernel. The code dereferences ->d_parent->d_inode without holding d_lock, creating a theoretical race where the parent could be changed during the operation, leading to a null pointer dereference.