Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40099

published critical CVSS 3.1 · 9.4

cifs: parse_dfs_referrals: prevent oob on malformed input

Published
30 Oct 2025, 09:48:05 UTC
Updated
15 Oct 2026, 22:02:37 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux4ecce920e13ace16a5ba45efe8909946c28fb2ad to < cfacc7441f760e4a73cc71b6ff1635261d534657 · 4ecce920e13ace16a5ba45efe8909946c28fb2ad to < 15c73964da9df994302f579ed14ee5fdbce7a332 · 4ecce920e13ace16a5ba45efe8909946c28fb2ad to < 8bc4a8d39bac23d8b044fd3e2dbfd965f1d9b058 · 4ecce920e13ace16a5ba45efe8909946c28fb2ad to < bb0f2e66e1ac043a5b238f5bcab4f26f3c317039 · 4ecce920e13ace16a5ba45efe8909946c28fb2ad to < 6447b0e355562a1ff748c4a2ffb89aae7e84d2c9 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.11 (affected) · 0 to < 4.11 (unaffected · semver) · 6.1.158 through 6.1.* (unaffected · semver) · 6.6.114 through 6.6.* (unaffected · semver) · 6.12.55 through 6.12.* (unaffected · semver) · 6.17.5 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1297 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1316 Fixed Not stated Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.158-1 DSA-6053-1
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Debian bullseye linux-6.1 Advisory build 6.1.158-1~deb11u1 DLA-4379-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

33

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.4 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H
Scenarios
en: AV:N - The vulnerable parser operates directly on a FSCTL_DFS_GET_REFERRALS reply received from a remote SMB server over TCP/445, with both the buffer length (`OutputCount`) and the referral count attacker-controlled. A malicious, compromised, or MITM'd server reaches this code purely over the network. AC:L - The server sends one well-formed V3 referral (so the in-bounds VersionNumber check passes) together with NumberOfReferrals=0xFFFF, and the loop deterministically walks ~2.2 MB past the allocation. No race, no heap grooming, no memory-layout dependency. PR:N - The attacker is the remote SMB peer and needs no credentials or account on the victim client; the client initiates the connection and parses the reply. A network MITM on an unsigned/unencrypted SMB session can inject the malformed referral response with no privileges at all. UI:N - On an existing DFS mount the `dfs_cache_refresh` delayed work re-issues referral requests on a timer and re-queues itself indefinitely, so a compromised or MITM'd server triggers the parse with zero user action; reconnect/failover paths do the same. S:U - The out-of-bounds access is confined to the kernel's own heap within the same security authority; no hypervisor, IOMMU, or sandbox boundary is crossed. C:H - Unbounded out-of-bounds read of up to ~2.2 MB of adjacent kernel heap, far beyond a "few bytes"; the harvested ServerType/ReferralEntryFlags/TimeToLive values are stored into DFS cache entries and exposed to any local user through world-readable (0644) /proc/fs/cifs/dfscache. I:L - There is no out-of-bounds write, but uncontrolled out-of-bounds heap contents are written into `dfs_info3_param` fields and propagated into the client's cached DFS referral state (ttl, srvtype, ref_flags), a limited corruption of kernel-side data that the fix explicitly prevents. A:H - The linear ~2.2 MB walk past a small kmalloc object can strike an unmapped page and oops the kernel — reliably so on small-memory embedded/IoT clients, hardened allocators, and KASAN builds — and each malicious reply additionally forces a ~3 MB kcalloc, repeatable on every automatic refresh.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 4ecce920e13ace16a5ba45efe8909946c28fb2ad to < cfacc7441f760e4a73cc71b6ff1635261d534657 (affected · git)4ecce920e13ace16a5ba45efe8909946c28fb2ad to < 15c73964da9df994302f579ed14ee5fdbce7a332 (affected · git)4ecce920e13ace16a5ba45efe8909946c28fb2ad to < 8bc4a8d39bac23d8b044fd3e2dbfd965f1d9b058 (affected · git)4ecce920e13ace16a5ba45efe8909946c28fb2ad to < bb0f2e66e1ac043a5b238f5bcab4f26f3c317039 (affected · git)4ecce920e13ace16a5ba45efe8909946c28fb2ad to < 6447b0e355562a1ff748c4a2ffb89aae7e84d2c9 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.11 (affected)0 to < 4.11 (unaffected · semver)6.1.158 through 6.1.* (unaffected · semver)6.6.114 through 6.6.* (unaffected · semver)6.12.55 through 6.12.* (unaffected · semver)6.17.5 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

2

Linux · cna

cifs: parse_dfs_referrals: prevent oob on malformed input

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
4fafffa6f4a4311450518395d3771363fc7d6d6e8d504fda8f7bd4804508813b
Ingested
15 Oct 2026, 23:29:36 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected