In the Linux kernel, the following vulnerability has been resolved: NFS: Fix inverted cross-directory rename check nfs_rename_is_unsafe_cross_dir() returns false for cross-directory renames, causing nfs_rename() to skip nfs_sync_inode() 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..
https://git.kernel.org/stable/c/cc7329a3a542356c10e4fe28fbb68b4f4de1e792
https://git.kernel.org/stable/c/b9d518902ff1969f93d2b4787951d98e50ab0181
https://git.kernel.org/stable/c/6ad1f6fb958f5e846c09347721ca7d1ca9e6385f
https://git.kernel.org/stable/c/5cd89cef54c0fc5d7e7b204dac77ea50df879b87