Race Condition in Linux Kernel Affecting Inotify Functionality
CVE-2025-40237

Currently unrated

Key Information:

Vendor

Linux

Status
Vendor
CVE Published:
4 December 2025

What is CVE-2025-40237?

A race condition vulnerability exists in the Linux Kernel, specifically impacting the inotify functionality. When invoking intotify_show_fdinfo() on a file descriptor associated with an overlayfs inode during the unmounting process, it can lead to a NULL pointer dereference. This occurs as a result of modifications to the inode's superblock root during shutdown operations. The issue was identified using syzkaller, revealing potential exposure to general protection faults. A proposed fix ensures that calls to exportfs_encode_fid() are protected by acquiring the s_umount lock, preventing access to de-referenced pointers once they are set to NULL. Various changes in the kernel ensure enhanced stability and performance while addressing this critical flaw.

Affected Version(s)

Linux f0c0ac84de17c37e6e84da65fb920f91dada55ad

Linux 3c7c90274ae339e1ad443c9be1c67a20b80b9c76 < 3f307a9f7a7a2822e38ac451b73e2244e7279496

Linux c45beebfde34aa71afbc48b2c54cdda623515037

References

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.
CVE-2025-40237 : Race Condition in Linux Kernel Affecting Inotify Functionality