# CVE-2025-40286: smb/server: fix possible memory leak in smb2_read()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2025-12-06T21:51:12.169Z
- Modified: 2026-10-15T19:10:00.173Z
- Assigned by: Linux

## Description

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().

(As written by CVE List.)

## Affected

- Linux Linux: from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 0797c6cf3b857cc229ab2bc69552938dcd738d78; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 63d8706a2c09a0c29b8b0e8a44bc7a1339685de9; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before f1305587731886da37a214cda812ade246c653b0; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before bfda5422a16651d0bf864ec468b1c216e1b10d91; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 before 6fced056d2cc8d01b326e6fcfabaacb9850b71a4; 5.15 (not affected: before 5.15; from 6.1.159 up to 6.1.*; from 6.6.117 up to 6.6.*; from 6.12.59 up to 6.12.*; from 6.17.9 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/0797c6cf3b857cc229ab2bc69552938dcd738d78>
- <https://git.kernel.org/stable/c/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9>
- <https://git.kernel.org/stable/c/f1305587731886da37a214cda812ade246c653b0>
- <https://git.kernel.org/stable/c/bfda5422a16651d0bf864ec468b1c216e1b10d91>
- <https://git.kernel.org/stable/c/6fced056d2cc8d01b326e6fcfabaacb9850b71a4>

## Sources

- CVE List: [CVE-2025-40286](https://www.cve.org/CVERecord?id=CVE-2025-40286), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40286](https://nvd.nist.gov/vuln/detail/CVE-2025-40286), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-40286 · Whole record: https://cve.day/CVE-2025-40286.json · Rebuilt by cve.day 2026-11-25T22:59:08.380Z
