CVE-2025-40099 Details
Description
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.
A vulnerability allowing an out-of-bounds write has been identified in the Linux kernel's CIFS (Common Internet File System) implementation. This issue arises in the 'parse_dfs_referrals' function, where the kernel improperly handles malformed responses from SMB (Server Message Block) servers regarding DFS (Distributed File System) referrals. Specifically, a malicious SMB server can send an invalid reply to the 'FSCTL_DFS_GET_REFERRALS' command. The reply may be smaller than the expected size or contain an incorrect number of referrals, leading to an out-of-bounds write. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 30, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/15c73964da9df994302f579ed14ee5fdbce7a332 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6447b0e355562a1ff748c4a2ffb89aae7e84d2c9 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8bc4a8d39bac23d8b044fd3e2dbfd965f1d9b058 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/bb0f2e66e1ac043a5b238f5bcab4f26f3c317039 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/cfacc7441f760e4a73cc71b6ff1635261d534657 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 30, 2025 | New CVE Received | kernel.org |
Volerion