CVE Database›CVE-2025-40285

CVE-2025-40285

kernel: smb/server: fix possible refcount leak in smb2_sess_setup()

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · December 6, 2025

Updated · October 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

smb/server: fix possible refcount leak in smb2_sess_setup()

Reference count of ksmbd_session will leak when session need reconnect. Fix this by adding the missing ksmbd_user_session_put().

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.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE not specified