Linux Kernel CIFS Memory Leak Vulnerability in SMB3 File System Context Parsing

Vulnerability

A memory leak vulnerability has been addressed in the Linux kernel's CIFS (Common Internet File System) implementation, specifically within the SMB3 (Server Message Block version 3) file system context parsing. The issue arose in the error handling path of the 'smb3_fs_context_parse_param' function, where memory allocated for source strings was not properly freed in certain error scenarios. This oversight led to a memory leak when processing 'Opt_source' mount options, particularly if an error occurred after the source strings were allocated but before the function could complete. The vulnerability was identified by syzbot, a tool for finding bugs in the Linux kernel.

Impact

The vulnerability could lead to a memory leak, where allocated memory is not properly released, potentially causing increased memory usage and degradation of system performance over time.

Reproduction

The vulnerability can be reproduced by mounting a CIFS file system with 'Opt_source' mount options. If an error occurs during the parsing of these options, the allocated memory for the source strings will not be freed, leading to a memory leak.

Remediation

Users can apply the latest patches available in the Linux kernel stable tree to address this vulnerability.

Added: Dec 16, 2025, 4:20 PM
Updated: Dec 16, 2025, 4:20 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
5.7
remediation
7.7
relevance
1.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.