CVE-2026-98170
smb: client: fix OOB struct field reads in move_smb2_ea_to_cifs()
Check your servers for CVE-2026-98170
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98170 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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".
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.38% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before 22886b1b7464613373c9a7d0af2ace029c50cd97 affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before 9d707a278c100c26d10fbbbd03988778ffc992ce affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before 90a13af4c9b1369327395bababfe87c75599cc19 affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before 61812323c037a94e2e7f0db7ee740c34b126bffe affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before d3546cecbf81d98bf3b472d341f981eb48c04f47 affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before 34a3942e787b9c59758115bd65fe1ec89d68c7a4 affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before 13efcd37a9b3d6ffa1579c3dda3e29c893ed9bca affected from 95907fea4fd8ccc736e0a428e52159b4d42b9958, before eeb5ef6083e1cefa2ef75041b5597ff228b8d7bb
Other versions: unaffected
|
| Linux |
affected 4.14 unaffected before 4.14 unaffected from 5.10.273 up to and including 5.10.* unaffected from 5.15.224 up to and including 5.15.* unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.54 up to and including 6.18.* unaffected from 7.2.8 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98170 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98170
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98170
trivy image --scanners vuln IMAGE | grep CVE-2026-98170
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/22886b1b7464613373c9a7d0af2ace029c50cd97 git.kernel.org
- https://git.kernel.org/stable/c/9d707a278c100c26d10fbbbd03988778ffc992ce git.kernel.org
- https://git.kernel.org/stable/c/90a13af4c9b1369327395bababfe87c75599cc19 git.kernel.org
- https://git.kernel.org/stable/c/61812323c037a94e2e7f0db7ee740c34b126bffe git.kernel.org
- https://git.kernel.org/stable/c/d3546cecbf81d98bf3b472d341f981eb48c04f47 git.kernel.org
- https://git.kernel.org/stable/c/34a3942e787b9c59758115bd65fe1ec89d68c7a4 git.kernel.org
- https://git.kernel.org/stable/c/13efcd37a9b3d6ffa1579c3dda3e29c893ed9bca git.kernel.org
- https://git.kernel.org/stable/c/eeb5ef6083e1cefa2ef75041b5597ff228b8d7bb git.kernel.org
Source: the record CVE-2026-98170 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse