CVE-2026-31613·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.1
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.39% — higher than 33% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31613 scores 8.1 on CVSS, so a successful attack would be serious — but at 0.39%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 7.0
Until: 7.0.1
Fixed in: 7.0.1
How to fix this CVE
Update your Linux kernel to version 7.0.1 or later to resolve an out-of-bounds read vulnerability in SMB symlink error response parsing. This flaw allows malicious SMB servers to read and leak sensitive kernel heap memory by crafting specially crafted symlink error responses. Apply the patch immediately to prevent potential information disclosure attacks from untrusted network sources.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version; versions 7.0 through 7.0.0 are vulnerable
- Check if SMB client is in use by running 'lsmod | grep cifs' or 'lsmod | grep smb'
- Review kernel logs with 'sudo journalctl -k --no-pager | grep -i symlink' for any symlink parsing errors or unusual error context processing
- After patching, verify the new kernel version with 'uname -r' and confirm it shows 7.0.1 or later
FAQ
What is CVE-2026-31613?
This vulnerability is an out-of-bounds read flaw in the Linux kernel's SMB client when processing symlink error responses. A malicious SMB server can trigger heap memory reads that leak sensitive data to userspace through readlink() calls, potentially exposing kernel memory contents.
Is CVE-2026-31613 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available at this time.
What versions of Kernel are affected by CVE-2026-31613?
Linux kernel versions 7.0 through 7.0.0 are vulnerable. Version 7.0.1 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-31613?
Run 'uname -r' and verify the output; if it shows kernel 7.0 through 7.0.0, your system is vulnerable. Additionally, check if SMB client functionality is enabled with 'grep CONFIG_CIFS /boot/config-$(uname -r)'.
Does Defensia detect CVE-2026-31613?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel package is installed on a monitored server, CVE-2026-31613 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- 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
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31613. Free for 1 server.
Get started free