Linux Kernel ksmbd Buffer Validation Vulnerability in Extended Attributes Handling

Vulnerability

A vulnerability in the Linux kernel's ksmbd component has been addressed, concerning improper buffer validation in the smb2_set_ea function, which manages Extended Attributes (EA). The original validation checks failed to account for the null terminator's size, leading to potential buffer overflows. This issue has been corrected by adding the appropriate length for the null terminator, ensuring that the validation accurately reflects the total buffer size required.

Impact

The vulnerability could lead to buffer overflow issues, potentially allowing for arbitrary code execution or memory corruption.

Reproduction

The vulnerability can be reproduced by invoking the smb2_set_ea function with an Extended Attribute name that does not include the null terminator. This can be done by manually setting the EaNameLength to exclude the terminator when the Extended Attributes are processed.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been patched.

Added: Jan 13, 2026, 6:04 PM
Updated: Jan 13, 2026, 6:04 PM

Vulnerability Rating

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