# CVE-2026-64141: linux: In the Linux kernel, the following vulnerability has been resolved:  ksmbd: fix null pointer dereference in compare_g...

CVE-2026-64141 is fixed in linux on 1 platform, first by DEBIAN-CVE-2026-64141, released July 20, 2026. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2026-64141
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0063
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 19, 2026

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 13.5 (trixie) | 6.12.94-1 | [DEBIAN-CVE-2026-64141](https://patchblox.com/security/data/fix/linux/debian-cve-2026-64141.md) | Jul 20, 2026 |
| Linux | linux Debian 14 | 7.0.12-1 | [DEBIAN-CVE-2026-64141](https://patchblox.com/security/data/fix/linux/debian-cve-2026-64141.md) | Jul 20, 2026 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
