CVE-2026-143041: smb: client: hold the inode across cifs_oplock_break()
In the Linux kernel, the following vulnerability has been resolved:
smb: client: hold the inode across cifsoplockbreak()
cifsoplockbreak() drops the handle reference in the middle of the handler and keeps using cinode afterwards, to send the break acknowledgment and again in cifsdoneoplockbreak(). The reference cifsqueueoplockbreak() takes is the only pin: the handle holds the dentry and the dentry is what keeps the inode alive.
When that put is the last reference, the dput() in cifsFileInfoputfinal() kills an unhashed dentry, drops the last icount and evicts the inode, so the rest of the handler runs on an object whose free is only RCU-deferred. An unhashed dentry that a handle still references is an ordinary state: unlinking an open file leaves the dentry that way, and so does the dcache teardown at unmount.
Take a reference on the inode for the lifetime of the handler and drop it once the break has been reported. This also covers the cifsgettlink() failure path, where the put is followed directly by the out label.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel SMB client, hold an inode reference for the lifetime of cifs_oplock_break() and drop it once the break has been reported.
Event History
Frequently Asked Questions
When can this lifetime issue be triggered?
It can occur during SMB client oplock-break handling when the associated handle is the last reference keeping an inode alive. This includes an open file that has been unlinked, which leaves its dentry unhashed, and dcache teardown during unmount.
What happens if the last handle reference is released during the handler?
Releasing that reference can cause the dentry to be dropped and the inode to be evicted while oplock-break processing continues to use the inode. The subsequent acknowledgment and completion handling can therefore operate on an object whose freeing is deferred only by RCU.