Linux Kernel ksmbd Response Buffer Management Vulnerability

Vulnerability

A vulnerability in the Linux kernel's ksmbd component has been addressed. The issue involved the response buffer management for SMB2 protocol, which was previously hardcoded with a magic number. This vulnerability affected several versions of the Linux kernel. The response management has been updated to use a dynamic I/O array, requiring the second argument of the 'smb2_calc_max_out_buf_len()' function to be the offset of the 'Buffer' field in the response structure, rather than a fixed number. The vulnerability arose after a commit that introduced support for read compound operations, which changed how response buffers were handled. The issue could potentially lead to incorrect buffer lengths being calculated, causing issues in data handling during SMB2 operations.

Impact

The vulnerability could lead to improper management of response buffers in SMB2 operations, potentially causing data handling issues or errors in file operations over the network.

Reproduction

The vulnerability can be reproduced by using a version of the Linux kernel that includes the affected ksmbd component. After the introduction of the commit that added support for read compound operations, the response buffer management will incorrectly use a hardcoded magic number instead of the correct offset for the 'Buffer' field in the response structure. This can be observed by monitoring the buffer lengths calculated during SMB2 operations, which will be incorrect due to the vulnerability.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit that fixes this issue can be found in the Linux kernel stable tree.

Added: Apr 22, 2026, 3:19 PM
Updated: Apr 22, 2026, 3:19 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
7.5
exploitability
5.1
remediation
7.7
relevance
6.2
threat
4.8
urgency
2.9
incentive
0.0

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