Optimistic Retrieval of Stached Dentry Can Lead to UAF
CVE-2024-46801
Currently unrated 🤨
Summary
In the Linux kernel, the following vulnerability has been resolved: libfs: fix get_stashed_dentry() get_stashed_dentry() tries to optimistically retrieve a stashed dentry from a provided location. It needs to ensure to hold rcu lock before it dereference the stashed location to prevent UAF issues. Use rcu_dereference() instead of READ_ONCE() it's effectively equivalent with some lockdep bells and whistles and it communicates clearly that this expects rcu protection.
Affected Version(s)
Linux < 03e2a1209a83
Linux < 4e32c25b58b9
Linux <= 6.9
Timeline
Vulnerability published.
Vulnerability Reserved.
Collectors
NVD DatabaseMitre Database