CVE-2026-72315: smb: client: fix busy dentry warning on unmount after DIO

Published Aug 15, 2026
·
Updated

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

smb: client: fix busy dentry warning on unmount after DIO

Commit c68337442f03 ("cifs: Fix busy dentry used after unmounting") fixed the issue in cifs where deferred close of a file led to a dentry reference count not being released in umount, by flushing deferredclosewq in cifskillsb() to solve it.

However, the cifs DIO path suffers from the same busy-dentry problem caused by a delayed dentry reference-count release:

[dio] [cifsd] [close + umount] netfsunbufferedwriteiterlocked ... cifsdemultiplexthread netfsunbufferedwrite cifsissuewrite netfswaitforinprogressstream [1] ... netfswritesubrequestterminated netfssubreqclearinprogress netfswakecollector // wake [1] netfsputsubrequest netfsputrequest queuework(systemdflwq, xxx) [2] // dio write return cifsclose cifsFileInfoput // cfile->count 2->1 --cfile->count [3]

// umount cifskillsb killanonsuper // warning triggered! shrinkdcacheforumount [4] [systemdflwq] [5] netfsfreerequest ... cifsFileInfoput // cfile->count 1->0 --cfile->count queuework(fileinfoputwq, xxx)

[fileinfoputwq] [6] cifsFileInfoputwork cifsFileInfoputfinal dput

If the umount path is triggered before [5], it results warning: BUG: Dentry 00000000eab1f070{i=9a917b66ae404fec,n=test} still in use (1) [unmount of cifs cifs]

The existing per-inode ictx->iocount wait in cifsevictinode() does not help: it lives in the inode eviction path, which runs after shrinkdcacheforumount() has already warned about the busy dentries.

Fix it by adding a per-superblock outstanding-rreq counter that is incremented in cifsinitrequest() and decremented in cifsfreerequest(). In cifskillsb(), before killanonsuper(), wait for this counter to reach 0 - which guarantees that all cleanupwork for this sb have run and thus all relevant cfile puts are queued on fileinfoputwq or serverclosewq. Then drain the workqueue so the dentry refs are dropped.

This is a targeted wait, not a flush of the system-wide systemdflwq.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel cifs to a version that resolves this vulnerability.

    Patch c68337442f03

Event History

Aug 15, 2026
CVE Published
via MITRE·05:55 AM
Data Sourced
via MITRE·05:55 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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
CVE-2026-72315 - smb: client: fix busy dentry warning on unmount after DIO - SecAlerts