VDB

CVE-2025-40099

CVE-2025-40099 PUBLISHED CVSS 9.4 CRITICAL

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.

PackageEcosystemFixed in
kernel-headersAmazon Linux1:6.1.158-178.288.amzn2023
kernel-develAmazon Linux1:6.1.158-178.288.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-headersAmazon Linux1:6.12.55-74.119.amzn2023
python3-perfAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.55-74.119.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.55-74.119.amzn2023
perfAmazon Linux1:6.1.158-178.288.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.55-74.119.amzn2023
bpftoolAmazon Linux1:6.1.158-178.288.amzn2023
LinuxLinuxcfacc7441f760e4a73cc71b6ff1635261d534657, bb0f2e66e1ac043a5b238f5bcab4f26f3c317039, 4.11

Risk scores

CVSS 3.1
9.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H

Affected products

VendorProductVersions
LinuxLinux4ecce920e13ace16a5ba45efe8909946c28fb2ad, 4ecce920e13ace16a5ba45efe8909946c28fb2ad, 4ecce920e13ace16a5ba45efe8909946c28fb2ad
LinuxLinux4.11, 0, 6.1.158
amazon:2023kernel-headers0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel6.12-headers0
amazon:2023python3-perf0
amazon:2023kernel6.12-tools0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023perf0
amazon:2023kernel6.12-modules-extra0
amazon:2023bpftool0
LinuxLinux0, 4.11, 4ecce920e13ace16a5ba45efe8909946c28fb2ad
amazon:2023kernel-tools0
amazon:2023kernel6.12-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-livepatch-6.12.55-74.1190
amazon:2023python3-perf6.120

…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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›