Linux Kernel ksmbd Wrong Length Validation Vulnerability in SMB2 Extended Attributes Handling

Vulnerability

A vulnerability in the Linux kernel's ksmbd component relates to improper validation of buffer lengths for extended attributes in SMB2 FILE_FULL_EA_INFORMATION requests. This issue can lead to incorrect processing of multiple smb2_ea_info buffers, potentially causing errors or unexpected behavior.

Impact

Exploitation of this vulnerability could lead to buffer-related errors, such as invalid memory access or incorrect data processing, which may be leveraged for more severe attacks, like arbitrary code execution or memory corruption.

Reproduction

The vulnerability can be reproduced by sending a FILE_FULL_EA_INFORMATION request that includes multiple smb2_ea_info buffers. The ksmbd server will incorrectly validate the lengths of these buffers before accessing them, allowing for potential exploitation.

Remediation

Users can upgrade to the latest stable version of the Linux kernel to address this vulnerability.

Added: Aug 16, 2025, 2:17 PM
Updated: Aug 16, 2025, 2:17 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.4
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.