Linux Kernel ksmbd Component Timing Attack Vulnerability Mitigated by Constant-Time MAC Comparison

Vulnerability

A vulnerability in the Linux kernel's ksmbd component allowed for timing attacks due to non-constant-time comparisons of Message Authentication Codes (MACs). This issue has been addressed by replacing the standard memcmp() function with crypto_memneq(), which performs the comparison in constant time. The vulnerability was present in several versions of the Linux kernel.

Impact

The vulnerability could be exploited to perform timing attacks, potentially leading to the leakage of sensitive information by allowing an attacker to infer details based on the time taken for operations.

Reproduction

The vulnerability could be reproduced by configuring a Linux kernel version that includes the ksmbd component. Once this is set up, the non-constant-time MAC comparisons can be exploited to perform a timing attack. This involves measuring the time taken for the kernel to process certain operations and using that information to infer details about the MAC comparisons being made.

Remediation

Users can upgrade to the latest version of the Linux kernel, where this vulnerability has been addressed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.

Added: Mar 25, 2026, 11:57 AM
Updated: Mar 25, 2026, 11:57 AM

Vulnerability Rating

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