CVE-2025-40099 in Kernel products
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 NumberOfReferr...
Affects 0 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Kernel | — | — |
| Linux | — | — |
| Processing | — | — |
| Linux | Linux Firmware | 4.11 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-40099 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-258809-I |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H |
| Published | 2025-10-30 |
| Last modified | 2026-10-19 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A vulnerability in the Linux kernel's CIFS module could allow a malicious SMB server to cause an out-of-bounds (OOB) memory access by sending malformed DFS referral replies.
The attack vector involves a malicious SMB server sending invalid replies to the FSCTL_DFS_GET_REFERRALS control code. Specifically, the replies can be smaller than the expected size of the get_dfs_referral_rsp structure, or they can contain a number of referrals that is less than the NumberOfReferrals value specified in the header. This can lead to an OOB memory access when the kernel processes these malformed replies.
Questions
What is CVE-2025-40099?
A vulnerability in the Linux kernel's CIFS module could allow a malicious SMB server to cause an out-of-bounds (OOB) memory access by sending malformed DFS referral replies.
What is the CVSS score for CVE-2025-40099?
CVE-2025-40099 has CVSS 9.4 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H. EPSS: 0.8%.
Is CVE-2025-40099 actively exploited?
No confirmed active exploitation of CVE-2025-40099 as of 2026-10-25.
How do I remediate CVE-2025-40099?
Priority: MEDIUM.
What systems are affected by CVE-2025-40099?
CVE-2025-40099 affects Kernel; Linux; Processing.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Kernel","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-19.