Linux Kernel up to 6.1.158/6.6.116/6.12.58/6.17.8 smb2_read memory leak

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.5 | $0-$5k | 0.79 |
Summary
A vulnerability classified as critical was found in Linux Kernel up to 6.1.158/6.6.116/6.12.58/6.17.8. Affected by this vulnerability is the function smb2_read. Executing a manipulation can lead to memory leak.
This vulnerability is tracked as CVE-2025-40286. No exploit exists.
Upgrading the affected component is advised.
Details
A vulnerability has been found in Linux Kernel up to 6.1.158/6.6.116/6.12.58/6.17.8 and classified as critical. This vulnerability affects the function smb2_read. The manipulation with an unknown input leads to a memory leak vulnerability. The CWE definition for the vulnerability is CWE-401. The product does not sufficiently track and release allocated memory after it has been used, which slowly consumes remaining memory. As an impact it is known to affect availability. CVE summarizes:
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().
The advisory is available at git.kernel.org. This vulnerability was named CVE-2025-40286 since 04/16/2025. Technical details are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 277667 (Linux Distros Unpatched Vulnerability : CVE-2025-40286), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 6.1.159, 6.6.117, 6.12.59 or 6.17.9 eliminates this vulnerability. Applying the patch 0797c6cf3b857cc229ab2bc69552938dcd738d78/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9/f1305587731886da37a214cda812ade246c653b0/bfda5422a16651d0bf864ec468b1c216e1b10d91/6fced056d2cc8d01b326e6fcfabaacb9850b71a4 is able to eliminate this problem. The bugfix is ready for download at git.kernel.org. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (277667), EUVD (EUVD-2025-201569) and CERT Bund (WID-SEC-2025-2756). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Affected
- Google Container-Optimized OS
- Debian Linux
- Amazon Linux 2
- Red Hat Enterprise Linux
- Ubuntu Linux
- SUSE Linux
- Oracle Linux
- NetApp FAS
- NetApp AFF
- SUSE openSUSE
- RESF Rocky Linux
- Open Source Linux Kernel
- Microsoft Azure Linux
Product
Type
Vendor
Name
Version
- 6.1.158
- 6.6.116
- 6.12.0
- 6.12.1
- 6.12.2
- 6.12.3
- 6.12.4
- 6.12.5
- 6.12.6
- 6.12.7
- 6.12.8
- 6.12.9
- 6.12.10
- 6.12.11
- 6.12.12
- 6.12.13
- 6.12.14
- 6.12.15
- 6.12.16
- 6.12.17
- 6.12.18
- 6.12.19
- 6.12.20
- 6.12.21
- 6.12.22
- 6.12.23
- 6.12.24
- 6.12.25
- 6.12.26
- 6.12.27
- 6.12.28
- 6.12.29
- 6.12.30
- 6.12.31
- 6.12.32
- 6.12.33
- 6.12.34
- 6.12.35
- 6.12.36
- 6.12.37
- 6.12.38
- 6.12.39
- 6.12.40
- 6.12.41
- 6.12.42
- 6.12.43
- 6.12.44
- 6.12.45
- 6.12.46
- 6.12.47
- 6.12.48
- 6.12.49
- 6.12.50
- 6.12.51
- 6.12.52
- 6.12.53
- 6.12.54
- 6.12.55
- 6.12.56
- 6.12.57
- 6.12.58
- 6.17.0
- 6.17.1
- 6.17.2
- 6.17.3
- 6.17.4
- 6.17.5
- 6.17.6
- 6.17.7
- 6.17.8
License
Website
- Vendor: https://www.kernel.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.7VulDB Meta Temp Score: 5.5
VulDB Base Score: 5.7
VulDB Temp Score: 5.5
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Memory leakCWE: CWE-401 / CWE-404
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Partially
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 277667
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-40286
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Kernel 6.1.159/6.6.117/6.12.59/6.17.9
Patch: 0797c6cf3b857cc229ab2bc69552938dcd738d78/63d8706a2c09a0c29b8b0e8a44bc7a1339685de9/f1305587731886da37a214cda812ade246c653b0/bfda5422a16651d0bf864ec468b1c216e1b10d91/6fced056d2cc8d01b326e6fcfabaacb9850b71a4
Timeline
04/16/2025 CVE reserved12/07/2025 Advisory disclosed
12/07/2025 VulDB entry created
02/23/2026 VulDB entry last update
Sources
Vendor: kernel.orgAdvisory: git.kernel.org
Status: Confirmed
CVE: CVE-2025-40286 (🔒)
GCVE (CVE): GCVE-0-2025-40286
GCVE (VulDB): GCVE-100-334642
EUVD: 🔒
CERT Bund: WID-SEC-2025-2756 - Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service
Entry
Created: 12/07/2025 08:56Updated: 02/23/2026 06:41
Changes: 12/07/2025 08:56 (58), 12/07/2025 09:54 (1), 12/09/2025 01:30 (2), 12/09/2025 09:02 (7), 01/04/2026 13:21 (1), 01/22/2026 09:03 (1), 02/23/2026 06:41 (1)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.