CVE-2026-68312: cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths
In the Linux kernel, the following vulnerability has been resolved:
cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths
In cifsclosedeferredfile(), cifsclosealldeferredfiles(), and cifsclosedeferredfileunderdentry(), when a pending deferred close is cancelled via canceldelayedwork(), the subsequent kmallocobj() 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 cifsFileInfoput()), and the cfile is never added to filehead 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 cifsFileInfoput() 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-68312?
The severity of CVE-2026-68312 is rated as 12.
How do I fix CVE-2026-68312?
To fix CVE-2026-68312, update to the latest patched version of the Linux kernel.
What systems are affected by CVE-2026-68312?
CVE-2026-68312 affects systems running vulnerable versions of the Linux kernel that utilize the CIFS protocol.
What is the impact of CVE-2026-68312?
CVE-2026-68312 can lead to a potential memory leak during file closure operations in the CIFS implementation.
When was CVE-2026-68312 published?
CVE-2026-68312 was published on August 10, 2026.