CVE-2025-40285
Description
A flaw was found in the Linux kernel's Server Message Block (SMB) server (ksmbd). A remote attacker can exploit this vulnerability by repeatedly initiating session reconnect requests to trigger a Denial of Service (DoS). Because session reference counts are not properly decremented during reconnection handling, session structures remain unreleased in memory, leading to gradual resource exhaustion.
Statement
This vulnerability does not affect supported Red Hat Enterprise Linux releases because the in-kernel SMB server (ksmbd) is not enabled or provided in Red Hat kernels. In upstream kernels where this feature is compiled and active, unreleased session structures during reconnection events could allow a remote client to cause gradual resource depletion, resulting in a denial of service. Supported Red Hat environments rely on user-space implementations such as Samba for SMB network file sharing.
Understanding the Weakness (CWE)
Availability
Technical Impact: DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other)
If an adversary can prevent a reference count from reaching zero, then resources might not be released when they are supposed to, thus causing resources to become scarce for future needs.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
If an adversary can cause a reference count to reach zero when the resource is still in use, then a resource might be released before it is supposed to be, possibly forcing an error that causes the product to crash or exit out of its current operation.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.