CVE-2026-23364

ksmbd: Compare MACs in constant time

Published Mar 25, 2026 CVSS 3.1 · 7.4 High EPSS < 1% KEV · Not listed
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().

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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
Ubuntu USN Ubuntu USN USN-8567-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-1 Linux kernel (GCP FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8596-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8608-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-3 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8665-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8876-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8875-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8877-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8878-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8879-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8875-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9029-1 Linux kernel (Raspberry Pi) vulnerabilities
History
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:*:*:*:*:*:*
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'}

Type Values Removed Values Added
Weaknesses CWE-592
Type Values Removed Values Added
Weaknesses CWE-592
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 15, 2026, 1:14 AM
Reserved
Jan 13, 2026, 3:37 PM
Status
Modified
Published
Mar 25, 2026, 11:16 AM
Modified
Oct 15, 2026, 2:18 AM
Severity
Public date
Mar 25, 2026, 12:00 AM