CVE-2026-64387
smb: client: fix query directory replay double-free
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.
INFO
Published Date :
July 25, 2026, 10:17 a.m.
Last Modified :
July 25, 2026, 10:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products
The following products are affected by CVE-2026-64387
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
Solution
- Update the Linux kernel to resolve the double-free issue.
- Ensure response bookkeeping is reset before each attempt.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64387.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64387 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64387
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64387 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64387 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 25, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '433042a91f9373241307725b52de573933ffedbf', 'lessThan': '3409aedf3c81a810243da94164f6621c9d205c98', 'versionType': 'git'}, {'status': 'affected', 'version': '4f1fffa2376922f3d1d506e49c0fd445b023a28e', 'lessThan': '1665f25b1dea30bf2d02e16245d203a944c9d994', 'versionType': 'git'}, {'status': 'affected', 'version': '4f1fffa2376922f3d1d506e49c0fd445b023a28e', 'lessThan': '00b0fa425941438b664950a8ee65dfba2def4336', 'versionType': 'git'}, {'status': 'affected', 'version': '4f1fffa2376922f3d1d506e49c0fd445b023a28e', 'lessThan': '3317a5d015fca976475aa71df224056777316fde', 'versionType': 'git'}, {'status': 'affected', 'version': '4f1fffa2376922f3d1d506e49c0fd445b023a28e', 'lessThan': '9647492b5e41954be59d5157eddbcd4cdc1656f7', 'versionType': 'git'}, {'status': 'affected', 'version': '6.6.32', 'lessThan': '6.6.145', 'versionType': 'semver'}], 'programFiles': ['fs/smb/client/smb2pdu.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.8'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.8', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/smb/client/smb2pdu.c'], 'defaultStatus': 'affected'}] 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. Added Reference https://git.kernel.org/stable/c/00b0fa425941438b664950a8ee65dfba2def4336 Added Reference https://git.kernel.org/stable/c/1665f25b1dea30bf2d02e16245d203a944c9d994 Added Reference https://git.kernel.org/stable/c/3317a5d015fca976475aa71df224056777316fde Added Reference https://git.kernel.org/stable/c/3409aedf3c81a810243da94164f6621c9d205c98 Added Reference https://git.kernel.org/stable/c/9647492b5e41954be59d5157eddbcd4cdc1656f7