CVE-2025-40286

Source
https://cve.org/CVERecord?id=CVE-2025-40286
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40286.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40286
Downstream
Related
Published
2025-12-06T21:51:12.169Z
Modified
2026-03-20T12:43:15.104562Z
Summary
smb/server: fix possible memory leak in smb2_read()
Details

In the Linux kernel, the following vulnerability has been resolved:

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

Memory leak occurs when ksmbdvfsread() fails. Fix this by adding the missing kvfree().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40286.json"
}
References

Affected packages

Git / 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/osv-test-cve-osv-conversion/osv-output/CVE-2025-40286.json"

Linux / Kernel

Package

Name
Kernel

Affected 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/osv-test-cve-osv-conversion/osv-output/CVE-2025-40286.json"