CVE-2026-64387 smb: client: fix query directory replay double-free

Critical 9.8 Published Updated

A double-free vulnerability in the Linux kernel SMB client allows attackers to cause denial of service or potentially execute code via crafted directory queries.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-64387?

CVE-2026-64387 is a critical use after free vulnerability in Linux kernel, published on 25 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-415

Which versions are affected by CVE-2026-64387?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-64387?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-64387 being exploited?

There is no known exploitation of CVE-2026-64387 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-93524, BELL-CVE-2026-64387, DEBIAN-CVE-2026-64387, GHSA-mg93-xg28-xr4m, ROOT-OS-UBUNTU-2204-CVE-2026-64387, UBUNTU-CVE-2026-64387.

Is CVE-2026-64387 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free