Linux Kernel up to 6.1.158/6.6.116/6.12.58/6.17.8 smb2_sess_setup reference count

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
5.5$0-$5k0.00

Summaryinfo

A vulnerability classified as critical has been found in Linux Kernel up to 6.1.158/6.6.116/6.12.58/6.17.8. Affected is the function smb2_sess_setup. Performing a manipulation results in reference count. This vulnerability is identified as CVE-2025-40285. There is not any exploit available. It is recommended to upgrade the affected component.

Detailsinfo

A vulnerability, which was classified as critical, was found in Linux Kernel up to 6.1.158/6.6.116/6.12.58/6.17.8. This affects the function smb2_sess_setup. The manipulation with an unknown input leads to a reference count vulnerability. CWE is classifying the issue as CWE-911. The product uses a reference count to manage a resource, but it does not update or incorrectly updates the reference count. This is going to have an impact on availability. The summary by CVE is:

In the Linux kernel, the following vulnerability has been resolved: smb/server: fix possible refcount leak in smb2_sess_setup() Reference count of ksmbd_session will leak when session need reconnect. Fix this by adding the missing ksmbd_user_session_put().

The advisory is shared at git.kernel.org. This vulnerability is uniquely identified as CVE-2025-40285 since 04/16/2025. Technical details are known, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 277634 (Linux Distros Unpatched Vulnerability : CVE-2025-40285), 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 6fc935f798d44a8eb8a5e6659198399fbf57b981/e671f9bb97805771380c98de944e2ceab6949188/dcc51dfe6ff26b52cac106865a172ac982d78401/d37b2c81c83d6c0d5ca582f4fe73c672983f9e0d/379510a815cb2e64eb0a379cb62295d6ade65df0 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 (277634), EUVD (EUVD-2025-201570) and CERT Bund (WID-SEC-2025-2756). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

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

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.7
VulDB Meta Temp Score: 5.5

VulDB Base Score: 5.7
VulDB Temp Score: 5.5
VulDB Vector: 🔒
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Reference count
CWE: CWE-911 / CWE-664
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Partially

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 277634
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-40285

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: Kernel 6.1.159/6.6.117/6.12.59/6.17.9
Patch: 6fc935f798d44a8eb8a5e6659198399fbf57b981/e671f9bb97805771380c98de944e2ceab6949188/dcc51dfe6ff26b52cac106865a172ac982d78401/d37b2c81c83d6c0d5ca582f4fe73c672983f9e0d/379510a815cb2e64eb0a379cb62295d6ade65df0

Timelineinfo

04/16/2025 CVE reserved
12/07/2025 +235 days Advisory disclosed
12/07/2025 +0 days VulDB entry created
02/23/2026 +78 days VulDB entry last update

Sourcesinfo

Vendor: kernel.org

Advisory: git.kernel.org
Status: Confirmed

CVE: CVE-2025-40285 (🔒)
GCVE (CVE): GCVE-0-2025-40285
GCVE (VulDB): GCVE-100-334641
EUVD: 🔒
CERT Bund: WID-SEC-2025-2756 - Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service

Entryinfo

Created: 12/07/2025 08:56
Updated: 02/23/2026 06:41
Changes: 12/07/2025 08:56 (58), 12/07/2025 09:54 (1), 12/09/2025 04:26 (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

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!