Skip to main content
EPSS 0.4%top 68%

In the Linux kernel, the following vulnerability has been resolved: cifs: parse_dfs_referrals: prevent oob on malformed input Malicious SMB server… (CVE-2025-40099)

0
Critical
Published: 10/30/2025 (10/30/2025, 12:31:10 UTC)
Source: GCVE Database

Description

A critical vulnerability in the Linux kernel's CIFS client was resolved to prevent out-of-bounds (OOB) memory access caused by malformed input from malicious SMB servers. Specifically, invalid replies to FSCTL_DFS_GET_REFERRALS with improperly sized data or inconsistent referral counts could trigger OOB conditions. The fix involves returning an error (-EINVAL) when such malformed replies are detected, preventing OOB memory access.

CVSS v3.1

Score 9.4critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:24:11 UTC

Technical Analysis

CVE-2025-40099 addresses a critical vulnerability in the Linux kernel's CIFS implementation where a malicious SMB server can send malformed responses to the FSCTL_DFS_GET_REFERRALS request. These responses may be smaller than the expected structure size or contain fewer referrals than indicated, leading to out-of-bounds memory access during processing. The vulnerability is mitigated by validating the reply size and referral count, returning an error to prevent OOB conditions.

Potential Impact

Successful exploitation could lead to out-of-bounds memory access in the Linux kernel, potentially causing system crashes or enabling further attacks due to memory corruption. The CVSS vector indicates network attack vector with no privileges or user interaction required, with high confidentiality and availability impact and low integrity impact.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to return an error (-EINVAL) on malformed DFS referral replies, preventing out-of-bounds memory access. Users should update their Linux kernel to a version that includes this fix. Patch status is not explicitly confirmed in the provided data; therefore, check the official Linux kernel advisories or vendor updates for the exact fixed versions and apply them accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-58x9-22gw-84q7
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40099"]
Database Specific Severity
CRITICAL
Cvss Version
3.1

Threat ID: 6a6b72d69c2644c7f847aefc

Added to database: 07/30/2026, 15:50:46 UTC

Last enriched: 07/30/2026, 16:24:11 UTC

Last updated: 09/10/2026, 19:38:46 UTC

Views: 36

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses