CVE-2026-64140
Last modified
CVE-2026-64140 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.36% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= b38f99c1217ae04753340f0fdcd8f35bf56841dc, < 8eab081627b67216d1c8f638b68289b500dc9a6b; >= b38f99c1217ae04753340f0fdcd8f35bf56841dc, < 904901561e61a2b559070b20c74a8c95491f30aa |
| Linux | Linux | 7.0 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-64140?
How severe is CVE-2026-64140?
How do I fix CVE-2026-64140?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-64135In the Linux kernel, the following vulnerability has been re…
- CVE-2026-64136In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-64137In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-64138In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2026-64139In the Linux kernel, the following vulnerability has been re…
- CVE-2026-6414@fastify/static versions 8.0.0 through 9.1.0 decode percent-…5.9
- CVE-2026-64141In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-64142In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-64143In the Linux kernel, the following vulnerability has been re…
- CVE-2026-64144In the Linux kernel, the following vulnerability has been re…
- CVE-2026-64145In the Linux kernel, the following vulnerability has been re…
- CVE-2026-64146In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-64140?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
