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

smb: client: fix OOB struct field reads in move_smb2_ea_to_cifs()

In move_smb2_ea_to_cifs(), the while (src_size > 0) loop condition is
insufficient. It allows iteration to continue even if the remaining
src_size is too small to contain a complete smb2_ea_info structure.
Consequently, reads of ea_name_length and ea_value_length can occur
out-of-bounds.

Fix this by ensuring src_size >= sizeof(*src) before attempting to read
any structure fields. Additionally, reject any next_entry_offset that is
smaller than sizeof(*src) or that would advance the pointer beyond the
available buffer.

Note that for calls where the server returns a malformed EA list, the
error returned to userspace changes from -ENODATA (getxattr) or
-ERANGE (listxattr) to -EIO. This correctly signals a server protocol
error rather than misleadingly indicating "attribute not present" or
"output buffer too small".
Published: 2026-10-06
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Out-of-bounds read in SMB client leading to information disclosure
Action: Apply Patch
AI Analysis

Impact

In the Linux kernel SMB client, the function move_smb2_ea_to_cifs() uses a loop condition that permits iteration when the remaining source size is insufficient to contain a complete smb2_ea_info structure. This can result in out‑of‑bounds reads of ea_name_length and ea_value_length. The patch adds a check that src_size is at least the size of the structure before any reads, rejects next_entry_offset values that are too small or would advance beyond the buffer, and changes the error returned to user space for malformed EA lists from a misleading “attribute not present” or “output buffer too small” to a clear “server protocol error”. The vulnerability is a classic out‑of‑bounds read that may leak data from the filesystem or server responses. An attacker could send a crafted SMB server response with a malformed EA list to trigger the vulnerability and obtain bytes that were not intended for the client.

Affected Systems

Affected systems are Linux kernel implementations that have not yet incorporated the commit that fixes move_smb2_ea_to_cifs(). Specific version ranges are not provided in the advisory.

Risk and Exploitability

Risk and exploitability are significant because the flaw is a server‑initiated condition and does not require local privileges. The EPSS score is < 1% and the vulnerability is not listed in CISA KEV, yet the CVSS score of 5.5 indicates medium severity and the potential for remote information disclosure makes it a noteworthy flaw. An attacker who can control or influence an SMB server could trigger the out‑of‑bounds read, causing the kernel to return an EIO error; although this signals a protocol error, the vulnerable client can still read unintended data. Exploitation requires network access to the SMB client and a malicious or compromised SMB server.

Generated by OpenCVE AI on October 7, 2026 at 07:34 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the commit that fixes move_smb2_ea_to_cifs
  • If an immediate kernel upgrade is not possible, restrict or block SMB traffic from untrusted hosts using firewall rules or network segmentation to prevent malicious SMB servers from communicating with the client
  • Monitor system logs for EIO errors returned by getxattr or listxattr; investigate any suspicious SMB traffic and consider disabling the SMB client if it is not required for your environment

Generated by OpenCVE AI on October 7, 2026 at 07:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
History

Wed, 21 Oct 2026 13:15:00 +0000


Wed, 07 Oct 2026 06:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-788

Wed, 07 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Tue, 06 Oct 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-788

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: smb: client: fix OOB struct field reads in move_smb2_ea_to_cifs() In move_smb2_ea_to_cifs(), the while (src_size > 0) loop condition is insufficient. It allows iteration to continue even if the remaining src_size is too small to contain a complete smb2_ea_info structure. Consequently, reads of ea_name_length and ea_value_length can occur out-of-bounds. Fix this by ensuring src_size >= sizeof(*src) before attempting to read any structure fields. Additionally, reject any next_entry_offset that is smaller than sizeof(*src) or that would advance the pointer beyond the available buffer. Note that for calls where the server returns a malformed EA list, the error returned to userspace changes from -ENODATA (getxattr) or -ERANGE (listxattr) to -EIO. This correctly signals a server protocol error rather than misleadingly indicating "attribute not present" or "output buffer too small".
Title smb: client: fix OOB struct field reads in move_smb2_ea_to_cifs()
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-10-21T12:54:48.314Z

Reserved: 2026-09-25T10:25:14.322Z

Link: CVE-2026-98170

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:17:58.640

Modified: 2026-10-21T13:21:25.037

Link: CVE-2026-98170

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98170 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T07:45:14Z

Weaknesses