CVE-2026-64140
published high CVSS 3.1 · 7.5ksmbd: fix null pointer dereference in proc_show_files()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb38f99c1217ae04753340f0fdcd8f35bf56841dc to < 8eab081627b67216d1c8f638b68289b500dc9a6b · b38f99c1217ae04753340f0fdcd8f35bf56841dc to < 904901561e61a2b559070b20c74a8c95491f30aa · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 7.0.11 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Ubuntu | noble | linux-azure-7.0 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-azure-7.0-cloud-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-azure-7.0-headers-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-azure-7.0-tools-7.0.0-1014 | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-buildinfo-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-cloud-tools-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-gcp-7.0 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-gcp-7.0-headers-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-gcp-7.0-tools-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-headers-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-headers-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-headers-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-headers-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-headers-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-headers-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-headers-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-image-unsigned-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-modules-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-modules-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-modules-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-modules-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-modules-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-iwlwifi-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-modules-nvidia-fs-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-modules-nvidia-fs-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-nvidia-7.0 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-nvidia-7.0-headers-7.0.0-1016 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-nvidia-7.0-tools-7.0.0-1016 | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-oracle-7.0 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-oracle-7.0-headers-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-oracle-7.0-tools-7.0.0-1011 | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-tools-7.0.0-1011-gcp | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-tools-7.0.0-1011-gcp-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-1 |
| Ubuntu | noble | linux-tools-7.0.0-1011-oracle | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-tools-7.0.0-1011-oracle-64k | Advisory build | 7.0.0-1011.11~24.04.1 | USN-8728-3 |
| Ubuntu | noble | linux-tools-7.0.0-1014-azure | Advisory build | 7.0.0-1014.14~24.04.1 | USN-8728-2 |
| Ubuntu | noble | linux-tools-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | noble | linux-tools-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16~24.04.1 | USN-8663-1 |
| Ubuntu | resolute | linux-aws | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-aws-cloud-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-aws-headers-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-aws-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-azure | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-cloud-tools-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde-cloud-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde-headers-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-fde-tools-7.0.0-1009 | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-headers-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-azure-tools-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1008-oracle | Advisory build | 7.0.0-1008.8 | USN-8593-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1008-oracle-64k | Advisory build | 7.0.0-1008.8 | USN-8593-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1009-aws | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1009-aws-64k | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1009-azure-fde | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1010-azure | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1010-ibm | Advisory build | 7.0.0-1010.10 | USN-8593-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1015-raspi | Advisory build | 7.0.0-1015.15 | USN-8618-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1015-raspi-realtime | Advisory build | 7.0.0-1015.15 | USN-8618-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16 | USN-8663-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16 | USN-8663-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-2016-nvidia-bos | Advisory build | 7.0.0-2016.16 | USN-8664-1 |
| Ubuntu | resolute | linux-buildinfo-7.0.0-2016-nvidia-bos-64k | Advisory build | 7.0.0-2016.16 | USN-8664-1 |
| Ubuntu | resolute | linux-cloud-tools-7.0.0-1009-aws | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-cloud-tools-7.0.0-1009-aws-64k | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-cloud-tools-7.0.0-1009-azure-fde | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-cloud-tools-7.0.0-1010-azure | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1008-oracle | Advisory build | 7.0.0-1008.8 | USN-8593-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1008-oracle-64k | Advisory build | 7.0.0-1008.8 | USN-8593-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1009-aws | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1009-aws-64k | Advisory build | 7.0.0-1009.9 | USN-8618-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1009-azure-fde | Advisory build | 7.0.0-1009.9 | USN-8603-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1010-azure | Advisory build | 7.0.0-1010.10 | USN-8603-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1010-ibm | Advisory build | 7.0.0-1010.10 | USN-8593-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1015-raspi | Advisory build | 7.0.0-1015.15 | USN-8618-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1015-raspi-realtime | Advisory build | 7.0.0-1015.15 | USN-8618-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1016-nvidia | Advisory build | 7.0.0-1016.16 | USN-8663-1 |
| Ubuntu | resolute | linux-headers-7.0.0-1016-nvidia-64k | Advisory build | 7.0.0-1016.16 | USN-8663-1 |
| Ubuntu | resolute | linux-headers-7.0.0-2016-nvidia-bos | Advisory build | 7.0.0-2016.16 | USN-8664-1 |
| Ubuntu | resolute | linux-headers-7.0.0-2016-nvidia-bos-64k | Advisory build | 7.0.0-2016.16 | USN-8664-1 |
| Ubuntu | resolute | linux-ibm | Advisory build | 7.0.0-1010.10 | USN-8593-1 |
| Ubuntu | resolute | linux-ibm-headers-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8593-1 |
| Ubuntu | resolute | linux-ibm-tools-7.0.0-1010 | Advisory build | 7.0.0-1010.10 | USN-8593-1 |
| Ubuntu | resolute | linux-image-7.0.0-1015-raspi | Advisory build | 7.0.0-1015.15 | USN-8618-1 |
| Ubuntu | resolute | linux-image-7.0.0-1015-raspi-realtime | Advisory build | 7.0.0-1015.15 | USN-8618-1 |
| Ubuntu | resolute | linux-image-unsigned-7.0.0-1008-oracle | Advisory build | 7.0.0-1008.8 | USN-8593-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference in proc_show_files() When a SMB2 client opens a file with a durable v2 handle and then issues SMB2 SESSION_LOGOFF, session_fd_check() clears fp->tcon = NULL on the reconnectable file pointer but leaves the fp registered in global_ft.idr until the durable scavenger fires (up to fp->durable_timeout seconds later). During that window any read of /proc/fs/ksmbd/files (mode 0400) panics the kernel because proc_show_files() walks global_ft.idr and unconditionally dereferences fp->tcon->id with no NULL guard. 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 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:proc_show_files+0x118/0x740 Call Trace: proc_show_files+0x118/0x740 seq_read_iter+0x4ef/0xe10 proc_reg_read_iter+0x1b7/0x280 ... Guard the dereference. A durable-disconnected fp legitimately has no tcon; report its tree id as 0 rather than oopsing.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - The poisoned durable-handle state is created remotely over ksmbd's TCP/445 SMB2 path (SESSION_SETUP, TREE_CONNECT, CREATE with durable v2, SESSION_LOGOFF); ksmbd is a network-facing in-kernel SMB server per kernel CVSS guidance. AC:L - An attacker fully controls the SMB2 sequence that leaves `fp->tcon = NULL` while the file remains in `global_ft.idr`; once that state exists, any read of `/proc/fs/ksmbd/files` deterministically oopses, and the window lasts up to `fp->durable_timeout` seconds (repeatable). PR:N - Exploitation requires only network reachability to ksmbd plus a successful SMB2 SESSION_SETUP (guest or any configured share account); no host root or kernel capabilities are needed on the attacker side to plant the corrupt durable-handle entry. UI:N - No victim user action (opening files, mounting shares, clicking links) is required; the crash is triggered by kernel procfs iteration, not by end-user interaction. S:U - Impact is a kernel NULL pointer dereference/panic within the ksmbd/kernel security authority; it does not cross VM, IOMMU, or sandbox boundaries. C:N - This is a pure NULL pointer dereference at `fp->tcon->id` with no out-of-bounds read, UAF, or other memory corruption that could leak kernel data. I:N - The bug is a read of address 0 through a NULL `fp->tcon` pointer; it provides no write primitive, type confusion, or control-flow hijack opportunity. A:H - Unconditional dereference of NULL `fp->tcon` in `proc_show_files()` causes a kernel general protection fault/oops (KASAN null-ptr-deref), crashing or severely disrupting the host.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b38f99c1217ae04753340f0fdcd8f35bf56841dc to < 8eab081627b67216d1c8f638b68289b500dc9a6b (affected · git)b38f99c1217ae04753340f0fdcd8f35bf56841dc to < 904901561e61a2b559070b20c74a8c95491f30aa (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.0 (affected)0 to < 7.0 (unaffected · semver)7.0.11 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
ksmbd: fix null pointer dereference in proc_show_files()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d8559e837b9056f7354b8b92b4aa40823503f9027cddb72d38a333cde2ec368f
- Ingested
- 23 Sep 2026, 09:25:47 UTC
- Source record
- Official CVE record