What’s Vulnerable › Vulnerabilities

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

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

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-40286 or the next vulnerability affects your stack