PT-2025-20487 · Linux+1 · Linux Kernel+1

Published

2025-05-09

·

Updated

2026-02-02

·

CVE-2025-37835

CVSS v2.0

6.1

Medium

VectorAV:A/AC:L/Au:N/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A vulnerability in the Linux kernel has been identified, related to the SMB client. The issue arises from an imbalance in the netns reference count, leading to potential leaks and use-after-free problems. This occurs due to gaps in the get net()/put net() balancing, resulting in two main issues: netns refcount leaks and potential use-after-free. The problem is triggered in certain scenarios, such as when cifs reconnect() is called or when binding a socket fails. The estimated number of potentially affected devices worldwide is not available. There is no information about real-world incidents where this issue was exploited.
Recommendations To address the netns refcount leaks and potential use-after-free issues, apply the patch that ties the netns reference count to the server->ssocket. As a temporary workaround, consider restricting the use of the SMB client until a patch is available. Avoid using the cifs reconnect() function until the issue is resolved. Restrict access to the vulnerable cifs mount() function to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Memory Leak

Weakness Enumeration

Related Identifiers

BDU:2026-02529
CVE-2025-37835

Affected Products

Linux Kernel
Red Os