CVE-2026-143238: NFS: Fix inverted cross-directory rename check
In the Linux kernel, the following vulnerability has been resolved:
NFS: Fix inverted cross-directory rename check
nfsrenameisunsafecrossdir() returns false for cross-directory renames, causing nfsrename() to skip nfssyncinode() even when filehandles may expire on rename. Same-directory renames may instead trigger unnecessary synchronization.
Current condition directly contradicts the function name/comments.
Return false for same-directory renames so cross-directory renames reach the existing filehandle-volatility check. Keep the conservative fallback unchanged..
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.2 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.7 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.15 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel NFS client are affected when they perform cross-directory rename operations. The issue is relevant where NFS filehandles may expire on rename.
What condition is needed to trigger the problem?
A cross-directory rename through NFS is required. In the affected logic, that operation can skip inode synchronization because the cross-directory safety check returns the wrong result.
How can I determine whether a fix is available for my kernel?
Check whether your kernel includes one of the referenced stable commits: 5cd89cef54c0fc5d7e7b204dac77ea50df879b87, 6ad1f6fb958f5e846c09347721ca7d1ca9e6385f, or cc7329a3a542356c10e4fe28fbb68b4f4de1e792.