Description
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.
Published: 2026-08-10
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in the CIFS file close handling code of the Linux kernel. When a deferred close operation is canceled, a subsequent memory allocation may fail, causing the code to break prematurely and leave a reference to the CIFS file (cfile) unreleased. The leaked kernel‑space reference and the associated open server handle can accumulate over repeated failures. The resulting resource exhaustion can destabilize the kernel, leading to a denial‑of‑service condition.

Affected Systems

All Linux kernel builds that contain the CIFS filesystem and have not yet incorporated the commit that adds the fix (32390b3f06f26e36) are affected. This includes ordinary production kernels and any custom builds that ship without the patch. The specific kernel versions are not enumerated, so any system using a vulnerable kernel is at risk.

Risk and Exploitability

The vulnerability does not provide an attack vector that enables arbitrary code execution; it requires kernel context and conditions that lead to a memory allocation failure. No public exploits exist and the EPSS score is < 1%, and the vulnerability is not in CISA’s KEV catalogue. The CVSS score of 5.5 indicates moderate severity. Consequently, the threat is moderate: a skilled attacker who can induce sufficient memory pressure or monitor resource usage could exploit the leak to exhaust kernel memory and disrupt services, but the likelihood of exploitation in the wild is low.

Generated by OpenCVE AI on August 13, 2026 at 04:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the CIFS close‑path fix (commit 32390b3f06f26e36 or later).
  • If the system permits, reload the CIFS module (modprobe -r cifs && modprobe cifs) to quickly apply the patch without rebooting.
  • After applying the update or reload, monitor kernel memory usage and network connection counts for abnormal growth, which may indicate a leak.

Generated by OpenCVE AI on August 13, 2026 at 04:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-404

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Mon, 10 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-404

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description 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.
Title cifs: fix cifsFileInfo leak on kmalloc failure in deferred close drain paths
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:03:08.764Z

Reserved: 2026-07-30T09:28:09.381Z

Link: CVE-2026-68312

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:21.060

Modified: 2026-08-17T05:18:34.070

Link: CVE-2026-68312

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T00:00:00Z

Links: CVE-2026-68312 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T04:30:06Z

Weaknesses
  • CWE-911

    Improper Update of Reference Count