CVE-2026-97558

smb: client: fix cifsFileInfo reference leak in deferred close

Description

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix cifsFileInfo reference leak in deferred close When cifs_close() defers a close, it hands the cifsFileInfo reference of the closing struct file to the queued work. Each execution of smb2_deferred_work_close() drops one such reference. deferred_close_scheduled can be false while the work is pending: the workqueue clears PENDING when the callback starts to run, before the callback clears the flag under deferred_lock. A close in that interval requeues the running work, and the callback then clears the flag, leaving the requeued work pending with the flag down. A later cifs_open() can reuse the handle and its cifs_close() reaches the same branch: queue_delayed_work() fails because the work is still pending, but cifs_close() returns without dropping the closing file's reference. The cifsFileInfo count stays pinned and its tlink, dentry and server handle are leaked. Check the return value and hand off the reference only when work was actually queued. Otherwise, use the shared _cifsFileInfo_put(), like the mod_delayed_work() branch above: the pending execution already owns its reference. This issue was found by an in-house static analysis tool.

Key facts

Published
25 Sep 2026
Last changed
30 Oct 2026
Assigned by
Linux
EPSS
0.228% likely to be exploited in the next 30 days, higher than 13.703% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • c3f207ab29f793b8c942ce8067ed123f18d5b81b up to but excluding 645a7359c1f740152464edf84f1030e0cad42c9d (affected)
  • c3f207ab29f793b8c942ce8067ed123f18d5b81b up to but excluding 46d98be6c34a52182ea3c2f849a3ea0e9419eaf2 (affected)
  • c3f207ab29f793b8c942ce8067ed123f18d5b81b up to but excluding 525c225e23d61694091f2806de553a69362a78ff (affected)
  • c3f207ab29f793b8c942ce8067ed123f18d5b81b up to but excluding bbeb7a42c9ea656e17ddcbdc2d7917aa853383a6 (affected)
  • c3f207ab29f793b8c942ce8067ed123f18d5b81b up to but excluding a6767712902beb0f53238be485971c9a83ea1079 (affected)
  • c3f207ab29f793b8c942ce8067ed123f18d5b81b up to but excluding ea93759d6c2789924f4e557aed5be532207715ea (affected)
  • c3f207ab29f793b8c942ce8067ed123f18d5b81b up to but excluding 5520e89a5a4f834bced64cf2ac927001cc513a40 (affected)
LinuxLinux
  • Default status: affected
  • 5.13 (affected)
  • 0 up to but excluding 5.13 (unaffected)
  • 5.15.224 up to and including 5.15.* (unaffected)
  • 6.1.191 up to and including 6.1.* (unaffected)
  • 6.6.160 up to and including 6.6.* (unaffected)
  • 6.12.113 up to and including 6.12.* (unaffected)
  • 6.18.54 up to and including 6.18.* (unaffected)
  • 7.2.7 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 25 Sep 2026 Published

References