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

ksmbd: validate EaNameLength in smb2_get_ea()

smb2_get_ea() reads ea_req->EaNameLength from the client request and
passes it directly to strncmp() as the comparison length without
verifying that the length of the name really is the size of the input
buffer received.

Fix this up by properly checking the size of the name based on the value
received and the overall size of the request, to prevent a later
strncmp() call to use the length as a "trusted" size of the buffer.
Without this check, uninitialized heap values might be slowly leaked to
the client.
Published: 2026-04-24
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability originates in the ksmbd component of the Linux kernel, where a malformed SMB2 Extended Attribute (EA) request can cause the kernel to read the EaNameLength field directly as the comparison length for a strncmp() operation without verifying that the length is valid for the received buffer. This flaw can allow uninitialized heap data to be gradually leaked to the client through the flawed comparison, potentially exposing sensitive information.

Affected Systems

All Linux kernel variants that include ksmbd (the SMB server implementation) and have not yet incorporated the bundle of fixes that validate EaNameLength are affected. Specific version numbers are not disclosed in the CVE entry, so any kernel release prior to the patch should be considered vulnerable.

Risk and Exploitability

The severity score of 7.5 on the CVSS scale indicates a high impact, while the EPSS score of less than 1% suggests a low probability of widespread exploitation at this time. The vulnerability is not listed in the CISA KEV catalog, further indicating limited known exploitation. A remote attacker who can reach the SMB service can send a crafted request to trigger the flaw, exploiting the lack of bound checking and potentially leaking confidential data. The attack vector is inferred to be network‑based, requiring only SMB protocol access from the client side.

Generated by OpenCVE AI on April 29, 2026 at 21:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest release that includes the ksmbd EaNameLength validation fix.
  • If kernel upgrade is not immediately feasible, disable the ksmbd SMB service or limit it to trusted networks only.
  • Block external SMB traffic (TCP port 445) with a firewall until the patch is applied.

Generated by OpenCVE AI on April 29, 2026 at 21:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6238-1 linux security update
History

Mon, 01 Jun 2026 17:00:00 +0000


Wed, 29 Apr 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo

Mon, 27 Apr 2026 15:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Mon, 27 Apr 2026 14:15:00 +0000


Mon, 27 Apr 2026 11:30:00 +0000


Sat, 25 Apr 2026 00:15:00 +0000


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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate EaNameLength in smb2_get_ea() smb2_get_ea() reads ea_req->EaNameLength from the client request and passes it directly to strncmp() as the comparison length without verifying that the length of the name really is the size of the input buffer received. Fix this up by properly checking the size of the name based on the value received and the overall size of the request, to prevent a later strncmp() call to use the length as a "trusted" size of the buffer. Without this check, uninitialized heap values might be slowly leaked to the client.
Title ksmbd: validate EaNameLength in smb2_get_ea()
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-06-01T16:12:33.890Z

Reserved: 2026-03-09T15:48:24.123Z

Link: CVE-2026-31612

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2026-04-24T15:16:40.460

Modified: 2026-06-01T17:16:51.730

Link: CVE-2026-31612

cve-icon Redhat

Severity :

Publid Date: 2026-04-24T00:00:00Z

Links: CVE-2026-31612 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-29T21:45:20Z

Weaknesses