# CVE-2026-64016: ksmbd: fix durable reconnect error path file lifetime

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-07-19T15:39:11.266Z
- **Modified:** 2026-10-13T14:48:12.317Z

## Who should check

- Anyone running Linux \>= f0ff7f12398e85b3a11745ff7feab6246f3d75c2, \< 5e641e4ee0bc1937408d41051a908ad4151be63b; \>= 4db3dcac84c2f14a45ae201efb38de1fb1bfc009, \< 478bfaa036bd0c7e179acff8b8484bccdee3b8c7; \>= ce2e164c1c51c3f7813b80f8c926836e896bcbb3, \< a1a39f227c80cbf369767badc32cba2b225147d1; \>= 97a0cd55283b4e63fd92804da91c8d9896adcad9, \< 6cb0b9385320110fe24a5d5ac0000ade4bb3a3f3; \>= 1baff47b81f94f9231c91236aa511420d0e266b9, \< 3515503322f4819277091839eed46b695096aca5
- Anyone running Linux \>= 6.18.33, \< 6.18.34; \>= 7.0.10, \< 7.0.11

## Description

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

ksmbd: fix durable reconnect error path file lifetime

After a durable reconnect succeeds, ksmbd\_reopen\_durable\_fd() republishes
the same ksmbd\_file into the session volatile-id table. If smb2\_open()
then takes a later error path, cleanup first calls ksmbd\_fd\_put(work, fp)
and then unconditionally calls ksmbd\_put\_durable\_fd(dh\_info.fp).

In this case fp and dh\_info.fp are the same object. The first put drops the
reconnect lookup reference, but the final durable put can run
\_\_ksmbd\_close\_fd(NULL, fp). Because the final close is not session-aware,
it can free the file object without removing the volatile-id entry that was
just published into the session table.

Use the session-aware put for the final reconnect drop when the reconnect
had already succeeded and the error path is cleaning up the republished
file. Earlier reconnect failures, before fp is assigned to dh\_info.fp, keep
using the durable-only put path.

## Affected and fixed versions

- Linux: \>= f0ff7f12398e85b3a11745ff7feab6246f3d75c2, \< 5e641e4ee0bc1937408d41051a908ad4151be63b; \>= 4db3dcac84c2f14a45ae201efb38de1fb1bfc009, \< 478bfaa036bd0c7e179acff8b8484bccdee3b8c7; \>= ce2e164c1c51c3f7813b80f8c926836e896bcbb3, \< a1a39f227c80cbf369767badc32cba2b225147d1; \>= 97a0cd55283b4e63fd92804da91c8d9896adcad9, \< 6cb0b9385320110fe24a5d5ac0000ade4bb3a3f3; \>= 1baff47b81f94f9231c91236aa511420d0e266b9, \< 3515503322f4819277091839eed46b695096aca5 (cvelist)
- Linux: \>= 6.18.33, \< 6.18.34; \>= 7.0.10, \< 7.0.11 (cvelist)

## Mitigation

- Upgrade Linux to 3515503322f4819277091839eed46b695096aca5 or later.
- Upgrade Linux to 7.0.11 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64016. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64016.md
Affected: Linux >= f0ff7f12398e85b3a11745ff7feab6246f3d75c2, < 5e641e4ee0bc1937408d41051a908ad4151be63b; >= 4db3dcac84c2f14a45ae201efb38de1fb1bfc009, < 478bfaa036bd0c7e179acff8b8484bccdee3b8c7; >= ce2e164c1c51c3f7813b80f8c926836e896bcbb3, < a1a39f227c80cbf369767badc32cba2b225147d1; >= 97a0cd55283b4e63fd92804…
Fixed in: Linux 5e641e4ee0bc1937408d41051a908ad4151be63b, Linux 478bfaa036bd0c7e179acff8b8484bccdee3b8c7, Linux 6cb0b9385320110fe24a5d5ac0000ade4bb3a3f3, Linux 3515503322f4819277091839eed46b695096aca5, Linux 6.18.34, Linux 7.0.11

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64016 being exploited?

There is no confirmed exploitation: CVE-2026-64016 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64016?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-64016?

Linux \>= f0ff7f12398e85b3a11745ff7feab6246f3d75c2, \< 5e641e4ee0bc1937408d41051a908ad4151be63b; \>= 4db3dcac84c2f14a45ae201efb38de1fb1bfc009, \< 478bfaa036bd0c7e179acff8b8484bccdee3b8c7; \>= ce2e164c1c51c3f7813b80f8c926836e896bcbb3, \< a1a39f227c80cbf369767badc32cba2b225147d1; \>= 97a0cd55283b4e63fd92804da91c8d9896adcad9, \< 6cb0b9385320110fe24a5d5ac0000ade4bb3a3f3; \>= 1baff47b81f94f9231c91236aa511420d0e266b9, \< 3515503322f4819277091839eed46b695096aca5; Linux \>= 6.18.33, \< 6.18.34; \>= 7.0.10, \< 7.0.11.

### Is there a fix for CVE-2026-64016?

Yes. Fixed in Linux 5e641e4ee0bc1937408d41051a908ad4151be63b, Linux 478bfaa036bd0c7e179acff8b8484bccdee3b8c7, Linux 6cb0b9385320110fe24a5d5ac0000ade4bb3a3f3, Linux 3515503322f4819277091839eed46b695096aca5, Linux 6.18.34, Linux 7.0.11. Upgrade Linux to 3515503322f4819277091839eed46b695096aca5 or later. Upgrade Linux to 7.0.11 or later.

### How do I check if I'm affected by CVE-2026-64016?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5e641e4ee0bc1937408d41051a908ad4151be63b>
- patch: <https://git.kernel.org/stable/c/478bfaa036bd0c7e179acff8b8484bccdee3b8c7>
- patch: <https://git.kernel.org/stable/c/a1a39f227c80cbf369767badc32cba2b225147d1>
- patch: <https://git.kernel.org/stable/c/6cb0b9385320110fe24a5d5ac0000ade4bb3a3f3>
- patch: <https://git.kernel.org/stable/c/3515503322f4819277091839eed46b695096aca5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64016>

HTML: <https://flawdb.com/CVE-2026-64016> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64016>
