8.1

CVE-2026-31613: smb: client: fix OOB reads parsing symlink error response

Modified
AliasesUBUNTU-CVE-2026-31613DEBIAN-CVE-2026-31613CGA-55hm-983w-cjjv
Published 24-04-2026Last modified 19-10-2026

Vulnerability summary

CVE-2026-31613 is a high (CVSS 8.1) Out-of-bounds Read vulnerability in linux. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 32.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.1/10
010
High · v3.1 (CVE.org)
EPSS score
0.39%
0%100%
Low · -0.16 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 45 · Related 36

Timeline

  1. 24-04-2026
    PublishedVulnerability first disclosed.
  2. 19-10-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

33%

Versus all other CVEs

30-day change

Decrease -0.16 pp

From 0.55% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu133 products
  • linux< 6.8.0-136.136 | All versions (No fix recorded) | < 7.0.0-27.27
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 6.8.0-1061.64 | All versions (No fix recorded) | < 7.0.0-1008.8
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Chainguard11 products
  • linux-aws-6.12All versions (No fix recorded)
  • linux-aws-6.18< 6.18.31-r0
  • linux-azure-6.12All versions (No fix recorded)
  • linux-azure-6.18< 6.18.31-r0
  • linux-gcp-6.12All versions (No fix recorded)
Linux2 products
  • linux≥ 76894f3e2f71177747b8b4763fb180e800279585, < 043834e72337ee7b4e9685859888623ba1504ac7 | ≥ 76894f3e2f71177747b8b4763fb180e800279585, < d65a64755a3df68a2fd19d2a81395e9f723aca23 | ≥ 76894f3e2f71177747b8b4763fb180e800279585, < 20ac98f0eb6047edb73c9a27af782bdde08b3757 | ≥ 76894f3e2f71177747b8b4763fb180e800279585, < e0dd90d14cbbf318157ea8e3fb62ee68a28655ed | ≥ 76894f3e2f71177747b8b4763fb180e800279585, < 781902e069f4ecb6c3b83502f181972c1446110a | ≥ 76894f3e2f71177747b8b4763fb180e800279585, < a66ef2e7ed837325c5600f8617d5ee0a0a149fdd | ≥ 76894f3e2f71177747b8b4763fb180e800279585, < 3df690bba28edec865cf7190be10708ad0ddd67e | 2d046892a493d9760c35fdaefc3017f27f91b621 | ≥ 6.0.16, < 6.1 | 6.1
  • linux_kernel≥ 6.1, < 6.18.24 | ≥ 6.19, < 6.19.14 | ≥ 7.0, < 7.0.1
Debian1 product
  • linux< 6.1.176-1 | < 6.12.94-1 | < 6.19.14-1

4 vendors · 147 products

References

34 links
Show all 34 references