CVE-2026-99478: filelock: keep superblock active through delegation wait
In the Linux kernel, the following vulnerability has been resolved:
filelock: keep superblock active through delegation wait
A caller may drop its path after trybreakdeleg() returns a delegated inode but before breakdelegwait() finishes. The extra inode reference held in struct delegatedinode does not keep the superblock active.
After a lazy unmount, closing the delegation holder can release the last mount reference and shut down the superblock while another task waits for the delegation break. The waiter's final iput() can then enter the filesystem's eviction code after its superblock-private state was freed. This has been observed as a KASAN use-after-free in shmemevictinode().
When trybreakdeleg() saves a delegated inode, take an active reference to its superblock while the caller still pins the mount. Keep that reference through breakdelegwait() and the final iput(), then release it with deactivatesuper(). This protects every caller of the helpers, including the mknod, mkdir, symlink and rmdir paths that drop their path before waiting.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
In try_break_deleg(), take an active superblock reference when saving a delegated inode before waiting; hold it through break_deleg_wait() and the final iput(), then release it with deactivate_super().