Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: Compare MACs in constant time

To prevent timing attacks, MAC comparisons need to be constant-time.
Replace the memcmp() with the correct function, crypto_memneq().
Published: 2026-03-25
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: Timing-based information disclosure that can lead to unauthorized SMB access
Action: Immediate Patch
AI Analysis

Impact

The Linux kernel’s ksmbd service performs verification of message authentication codes (MACs) using the generic memcmp routine. Because memcmp stops on the first differing byte, the time taken to compare two MAC values varies with the number of matching leading bytes. This timing variation can be measured by an attacker to recover the correct MAC value byte by byte, allowing them to impersonate an authenticated user on the SMB service. The vulnerability is a classic timing‑based information‑disclosure attack that, if combined with network access to the SMB service, can enable unauthorized access to shared resources. The description indicates that an attacker could measure the timing differences to deduce MAC bytes; it is inferred that this could allow an attacker to impersonate an authenticated user on SMB, but the CVE text does not explicitly confirm that the restored MAC would grant full access.

Affected Systems

The vulnerability applies to all Linux kernels that include the ksmbd code before the patch that replaces memcmp with the constant‑time function crypto_memneq. The CPE identifiers indicate affected kernels include the generic Linux kernel, Linux kernel 5.15 releases, and pre‑release builds of Linux 7.0 from release candidate 1 through 7. Kernels that have been updated to include the fix are no longer affected.

Risk and Exploitability

The CVSS score of 7.4 indicates a moderate‑to‑high severity vulnerability. The EPSS score of less than 1% suggests that, historically, exploitation is uncommon, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack requires the SMB service to be exposed on the network and the attacker to have the capability to measure response times with sufficient precision. If these conditions are met, the attacker could reconstruct the MAC and gain unauthorized access to SMB shares.

Generated by OpenCVE AI on April 29, 2026 at 01:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the crypto_memneq fix for ksmbd and reboot to activate the patched kernel.
  • If a kernel upgrade cannot be performed immediately, temporarily disable the ksmbd service so that SMB traffic is not processed.
  • Further reduce exposure by restricting SMB service access to trusted internal networks and applying firewall rules that block SMB connections from untrusted hosts.

Generated by OpenCVE AI on April 29, 2026 at 01:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4561-1 linux-6.1 security update
Debian DSA Debian DSA DSA-6238-1 linux security update
Debian DSA Debian DSA DSA-6243-1 linux security update
History

Fri, 24 Apr 2026 16:00:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:5.15:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*

Thu, 02 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Thu, 26 Mar 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-592

Thu, 26 Mar 2026 00:15:00 +0000


Wed, 25 Mar 2026 22:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-592

Wed, 25 Mar 2026 10:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: Compare MACs in constant time To prevent timing attacks, MAC comparisons need to be constant-time. Replace the memcmp() with the correct function, crypto_memneq().
Title ksmbd: Compare MACs in constant time
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-11T22:05:26.553Z

Reserved: 2026-01-13T15:37:46.002Z

Link: CVE-2026-23364

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-03-25T11:16:35.547

Modified: 2026-04-24T15:46:07.933

Link: CVE-2026-23364

cve-icon Redhat

Severity :

Publid Date: 2026-03-25T00:00:00Z

Links: CVE-2026-23364 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-29T02:00:27Z

Weaknesses