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

smb: client: fix double-free in SMB2_close() replay

A response-bearing attempt can return a replayable error and free its
response buffer. If SMB2_close_init() fails before the next send, cleanup
retains the previous buffer type and frees that response again.

Reset response bookkeeping before each attempt to prevent the stale free.
Published: 2026-08-06
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel SMB client had a flaw where a double‑free could occur during the SMB2_close replay path. When a response‑bearing call returned a replayable error, the response buffer was freed, and if SMB2_close_init() failed before the next send, the cleanup code reused the stale buffer type and freed it again. This misuse of memory bookkeeping can corrupt the heap, potentially enabling an attacker that can manipulate SMB traffic to trigger arbitrary code execution or cause a denial of service.

Affected Systems

The vulnerability affects all Linux kernel releases that contain the buggy SMB client code. No specific version information is listed, but any kernel that has not yet applied the patch will be vulnerable.

Risk and Exploitability

The exploit requires crafting SMB requests that invoke the faulty close routine, which can be performed remotely over the network. Because the double free can corrupt heap objects arbitrarily, it is a high impact vulnerability. EPSS is not available, KEV not listed, and CVSS not defined, but the severity can be inferred as high. Organizations using SMB clients on Linux should consider the risk of remote code execution or crash until a patch is applied.

Generated by OpenCVE AI on August 6, 2026 at 08:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest official release that includes the fix or apply the upstream commit(s).
  • If an immediate kernel upgrade is not possible, restrict SMB traffic to the hosts using a firewall or by disabling SMB protocol support in the kernel configuration.
  • Monitor the system logs for abnormal SMB activity and plan a timely kernel update.

Generated by OpenCVE AI on August 6, 2026 at 08:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 06 Aug 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Thu, 06 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: fix double-free in SMB2_close() replay A response-bearing attempt can return a replayable error and free its response buffer. If SMB2_close_init() fails before the next send, cleanup retains the previous buffer type and frees that response again. Reset response bookkeeping before each attempt to prevent the stale free.
Title smb: client: fix double-free in SMB2_close() replay
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-06T07:13:52.117Z

Reserved: 2026-07-19T15:36:31.799Z

Link: CVE-2026-64597

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-06T09:00:10Z

Weaknesses