CVE-2026-98170

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

Published Oct 6, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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".

Analysis

AI-generated

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

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 DLA Debian DLA DLA-4906-1 linux security update
Debian DSA Debian DSA DSA-6568-1 linux security update
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-788
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

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

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:37 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 6, 2026, 9:17 AM
Modified
Oct 30, 2026, 1:21 PM
Severity
Moderate
Public date
Oct 6, 2026, 12:00 AM