# CVE-2026-64141: ksmbd: fix null pointer dereference in compare\_guid\_key()

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.63% (percentile 45, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-07-19T15:40:33.890Z
- **Modified:** 2026-08-18T12:39:25.733Z

## Who should check

- Anyone running Linux \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< e43cb36d4d7827710cfcd48e95e29a507f0d87be; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 0836081b394ca074d1b910f2b990ff7b4b4404c7; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< af86896ca3239e25a6bd7d352213371265073d38; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 4b83cbc4c15f09b000cc06f033f64b0824b6dc87; \>= 6.6.32, \< 6.6.142
- Anyone running Linux 6.9

## Description

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

ksmbd: fix null pointer dereference in compare\_guid\_key()

session\_fd\_check() walks the per-inode m\_op\_list during durable-handle
session teardown and sets op-\>conn = NULL for every opinfo whose conn
matched the closing session's connection. The matching opinfo, however,
stays linked in its per-ClientGuid lease\_table\_list entry's lb-\>lease\_list
because destroy\_lease\_table() only runs on full TCP-connection teardown,
not on SESSION\_LOGOFF.

If the same TCP connection then negotiates a fresh session with the
same ClientGuid (ClientGuid is bound to NEGOTIATE, not the session, and
is unchanged across LOGOFF + SETUP) and issues a SMB2 CREATE with a
lease context on a different inode, find\_same\_lease\_key() walks
lb-\>lease\_list, reaches the stale opinfo, and calls compare\_guid\_key(),
which unconditionally dereferences opinfo-\>conn-\>ClientGUID. The conn
pointer is NULL and the kernel panics.

Reproducer requires only a successful SMB2 SESSION\_SETUP and a share
configured with 'durable handles = yes'. KASAN report on mainline
70390501d194:

  general protection fault, probably for non-canonical address
  0xdffffc0000000069: 0000 \[\#1\] SMP KASAN PTI
  KASAN: null-ptr-deref in range \[0x0000000000000348-0x000000000000034f\]
  Workqueue: ksmbd-io handle\_ksmbd\_work
  RIP: 0010:bcmp+0x5b/0x230
  Call Trace:
   compare\_guid\_key+0x4b/0xd0
   find\_same\_lease\_key+0x324/0x690
   smb2\_open+0x6aea/0x8e60
   handle\_ksmbd\_work+0x796/0xee0
   ...

Faulting address 0x348 is the offset of ClientGUID within struct
ksmbd\_conn, confirming opinfo-\>conn was NULL.

Read opinfo-\>conn once and bail out if it has been cleared by a
concurrent session\_fd\_check(). A half-detached opinfo cannot be the
owner of an active lease, so returning 0 is the correct match result.

## Affected and fixed versions

- Linux: \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< e43cb36d4d7827710cfcd48e95e29a507f0d87be; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 0836081b394ca074d1b910f2b990ff7b4b4404c7; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< af86896ca3239e25a6bd7d352213371265073d38; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 4b83cbc4c15f09b000cc06f033f64b0824b6dc87; \>= 6.6.32, \< 6.6.142 (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.142 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-64141. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64141.md
Affected: Linux >= 8df4bcdb0a4232192b2445256c39b787d58ef14d, < e43cb36d4d7827710cfcd48e95e29a507f0d87be; >= c8efcc786146a951091588e5fa7e3c754850cb3c, < 0836081b394ca074d1b910f2b990ff7b4b4404c7; >= c8efcc786146a951091588e5fa7e3c754850cb3c, < cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad; >= c8efcc786146a951091588e…
Fixed in: Linux 0836081b394ca074d1b910f2b990ff7b4b4404c7, Linux 4b83cbc4c15f09b000cc06f033f64b0824b6dc87, Linux 6.6.142

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-64141 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 8df4bcdb0a4232192b2445256c39b787d58ef14d, \< e43cb36d4d7827710cfcd48e95e29a507f0d87be; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 0836081b394ca074d1b910f2b990ff7b4b4404c7; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< af86896ca3239e25a6bd7d352213371265073d38; \>= c8efcc786146a951091588e5fa7e3c754850cb3c, \< 4b83cbc4c15f09b000cc06f033f64b0824b6dc87; \>= 6.6.32, \< 6.6.142; Linux 6.9.

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

Yes. Fixed in Linux 0836081b394ca074d1b910f2b990ff7b4b4404c7, Linux 4b83cbc4c15f09b000cc06f033f64b0824b6dc87, Linux 6.6.142. Upgrade Linux to 6.6.142 or later.

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

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/e43cb36d4d7827710cfcd48e95e29a507f0d87be>
- patch: <https://git.kernel.org/stable/c/0836081b394ca074d1b910f2b990ff7b4b4404c7>
- patch: <https://git.kernel.org/stable/c/cd5c1b75d2f454f625d7dc55bd3ae21d0855f6ad>
- patch: <https://git.kernel.org/stable/c/af86896ca3239e25a6bd7d352213371265073d38>
- patch: <https://git.kernel.org/stable/c/4b83cbc4c15f09b000cc06f033f64b0824b6dc87>

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

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