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

smb/client: fix out-of-bounds read in smb2_compound_op()

If a server sends a truncated response but a large OutputBufferLength, and
terminates the EA list early, check_wsl_eas() returns success without
validating that the entire OutputBufferLength fits within iov_len.

Then smb2_compound_op() does:
memcpy(idata->wsl.eas, data[0], size[0]);

Where size[0] is OutputBufferLength. If iov_len is smaller than size[0],
memcpy can read beyond the end of the rsp_iov allocation and leak adjacent
kernel heap memory.
Published: 2026-05-28
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the SMB client component of the Linux kernel, where the function smb2_compound_op() copies data into a buffer based on an OutputBufferLength supplied by the server. When a server returns a truncated response and specifies a large OutputBufferLength while prematurely terminating the EA list, the helper check_wsl_eas() incorrectly declares success without ensuring the full length fits within the allocated iov buffer. Consequently, memcpy() may read past the end of the rsp_iov allocation, exposing adjacent kernel heap memory. This out-of-bounds read can leak sensitive kernel data, thereby compromising confidentiality.

Affected Systems

The affected products are all Linux kernels that contain the vulnerable smb/client implementation. No specific version numbers are provided in the CVE data, so any kernel running a build that has not yet incorporated the patch found in the referenced Git commits (512d33b, 8d09328, 9b3af35, a16f70a, dffb44b) is potentially vulnerable. Users should verify whether their installed kernel includes these standard-release patches.

Risk and Exploitability

The CVSS score for this issue is not supplied, and the EPSS score is currently unavailable, but the vulnerability is hosted in the core kernel and is not listed in CISA’s KEV catalog. The exploitation requires a malicious SMB server that can deliver the specially crafted truncated response. Thus the primary attack vector is server-initiated during normal SMB client communication. An attacker must control or compromise the SMB server and the client must be a Linux system using the vulnerable kernel. Because the flaw results in a read of kernel heap data, an attacker with sufficient privilege on the SMB server may acquire information useful for further exploitation, though the attack does not directly enable remote code execution.

Generated by OpenCVE AI on May 28, 2026 at 12:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the fixed commit(s) (512d33b, 8d09328, 9b3af35, a16f70a, or dffb44b).
  • If an immediate kernel update is not possible, block or filter SMB client traffic from potential malicious servers until the patch is applied.
  • Verify that the kernel build is not compiled with legacy smbclient support that may retain the old logic, and consider disabling the SMB client feature if it is not required for your environment.

Generated by OpenCVE AI on May 28, 2026 at 12:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122
CWE-20

Thu, 28 May 2026 10:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb/client: fix out-of-bounds read in smb2_compound_op() If a server sends a truncated response but a large OutputBufferLength, and terminates the EA list early, check_wsl_eas() returns success without validating that the entire OutputBufferLength fits within iov_len. Then smb2_compound_op() does: memcpy(idata->wsl.eas, data[0], size[0]); Where size[0] is OutputBufferLength. If iov_len is smaller than size[0], memcpy can read beyond the end of the rsp_iov allocation and leak adjacent kernel heap memory.
Title smb/client: fix out-of-bounds read in smb2_compound_op()
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-28T09:36:11.092Z

Reserved: 2026-05-13T15:03:33.102Z

Link: CVE-2026-46155

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-28T10:16:31.133

Modified: 2026-05-28T10:16:31.133

Link: CVE-2026-46155

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T12:30:16Z

Weaknesses