CVE-2026-97558: smb: client: fix cifsFileInfo reference leak in deferred close

Published Sep 25, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix cifsFileInfo reference leak in deferred close

When cifsclose() defers a close, it hands the cifsFileInfo reference of the closing struct file to the queued work. Each execution of smb2deferredworkclose() drops one such reference.

deferredclosescheduled 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 deferredlock. 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 cifsopen() can reuse the handle and its cifsclose() reaches the same branch: queuedelayedwork() fails because the work is still pending, but cifsclose() 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 cifsFileInfoput(), like the moddelayedwork() branch above: the pending execution already owns its reference.

This issue was found by an in-house static analysis tool.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 25, 2026
CVE Published
via MITRE·10:21 AM
Data Sourced
via MITRE·10:21 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux systems using the SMB/CIFS client can be affected when deferred close handling is exercised. The leak concerns client-side cifsFileInfo objects and can retain associated tlink, dentry, and server-handle resources.

2

What conditions are needed to trigger the leak?

A close must defer its work while a prior deferred-close callback is running in the interval where the work is pending but deferred_close_scheduled has not yet been cleared under the deferred lock. A later handle reuse and close can then attempt to queue already-pending work, causing the closing file's reference not to be dropped.

3

What is the practical impact if the condition occurs repeatedly?

The cifsFileInfo reference count remains pinned, leaking the cifsFileInfo and its associated tlink, dentry, and server handle. Repeated occurrences can accumulate unreleased client-side SMB resources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203