CVE-2025-40099
cifs: parse_dfs_referrals: prevent oob on malformed input
Reported by linux · Published October 30, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-headers | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel-devel | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| perf | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.55-74.119.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.158-178.288.amzn2023 |
| Linux | Linux | cfacc7441f760e4a73cc71b6ff1635261d534657, bb0f2e66e1ac043a5b238f5bcab4f26f3c317039, 4.11 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 4ecce920e13ace16a5ba45efe8909946c28fb2ad, 4ecce920e13ace16a5ba45efe8909946c28fb2ad, 4ecce920e13ace16a5ba45efe8909946c28fb2ad |
| Linux | Linux | 4.11, 0, 6.1.158 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| Linux | Linux | 0, 4.11, 4ecce920e13ace16a5ba45efe8909946c28fb2ad |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-livepatch-6.12.55-74.119 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
…and 12 more
Timeline
- Oct 29, 2025 CVE Published
- Oct 30, 2025 EPSS Score (30 in total, the first dated here)
- Oct 30, 2025 Coalition ESS Score (9 in total, the first dated here)
- Dec 15, 2025 Security Advisory (159 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (115 in total, the first dated here)
- Jul 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40099
vulnetix vdb fixes CVE-2025-40099
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40099/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart