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

smb: client: fix query directory replay double-free

A response-bearing attempt can return a replayable error and free its
response buffer. If SMB2_query_directory_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-07-25
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s SMB client contains a double‑free bug when a query directory operation receives a replayable error. The bug frees the same response buffer twice, resulting in memory corruption. The weakness is identified as CWE‑1341 (Improper Validation of Self‑Input).

Affected Systems

All Linux systems running a kernel that includes the SMB client implementation prior to the fixed commit are potentially affected. The CNA lists the vendor as Linux and the product as Linux kernel, but no specific version range is provided, so any kernel lacking the fix could be vulnerable.

Risk and Exploitability

The CVSS score of 9.8 indicates critical severity. The EPSS score of <1% shows a very low probability of exploitation, and the vulnerability is not listed in CISA KEV. Based on the description, the likely attack vector is a malicious or faulty SMB server that triggers the replayable error, which could be used by an attacker who can communicate with the vulnerable client.

Generated by OpenCVE AI on August 5, 2026 at 00:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes commit 00b0fa4, which restores correct response bookkeeping and prevents the double free.
  • Apply any pending security updates or patches from the distribution that incorporate the latest Linux kernel fixes.
  • If the SMB client is not required for your environment, consider disabling it or removing the corresponding kernel modules to reduce the attack surface while a patch is applied.

Generated by OpenCVE AI on August 5, 2026 at 00:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Tue, 04 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415

Thu, 30 Jul 2026 03:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415

Wed, 29 Jul 2026 12:15:00 +0000

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

None

threat_severity

Moderate


Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: fix query directory replay double-free A response-bearing attempt can return a replayable error and free its response buffer. If SMB2_query_directory_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 query directory replay double-free
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-05T12:41:24.033Z

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

Link: CVE-2026-64387

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:22.020

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64387

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64387 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T00:45:03Z

Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle