CVE-2025-40286Published Dec 6, 2025 · Dec 6Updated Oct 28
smb/server: fix possible memory leak in smb2_read()
Linux
Unrated
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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().
From the CVE record · Linux
The Linux kernel's smb/server component can leak memory when ksmbd_vfs_read() fails during smb2_read(). The input does not establish whether an attacker can trigger the failure or specify authentication or user-interaction requirements.
Engineers running the Linux kernel's smb/server component should check their installations; affected versions are not specified.