CVE-2025-40286

published 6 Dec 2025 · updated 11 May 2026

smb/server: fix possible memory leak in smb2_read()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0797c6cf3b857cc229ab2bc69552938dcd738d78, Kernel 63d8706a2c09a0c29b8b0e8a44bc7a1339685de9, Kernel 6fced056d2cc8d01b326e6fcfabaacb9850b71a4 and 2 more.

In the Linux kernel, the following vulnerability has been resolved: smb/server: fix possible memory leak in smb2_read() Memory leak occurs when ksmbd_vfs_read() fails. Fix this by adding the missing kvfree().

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <0797c6cf3b857cc229ab2bc69552938dcd738d78, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <63d8706a2c09a0c29b8b0e8a44bc7a1339685de9, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <6fced056d2cc8d01b326e6fcfabaacb9850b71a4, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <bfda5422a16651d0bf864ec468b1c216e1b10d91, >=e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 <f1305587731886da37a214cda812ade246c653b00797c6cf3b857cc229ab2bc69552938dcd738d78, 63d8706a2c09a0c29b8b0e8a44bc7a1339685de9, 6fced056d2cc8d01b326e6fcfabaacb9850b71a4, bfda5422a16651d0bf864ec468b1c216e1b10d91, f1305587731886da37a214cda812ade246c653b0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40286 severity on Zeptric[![CVE-2025-40286](https://zeptric.io/badge/cve/CVE-2025-40286.svg)](https://zeptric.io/cve/CVE-2025-40286)