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

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-07-25T08:50:35.543Z
- Modified: 2026-10-19T21:17:35.290Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 433042a91f9373241307725b52de573933ffedbf before 3409aedf3c81a810243da94164f6621c9d205c98; from 4f1fffa2376922f3d1d506e49c0fd445b023a28e before 1665f25b1dea30bf2d02e16245d203a944c9d994; from 4f1fffa2376922f3d1d506e49c0fd445b023a28e before 00b0fa425941438b664950a8ee65dfba2def4336; from 4f1fffa2376922f3d1d506e49c0fd445b023a28e before 3317a5d015fca976475aa71df224056777316fde; from 4f1fffa2376922f3d1d506e49c0fd445b023a28e before 9647492b5e41954be59d5157eddbcd4cdc1656f7; from 6.6.32 before 6.6.145; 6.8 (not affected: before 6.8; from 6.6.145 up to 6.6.*; from 6.12.96 up to 6.12.*; from 6.18.39 up to 6.18.*; from 7.1.4 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 6.6.32 before 6.6.145; from 6.8.1 before 6.12.96; from 6.13 before 6.18.39; from 6.19 before 7.1.4; 6.8

## References

- <https://git.kernel.org/stable/c/3409aedf3c81a810243da94164f6621c9d205c98> (patch)
- <https://git.kernel.org/stable/c/1665f25b1dea30bf2d02e16245d203a944c9d994> (patch)
- <https://git.kernel.org/stable/c/00b0fa425941438b664950a8ee65dfba2def4336> (patch)
- <https://git.kernel.org/stable/c/3317a5d015fca976475aa71df224056777316fde> (patch)
- <https://git.kernel.org/stable/c/9647492b5e41954be59d5157eddbcd4cdc1656f7> (patch)

## Sources

- CVE List: [CVE-2026-64387](https://www.cve.org/CVERecord?id=CVE-2026-64387), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-64387](https://nvd.nist.gov/vuln/detail/CVE-2026-64387), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-64387 · Whole record: https://cve.day/CVE-2026-64387.json · Rebuilt by cve.day 2026-11-25T22:59:30.097Z
