Skip to main content

Linux Kernel CVE-2025-40099

CRITICAL
2025-10-30 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Critical
Disputed · 9.4 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Lure client to malicious SMB server
  2. Delivery
    Client mounts share and requests DFS referrals
  3. Exploit
    Return malformed FSCTL_DFS_GET_REFERRALS reply
  4. Execution
    Trigger OOB read in parse_dfs_referrals
  5. Impact
    Leak kernel memory or crash host

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the target Linux host to act as a CIFS/SMB client and connect to an attacker-controlled or man-in-the-middled SMB server, then issue an FSCTL_DFS_GET_REFERRALS request (i.e. DFS referral processing must occur, which happens on DFS-enabled mounts). The concrete trigger is a malformed reply - either smaller than sizeof(struct get_dfs_referral_rsp) or with a NumberOfReferrals value larger than the referrals actually present. Limiting factors: the victim must be induced to mount/connect to the malicious server, so this is not exploitable against a host that never contacts untrusted SMB servers; SMB signing/encryption and 'nodfs' mounts further constrain or eliminate the attack path. Despite the CVSS PR:N/UI:N marking, real-world exploitation is gated by client-initiated connection to a hostile server.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H, score 9.4) treats this as a network, unauthenticated, no-interaction critical issue, but that framing understates the real precondition: the victim kernel must itself initiate/maintain a CIFS connection to an attacker-controlled or man-in-the-middled SMB server, so it is a malicious-server (client-side) bug rather than a remotely reachable service flaw. This tension is important - CVSS scores AV:N/UI:N, yet realistically the client must be induced to connect, which limits opportunistic exploitation. EPSS (0.19%, 9th percentile) and the absence of KEV listing or public PoC align with a low probability of widespread exploitation. The primary technical impact of an OOB read is information disclosure (consistent with the 'Information Disclosure' tag) and denial of service via kernel crash; achieving code execution or the claimed C:H/A:H would require additional primitives not evidenced here. Net: legitimate to patch given kernel ubiquity, but not an emergency drop-everything item absent exposure to untrusted SMB servers.

Exploit ScenarioDerived

An attacker operating a rogue SMB server (or performing a man-in-the-middle attack against SMB traffic lacking signing) waits for a Linux client to mount a share and request DFS referrals, then returns a crafted FSCTL_DFS_GET_REFERRALS reply that is undersized or advertises more referrals than it contains. The client kernel's parse_dfs_referrals reads out of bounds, leaking adjacent kernel memory or crashing the host. No public PoC is identified, and success depends on luring or coercing the victim into connecting to the attacker's server.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Out-of-bounds memory access in the Linux kernel's CIFS/SMB client (parse_dfs_referrals) allows a malicious or compromised SMB server to trigger memory corruption on connecting clients by returning a malformed FSCTL_DFS_GET_REFERRALS reply. The flaw affects Linux systems that mount SMB/CIFS shares and process DFS referrals, where a reply shorter than struct get_dfs_referral_rsp or claiming more referrals than it contains drives reads past the buffer. No public exploit identified at time of analysis, and EPSS is low (0.19%, 9th percentile), consistent with a client-side, server-triggered condition rather than mass-exploitable exposure.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply the vendor kernel update that incorporates the stable commits listed at git.kernel.org (e.g. 15c73964da9df994302f579ed14ee5fdbce7a332 and the four sibling backports) as soon as your distribution ships them, then reboot to load the patched kernel. Until patched, restrict CIFS mounts to trusted, authenticated SMB servers only and avoid mounting shares from untrusted networks; where DFS is not required, mount with the 'nodfs' option to bypass the vulnerable referral-parsing path, accepting the trade-off that DFS namespace resolution will not function. Enforce SMB signing and, where possible, encryption to reduce man-in-the-middle downgrade/injection of malicious referral replies, and network-segment or firewall client egress to port 445 so hosts cannot reach arbitrary external SMB servers, noting this may block legitimate remote share access.

Affected ProductsAI

