CVE-2025-40286

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

N/A
Published: December 6, 2025 at 09:51 PM UTC
Updated: October 15, 2026 at 07:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9
Vendor states this is fixed in 0797c6cf3b857cc229ab2bc69552938dcd738d78 (fixed)
Vendor states this is fixed in 63d8706a2c09a0c29b8b0e8a44bc7a1339685de9 (fixed)
Vendor states this is fixed in 6fced056d2cc8d01b326e6fcfabaacb9850b71a4 (fixed)
Vendor states this is fixed in bfda5422a16651d0bf864ec468b1c216e1b10d91 (fixed)
Vendor states this is fixed in f1305587731886da37a214cda812ade246c653b0 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.1.159 (unaffected)
Vendor states this is fixed in 6.12.59 (unaffected)
Vendor states this is fixed in 6.17.9 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.117 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card