cvelo
P2 · HighCVSS 8.8EPSS 1.1%

smb: client: hold the inode across cifs_oplock_break()

  • CVE-2026-143041
  • GHSA-j738-7v9f-g5pm
  • EUVD-2026-142658

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.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run a version from 4.19.37 to before 4.20update to 4.20 or laterMinor version change: check the release notes
    • If you run a version from 4.14.114 to before 4.15update to 4.15 or laterMinor version change: check the release notes
    • If you run a version from 4.9.171 to before 4.10update to 4.10 or laterMinor version change: check the release notes
    • If you run a version from 3.16.72 to before 3.17update to 3.17 or laterMinor version change: check the release notes

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 4.19.37 to before 4.204.20
    from 4.14.114 to before 4.154.15
    from 4.9.171 to before 4.104.10
    from 3.16.72 to before 3.173.17
    from 5.0.10 to before 5.1none stated
    5.1none stated
    before 5.1: not affectednone stated
    from 6.12.120 up to 6.12.*: not affectednone stated

    and 3 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.