CVE-2026-31613
published high CVSS 3.1 · 8.1smb: client: fix OOB reads parsing symlink error response
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux76894f3e2f71177747b8b4763fb180e800279585 to < 043834e72337ee7b4e9685859888623ba1504ac7 · 76894f3e2f71177747b8b4763fb180e800279585 to < d65a64755a3df68a2fd19d2a81395e9f723aca23 · 76894f3e2f71177747b8b4763fb180e800279585 to < 20ac98f0eb6047edb73c9a27af782bdde08b3757 · 76894f3e2f71177747b8b4763fb180e800279585 to < e0dd90d14cbbf318157ea8e3fb62ee68a28655ed · 76894f3e2f71177747b8b4763fb180e800279585 to < 781902e069f4ecb6c3b83502f181972c1446110a · 76894f3e2f71177747b8b4763fb180e800279585 to < a66ef2e7ed837325c5600f8617d5ee0a0a149fdd · 76894f3e2f71177747b8b4763fb180e800279585 to < 3df690bba28edec865cf7190be10708ad0ddd67e · 2d046892a493d9760c35fdaefc3017f27f91b621 · 6.0.16 to < 6.1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.1 (affected) · 0 to < 6.1 (unaffected · semver) · 6.1.175 through 6.1.* (unaffected · semver) · 6.6.141 through 6.6.* (unaffected · semver) · 6.12.91 through 6.12.* (unaffected · semver) · 6.18.24 through 6.18.* (unaffected · semver) · 6.19.14 through 6.19.* (unaffected · semver) · 7.0.1 through 7.0.* (unaffected · semver) · 7.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Siemens | — | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 and later · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1693 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1882 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | kernel-abi-stablelists | Advisory build | 6.12.0-211.20.1.el10_2 | ALSA-2026:23329 |
| AlmaLinux | 10 | kernel-doc | Advisory build | 6.12.0-211.20.1.el10_2 | ALSA-2026:23329 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1894 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.132.1.rt7.473.el8_10 | ALSA-2026:25120 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.132.1.el8_10 | ALSA-2026:25121 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-687.13.1.el9_8 | ALSA-2026:24381 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix OOB reads parsing symlink error response When a CREATE returns STATUS_STOPPED_ON_SYMLINK, smb2_check_message() returns success without any length validation, leaving the symlink parsers as the only defense against an untrusted server. symlink_data() walks SMB 3.1.1 error contexts with the loop test "p < end", but reads p->ErrorId at offset 4 and p->ErrorDataLength at offset 0. When the server-controlled ErrorDataLength advances p to within 1-7 bytes of end, the next iteration will read past it. When the matching context is found, sym->SymLinkErrorTag is read at offset 4 from p->ErrorContextData with no check that the symlink header itself fits. smb2_parse_symlink_response() then bounds-checks the substitute name using SMB2_SYMLINK_STRUCT_SIZE as the offset of PathBuffer from iov_base. That value is computed as sizeof(smb2_err_rsp) + sizeof(smb2_symlink_err_rsp), which is correct only when ErrorContextCount == 0. With at least one error context the symlink data sits 8 bytes deeper, and each skipped non-matching context shifts it further by 8 + ALIGN(ErrorDataLength, 8). The check is too short, allowing the substitute name read to run past iov_len. The out-of-bound heap bytes are UTF-16-decoded into the symlink target and returned to userspace via readlink(2). Fix this all up by making the loops test require the full context header to fit, rejecting sym if its header runs past end, and bound the substitute name against the actual position of sym->PathBuffer rather than a fixed offset. Because sub_offs and sub_len are 16bits, the pointer math will not overflow here with the new greater-than.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:N - The crafted data is delivered over SMB by a remote SMB server in response to client CREATE/path-info operations. A malicious server can trigger the parser once the victim connects to or uses the share. AC:L - The attacker controls the relevant SMB error context fields, offsets, and lengths in a single response. No race or condition outside attacker control is required. PR:N - The attacker needs no privileges on the victim system; they only need to operate or impersonate the SMB server endpoint. SMB session setup is victim-side interaction, not attacker privilege. UI:R - A victim must mount/connect to the SMB share or access a path on an already-mounted share. The server cannot trigger the vulnerable client path without such client activity. S:U - The bug affects the kernel SMB client and exposes or disrupts resources within the same client security authority. It does not cross a VM, IOMMU, or sandbox boundary. C:H - The malformed symlink error response can make kernel heap bytes past the received SMB buffer get UTF-16 decoded into the symlink target and returned to userspace. The over-read is not strictly limited to only a few bytes in the error-context case. I:N - The bug is an out-of-bounds read, not a write or control-flow primitive. The malicious server already controls symlink response contents, so this adds disclosure and possible crash impact rather than data modification. A:H - The unchecked over-read occurs in kernel parsing/conversion paths and can read beyond the allocated receive buffer, which can fault or oops the kernel. A malicious server can also repeatedly trigger the malformed response when the client accesses the path.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 76894f3e2f71177747b8b4763fb180e800279585 to < 043834e72337ee7b4e9685859888623ba1504ac7 (affected · git)76894f3e2f71177747b8b4763fb180e800279585 to < d65a64755a3df68a2fd19d2a81395e9f723aca23 (affected · git)76894f3e2f71177747b8b4763fb180e800279585 to < 20ac98f0eb6047edb73c9a27af782bdde08b3757 (affected · git)76894f3e2f71177747b8b4763fb180e800279585 to < e0dd90d14cbbf318157ea8e3fb62ee68a28655ed (affected · git)76894f3e2f71177747b8b4763fb180e800279585 to < 781902e069f4ecb6c3b83502f181972c1446110a (affected · git)76894f3e2f71177747b8b4763fb180e800279585 to < a66ef2e7ed837325c5600f8617d5ee0a0a149fdd (affected · git)76894f3e2f71177747b8b4763fb180e800279585 to < 3df690bba28edec865cf7190be10708ad0ddd67e (affected · git)2d046892a493d9760c35fdaefc3017f27f91b621 (affected · git)6.0.16 to < 6.1 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.1 (affected)0 to < 6.1 (unaffected · semver)6.1.175 through 6.1.* (unaffected · semver)6.6.141 through 6.6.* (unaffected · semver)6.12.91 through 6.12.* (unaffected · semver)6.18.24 through 6.18.* (unaffected · semver)6.19.14 through 6.19.* (unaffected · semver)7.0.1 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 and later (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
1- CWE-125 CWE-125 Out-of-bounds Read
References
8- https://cert-portal.siemens.com/productcert/html/ssa-784472.html
- https://git.kernel.org/stable/c/043834e72337ee7b4e9685859888623ba1504ac7
- https://git.kernel.org/stable/c/20ac98f0eb6047edb73c9a27af782bdde08b3757
- https://git.kernel.org/stable/c/3df690bba28edec865cf7190be10708ad0ddd67e
- https://git.kernel.org/stable/c/781902e069f4ecb6c3b83502f181972c1446110a
- https://git.kernel.org/stable/c/a66ef2e7ed837325c5600f8617d5ee0a0a149fdd
- https://git.kernel.org/stable/c/d65a64755a3df68a2fd19d2a81395e9f723aca23
- https://git.kernel.org/stable/c/e0dd90d14cbbf318157ea8e3fb62ee68a28655ed
Provider assertions
3Linux · cna
smb: client: fix OOB reads parsing symlink error response
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 93fbbbbfea7f14062a483e87b5faaa6233b9e6048e8872c43277d18d79eaa846
- Ingested
- 19 Oct 2026, 18:57:59 UTC
- Source record
- Official CVE record