The Linux kernel's CIFS/SMB client subsystem is affected on versions prior to the stable fixes; exact affected version ranges are not enumerated in the provided data (CWE and NVD CPE ranges were not supplied). The fix is distributed across multiple stable-branch commits published on git.kernel.org (15c73964da9df994302f579ed14ee5fdbce7a332, 6447b0e355562a1ff748c4a2ffb89aae7e84d2c9, 8bc4a8d39bac23d8b044fd3e2dbfd965f1d9b058, bb0f2e66e1ac043a5b238f5bcab4f26f3c317039, cfacc7441f760e4a73cc71b6ff1635261d534657), indicating backports to several maintained kernel series. Any distribution kernel that builds the cifs module and mounts SMB/DFS shares should be considered in scope until the corresponding vendor kernel update is confirmed.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability lives in the kernel's cifs client code that parses Distributed File System (DFS) referral responses. When a client requests DFS referrals via the FSCTL_DFS_GET_REFERRALS SMB IOCTL, parse_dfs_referrals interprets the server's get_dfs_referral_rsp structure, including a NumberOfReferrals header field. Because the code trusted the server-supplied length and referral count without validating them against the actual reply size, a reply smaller than sizeof(struct get_dfs_referral_rsp), or one whose NumberOfReferrals exceeds the referrals actually present, causes the parser to read beyond the allocated buffer. This is an out-of-bounds read class defect (CWE-125-style, though CWE is listed N/A in the source data); the fix returns -EINVAL on such malformed replies. Exploitation is inherently client-side: the kernel acts as the SMB client trusting a remote server's response.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–Critical)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 9.4 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H
vuln.today AI 6.8 MEDIUM

Client must be induced to connect to a malicious SMB server (UI:R, AC:H); OOB read yields memory disclosure (C:H) and crash (A:H) with no integrity write (I:N).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 6.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H
Red Hat 5.5 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
High

DescriptionCVE.org

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

cifs: parse_dfs_referrals: prevent oob on malformed input

Malicious SMB server can send invalid reply to FSCTL_DFS_GET_REFERRALS

  • reply smaller than sizeof(struct get_dfs_referral_rsp)
  • reply with number of referrals smaller than NumberOfReferrals in the

header

Processing of such replies will cause oob.

Return -EINVAL error on such replies to prevent oob-s.

Executive ViewAI

Why It Matters

CVE-2025-40099 is a critical memory corruption vulnerability in the Linux kernel's SMB/CIFS client that can be triggered by malicious or compromised file servers, exposing any Linux system mounting network shares from untrusted sources to potential system compromise. While no public exploit has been identified at time of analysis, the vulnerability remains critical because many organizations depend on SMB/CIFS for file sharing and no vendor patch is currently available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict SMB/CIFS mounts to only business-critical shares from confirmed trusted servers with network isolation; (2) Implement firewall and network segmentation rules limiting SMB traffic (port 445) to authorized server ranges only; (3) Deploy endpoint detection and response (EDR) tools configured to alert on unexpected kernel crashes, memory access violations, or process anomalies on Linux systems; (4) Evaluate and prioritize migration of file-sharing workloads to alternative protocols (NFS, SFTP, or cloud storage) where operationally feasible; (5) Maintain close coordination with Linux distribution vendors to obtain and rapidly deploy patched kernels upon release.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel cifs client ships in virtually all Linux distributions
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.105 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.124 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.146 Affected
Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.1/base-os-container:2.2.1-5.90 Affected

References

Advisories & patches
ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0962/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1041/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1078/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1081/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20667/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20711/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20713/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20720/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20794/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20819/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20838/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20845/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20872/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20873/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20876/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20931/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21284/ REF https://git.kernel.org/stable/c/15c73964da9df994302f579ed14ee5fdbce7a332 REF https://git.kernel.org/stable/c/6447b0e355562a1ff748c4a2ffb89aae7e84d2c9 REF https://git.kernel.org/stable/c/8bc4a8d39bac23d8b044fd3e2dbfd965f1d9b058 REF https://git.kernel.org/stable/c/bb0f2e66e1ac043a5b238f5bcab4f26f3c317039 REF https://git.kernel.org/stable/c/cfacc7441f760e4a73cc71b6ff1635261d534657

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy