PT-2025-16717 · Linux+3 · Linux Kernel+3

Published

2025-04-02

·

Updated

2026-05-22

·

CVE-2025-22077

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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 by the cifs reconnect() function, which releases the server->ssocket without a corresponding put net() call, and by unbalanced get net() and put net() calls in the exception handling process.
Recommendations To address the issues, apply the patch that ties the netns reference count to the server->ssocket, ensuring proper balancing of get net() and put net() calls. 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.

Exploit

DoS

Use After Free

Improper Locking

Weakness Enumeration

Related Identifiers

BDU:2025-12094
CVE-2025-22077
MGASA-2025-0142
MGASA-2025-0146
OESA-2026-2417
OESA-2026-2418
OPENSUSE-SU-2025:20081-1
SUSE-SU-2025:21074-1
SUSE-SU-2025:21139-1
SUSE-SU-2025:21179-1

Affected Products

Astra Linux
Linux Kernel
Red Os
Suse