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)
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.
AI Analysis
Technical Summary
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.
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)
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
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.