CVE-2025-40099
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40099 is an out-of-bounds (OOB) memory access vulnerability in the Linux kernel's CIFS (Common Internet File System) component, specifically in the parse_dfs_referrals function. A malicious SMB server can send a crafted invalid reply to FSCTL_DFS_GET_REFERRALS — either smaller than sizeof(struct get_dfs_referral_rsp) or with fewer referrals than declared in the NumberOfReferrals header field — triggering out-of-bounds memory access. The vulnerability was published on October 30, 2025, and affects the Linux kernel across multiple stable branches. It carries a CVSS v3.1 base score of 6.3 (Medium) (Red Hat Advisory, MSRC).

Technical details

The root cause is insufficient validation of server-supplied data in the parse_dfs_referrals function within the Linux kernel's CIFS subsystem (CWE-125: Out-of-bounds Read). When a Linux client sends a FSCTL_DFS_GET_REFERRALS request to an SMB server, the response is parsed without adequately checking that the reply buffer meets the minimum expected size (sizeof(struct get_dfs_referral_rsp)) or that the actual number of referral entries matches the NumberOfReferrals field in the response header. The fix returns -EINVAL on malformed replies to prevent OOB memory access. Exploitation requires the attacker to control or impersonate an SMB server that the victim client connects to (Red Hat Advisory, EUVD).

Impact

Successful exploitation can result in out-of-bounds memory reads, potentially exposing sensitive kernel memory contents (confidentiality impact), and may cause system crashes or kernel panics (availability impact). In more severe scenarios, memory corruption could theoretically enable remote code execution, though this has not been demonstrated publicly. The vulnerability is scoped to the affected system without lateral movement potential inherent to the flaw itself, but kernel-level memory disclosure could facilitate privilege escalation or further attacks (Red Hat Advisory, EUVD).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of this report (EUVD). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.018% (0.000180), indicating a very low probability of exploitation in the near term. Exploitation requires the attacker to act as a malicious or compromised SMB server that the victim client connects to, which limits opportunistic exploitation (Red Hat Advisory).

Mitigation and workarounds

Patches have been released for multiple Linux kernel stable branches: 6.1.158, 6.6.114, 6.12.55, 6.17.5, and 6.18-rc2 (EUVD, MSRC). Downstream distributions including Debian (DSA-6053-1, DLA-4379-1), openSUSE, SUSE, and Oracle Linux have issued updated kernel packages. As interim mitigations, administrators should restrict SMB client access to trusted servers only, use network segmentation to limit exposure to untrusted SMB servers, and monitor SMB traffic for anomalies. Upgrading to a patched kernel version is the recommended remediation.

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68480NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-uek64k-devel
NoYesAug 06, 2026
CVE-2026-64582NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-fips
NoYesAug 05, 2026
CVE-2026-64579NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 05, 2026
CVE-2026-64576NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 05, 2026
CVE-2026-64575NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.17
NoYesAug 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management