AZL-117989: CVE-2026-143041 affecting package kernel 6.6.161.1-1
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
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
The issue occurs during CIFS/SMB client oplock-break handling when the handler drops its handle reference and continues using the inode. A relevant state can arise when an open file is unlinked, leaving its dentry unhashed, or during dcache teardown at unmount.
What is the impact of the reference-handling flaw?
Dropping the final relevant reference can evict the inode while the oplock-break handler still uses it. The handler may then operate on an object whose freeing is deferred only by RCU.
Does the problem also affect an error path?
Yes. The described fix also covers the cifs_get_tlink() failure path, where the handle reference is dropped before control reaches the out label.