Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143041

smb: client: hold the inode across cifs_oplock_break()

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: hold the inode across cifs_oplock_break() cifs_oplock_break() drops the handle reference in the middle of the handler and keeps using cinode afterwards, to send the break acknowledgment and again in cifs_done_oplock_break(). The reference cifs_queue_oplock_break() 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 cifsFileInfo_put_final() kills an unhashed dentry, drops the last i_count 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 cifs_get_tlink() failure path, where the put is followed directly by the out label.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • b98749cac4a695f084a5ff076f4510b23e353ecd to < f8df9baf35045c3189ae204310dcb2e3aab56ea2affected
  • b98749cac4a695f084a5ff076f4510b23e353ecd to < 800f206086ad962450ccbfbe1de8c90bd29db70aaffected
  • b98749cac4a695f084a5ff076f4510b23e353ecd to < fd56b0cb4d71e3679214dc28f7d70bf740279478affected
  • b98749cac4a695f084a5ff076f4510b23e353ecd to < fce78321f1b59531cf6fc94860550db1db8dec55affected
  • 2429fcf06d3cb962693868ab0a927c9038f12a2daffected
  • 1ee4f2d7cdcd4508cc3cbe3b2622d7177b89da12affected
  • 53fc31a4853e30d6e8f142b824f724da27ff3e40affected
  • 8092ecc306d81186a64cda42411121f4d35aaff4affected
  • ebac4d0adf68f8962bd82fcf483936edd6ec095baffected
  • 3.16.72 to < 3.17affected
  • 4.9.171 to < 4.10affected
  • 4.14.114 to < 4.15affected
  • 4.19.37 to < 4.20affected
  • 5.0.10 to < 5.1affected

Linux Linux

Default version status: affected

  • 5.1affected
  • 0 to < 5.1unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References