CVE-2026-68312cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths
Updated under an hour ago ()
Does this affect you?
It affects Linux. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
In the Linux kernel, the following vulnerability has been resolved: cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths In cifs_close_deferred_file(), cifs_close_all_deferred_files(), and cifs_close_deferred_file_under_dentry(), when a pending deferred close is cancelled via cancel_delayed_work(), the subsequent kmalloc_obj() to add the file to the local processing list may fail under memory pressure. The loop breaks immediately, but the cancelled work is no longer pending (it would have called _cifsFileInfo_put()), and the cfile is never added to file_head for processing. The cifsFileInfo reference and the open server handle both leak. Fix by saving the cfile that failed allocation in a local variable, breaking as before, and calling _cifsFileInfo_put() on it after releasing the lock. Any files later in the iteration are unaffected since their deferred work is still pending and will fire normally.
- CVSS
- Not yet scored
- Weakness (CWE)
- Not given
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Linux
- NVD analysis
- Received
- Record last updated
- Oct 15, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Linux Linux linux:linux (from the name) | from e3fc065682ebbbd15b0ce0036800f4acbf765d46 before 6089f561e2c31a3ba52836c75c7d2ab50d2eea41; from e3fc065682ebbbd15b0ce0036800f4acbf765d46 before 32390b3f06f26e366cfb27dbac4bc0196c321535; from e3fc065682ebbbd15b0ce0036800f4acbf765d46 before c2f2e83e3bbc5483730fd4ee903182761f1ae50f | CNA record |
References
- https://git.kernel.org/stable/c/6089f561e2c31a3ba52836c75c7d2ab50d2eea41
- https://git.kernel.org/stable/c/32390b3f06f26e366cfb27dbac4bc0196c321535
- https://git.kernel.org/stable/c/c2f2e83e3bbc5483730fd4ee903182761f1ae50f
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.