Pre-authentication memory exhaustion via skipped mechToken free
Published Apr 24, 2026 · Updated Apr 24, 2026
Memory leak in ksmbd SPNEGO handling in Linux Kernel allows remote attackers to exhaust server memory before authentication. ksmbd_neg_token_alloc() stores a copied mechToken, but smb2_sess_setup() skips kfree() when a later malformed element makes decoding clear use_spnego. Repeated malformed session-setup blobs slowly consume kernel memory without credentials and can interrupt availability when memory is exhausted.
Summary
What happened
Memory leak in ksmbd SPNEGO handling in Linux Kernel allows remote attackers to exhaust server memory before authentication. ksmbd_neg_token_alloc() stores a copied mechToken, but smb2_sess_setup() skips kfree() when a later malformed element makes decoding clear use_spnego. Repeated malformed session-setup blobs slowly consume kernel memory without credentials and can interrupt availability when memory is exhausted.
The record
- CVE
- CVE-2026-31610
- Published
- Apr 24, 2026
- Updated
- Apr 24, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-401, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 24, 2026CVE publishedPublication date reported by the CVE source.
- Apr 24, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <269c800a7a7e363459291885b35f7bc72e231ed6
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6c8c44e6553b9f072f62d9875e567766eb293162
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <dd53414e301beb915fe672dc4c4a51bafb917604
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <dd577cb55588ec3fbc66af3621280306601c4192
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo