{"id":"CVE-2025-40286","summary":"smb/server: fix possible memory leak in smb2_read()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb/server: fix possible memory leak in smb2_read()\n\nMemory leak occurs when ksmbd_vfs_read() fails.\nFix this by adding the missing kvfree().","modified":"2026-04-16T04:44:09.615605750Z","published":"2025-12-06T21:51:12.169Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40286.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0797c6cf3b857cc229ab2bc69552938dcd738d78"},{"type":"WEB","url":"https://git.kernel.org/stable/c/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6fced056d2cc8d01b326e6fcfabaacb9850b71a4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfda5422a16651d0bf864ec468b1c216e1b10d91"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1305587731886da37a214cda812ade246c653b0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40286.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40286"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9"},{"fixed":"0797c6cf3b857cc229ab2bc69552938dcd738d78"},{"fixed":"63d8706a2c09a0c29b8b0e8a44bc7a1339685de9"},{"fixed":"f1305587731886da37a214cda812ade246c653b0"},{"fixed":"bfda5422a16651d0bf864ec468b1c216e1b10d91"},{"fixed":"6fced056d2cc8d01b326e6fcfabaacb9850b71a4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40286.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.59"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40286.json"}}],"schema_version":"1.7.5"}