Skip to content
OpenAdvisories
High · 8.1 CVE-2026-31613 EUVD-2026-25506GHSA-3w37-m4pg-q585

smb: client: fix OOB reads parsing symlink error response

Published Apr 24, 2026 · Updated Oct 19, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: kernel Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.14 Package: linux-aws-6.17 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-6.8 Package: linux-aws-fips Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.14 Package: linux-azure-6.17 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-6.8 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.15 Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.14 Package: linux-azure-fde-6.2 Package: linux-azure-fde-6.8 Package: linux-azure-fips Package: linux-azure-nvidia Package: linux-azure-nvidia-6.14 Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.14 Package: linux-gcp-6.17 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-6.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.19 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.14 Package: linux-hwe-6.17 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-6.8 Package: linux-hwe-7.0 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-6.8 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-lowlatency Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lowlatency-hwe-6.8 Package: linux-nvidia Package: linux-nvidia-6.11 Package: linux-nvidia-6.17 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-6.8 Package: linux-nvidia-lowlatency Package: linux-nvidia-tegra Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.14 Package: linux-oem-6.17 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-oracle-6.14 Package: linux-oracle-6.17 Package: linux-oracle-6.5 Package: linux-oracle-6.8 Package: linux-raspi Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.14 Package: linux-realtime-6.17 Package: linux-realtime-6.8 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.14 Package: linux-riscv-6.17 Package: linux-riscv-6.5 Package: linux-riscv-6.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

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.

Affected products

VendorProductAffectedFixed
Linux Linux 6.0.16 – < 6.1, 6.1 6.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.19.14-1 —
Debian 13 linux 6.12.94-1 —
Debian 12 linux 6.1.176-1 —
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 24.04 LTS linux-bluefield 6.8.0-1028.33 —
Ubuntu 26.04 LTS linux 7.0.0-27.27 USN-8488-1
Ubuntu 26.04 LTS linux-aws 7.0.0-1008.8 USN-8488-1
Ubuntu 26.04 LTS linux-azure 7.0.0-1010.10 USN-8603-1
Ubuntu 26.04 LTS linux-gcp +1 7.0.0-1007.7 USN-8488-1
Ubuntu 26.04 LTS linux-ibm +1 7.0.0-1009.9 USN-8603-1, USN-8488-1
Ubuntu 26.04 LTS linux-nvidia 7.0.0-1013.13 USN-8507-1
Ubuntu 26.04 LTS linux-raspi 7.0.0-1014.14 USN-8488-2
Ubuntu 26.04 LTS linux-riscv +1 7.0.0-27.27.1 USN-8488-1
Ubuntu 25.10 linux +8 No fix yet —
Ubuntu 24.04 LTS linux 6.8.0-136.136 USN-8567-1
Ubuntu 24.04 LTS linux-aws 6.8.0-1061.64 USN-8595-2
Ubuntu 24.04 LTS linux-azure 6.8.0-1063.71 USN-8606-1
Ubuntu 24.04 LTS linux-azure-fde 6.8.0-1062.69 USN-8607-1
Ubuntu 24.04 LTS linux-gcp 6.8.0-1064.72 USN-8567-1
Ubuntu 24.04 LTS linux-gke 6.8.0-1059.67 USN-8567-1
Ubuntu 24.04 LTS linux-gkeop 6.8.0-1046.50 USN-8567-1
Ubuntu 24.04 LTS linux-hwe-7.0 7.0.0-28.28~24.04.1 USN-8569-1
Ubuntu 24.04 LTS linux-ibm 6.8.0-1061.62 USN-8574-3
Ubuntu 24.04 LTS linux-lowlatency 6.8.0-136.136.2 USN-8574-2
Ubuntu 24.04 LTS linux-nvidia 6.8.0-1059.62 USN-8596-1
Ubuntu 24.04 LTS linux-nvidia-lowlatency 6.8.0-1059.62.1 USN-8596-1
Ubuntu 24.04 LTS linux-nvidia-tegra 6.8.0-1030.31 USN-8574-3
Ubuntu 24.04 LTS linux-oracle 6.8.0-1058.61 USN-8574-2
Ubuntu 24.04 LTS linux-raspi 6.8.0-1061.65 USN-8665-1
Ubuntu 24.04 LTS linux-riscv +27 No fix yet —
Ubuntu 24.04 LTS linux-vmware 6.8.0-1008.8 —
Ubuntu 24.04 LTS linux-xilinx 6.8.0-1033.34 USN-8574-3
Ubuntu 22.04 LTS linux-aws-6.8 6.8.0-1061.64~22.04.1 USN-8595-3
Ubuntu 22.04 LTS linux-azure +34 No fix yet —
Ubuntu 22.04 LTS linux-azure-6.8 6.8.0-1063.71~22.04.1 USN-8606-1
Ubuntu 22.04 LTS linux-azure-fde-6.8 6.8.0-1062.69~22.04.1 USN-8609-1
Ubuntu 22.04 LTS linux-gcp-6.8 6.8.0-1064.72~22.04.1 USN-8567-1
Ubuntu 22.04 LTS linux-hwe-6.8 6.8.0-136.136~22.04.1 USN-8619-1
Ubuntu 22.04 LTS linux-ibm-6.8 6.8.0-1061.62~22.04.1 USN-8574-3
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.8 6.8.0-136.136.2~22.04.1 USN-8574-2
Ubuntu 22.04 LTS linux-nvidia-6.8 6.8.0-1059.62~22.04.1 USN-8596-1
Ubuntu 22.04 LTS linux-oracle-6.8 6.8.0-1058.61~22.04.1 USN-8595-1
Ubuntu 22.04 LTS linux-riscv-6.8 6.8.0-136.136~22.04.3 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-raspi-realtime 6.8.0-2050.52 USN-8665-1
Ubuntu Pro Realtime 24.04 LTS linux-realtime 6.8.1-1056.57 USN-8567-1
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.14 +1 No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-realtime-6.8 6.8.1-1056.57~22.04.2 USN-8567-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-aws-fips 6.8.0-1061.64+fips1 USN-8595-3
Ubuntu Pro FIPS-updates 24.04 LTS linux-azure-fips 6.8.0-1063.71+fips2 USN-8608-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-fips 6.8.0-136.136+fips2 USN-8574-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-gcp-fips 6.8.0-1064.72+fips1 USN-8574-1
Ubuntu Pro FIPS-updates 22.04 LTS linux-azure-fips No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS linux-azure-fips No fix yet —
Ubuntu Pro 20.04 LTS linux-azure-5.15 +1 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 rv +76 6.12.0-211.20.1.el10_2 RHSA-2026:23329
RHEL 9 rv +75 5.14.0-687.13.1.el9_8 RHSA-2026:24381
RHEL 8 kernel-rt +12 4.18.0-553.132.1.rt7.473.el8_10 RHSA-2026:25120
RHEL 8 perf +26 4.18.0-553.132.1.el8_10 RHSA-2026:25121
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS rv +77 6.12.0-55.95.1.el10_0 RHSA-2026:52764
RHEL 9.6 EUS rv +77 5.14.0-570.129.1.el9_6 RHSA-2026:44385
RHEL 9.4 E4S bpftool 7.3.0-427.154.1.el9_4 RHSA-2026:77218
RHEL 9.4 E4S rv +62 5.14.0-427.154.1.el9_4 RHSA-2026:77218
RHEL 8.8 TUS perf +17 4.18.0-477.152.1.el8_8 RHSA-2026:40760
RHEL 8.8 E4S perf +18 4.18.0-477.152.1.el8_8 RHSA-2026:40760
RHEL 8.6 EUS Long Life perf +17 4.18.0-372.201.1.el8_6 RHSA-2026:40068
RHEL 8.6 AUS perf +17 4.18.0-372.201.1.el8_6 RHSA-2026:40068
RHEL 8.4 EUS Long Life perf +17 4.18.0-305.199.1.el8_4 RHSA-2026:47633
RHEL 8.4 AUS perf +17 4.18.0-305.199.1.el8_4 RHSA-2026:47633

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 rv +74 6.12.0-211.20.1.el10_2 ALSA-2026:23329
AlmaLinux 9 rv +73 5.14.0-687.13.1.el9_8 ALSA-2026:24381
AlmaLinux 8 kernel-rt +9 4.18.0-553.132.1.rt7.473.el8_10 ALSA-2026:25120
AlmaLinux 8 perf +24 4.18.0-553.132.1.el8_10 ALSA-2026:25121

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-553.132.1.el8_10 RXSA-2026:25121, RLSA-2026:25121
Rocky Linux 8 kernel-rt 4.18.0-553.132.1.rt7.473.el8_10 RLSA-2026:25120
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +6 6.4.0-150700.53.60.1 SUSE-SU-2026:2482-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.60.1.150700.17.35.4 SUSE-SU-2026:2482-1
SLES 15 SP7 kernel-obs-build 6.4.0-150700.53.60.2 SUSE-SU-2026:2482-1
SLES 15 SP6 kernel-64kb +6 6.4.0-150600.23.115.1 SUSE-SU-2026:2310-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.115.1.150600.12.54.1 SUSE-SU-2026:2310-1
SLES 15 SP5 kernel-64kb +4 5.14.21-150500.55.172.2 SUSE-SU-2026:2658-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.172.2.150500.6.81.2 SUSE-SU-2026:2658-1
SLES 15 SP5 kernel-docs +1 5.14.21-150500.55.172.1 SUSE-SU-2026:2658-1
SLES 15 SP4 kernel-64kb +4 5.14.21-150400.24.225.2 SUSE-SU-2026:2638-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.225.2.150400.24.114.2 SUSE-SU-2026:2638-1
SLES 15 SP4 kernel-docs +1 5.14.21-150400.24.225.1 SUSE-SU-2026:2638-1
Show 18 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +8 6.12.0-160000.34.1 SUSE-SU-2026:22087-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.34.1.160000.2.15 SUSE-SU-2026:22087-1
SLES for SAP 15 SP6 kernel-default-base 6.4.0-150600.23.115.1.150600.12.54.1 SUSE-SU-2026:2310-1
SLES for SAP 15 SP6 kernel-docs +4 6.4.0-150600.23.115.1 SUSE-SU-2026:2310-1
SLES for SAP 15 SP5 kernel-default-base 5.14.21-150500.55.172.2.150500.6.81.2 SUSE-SU-2026:2658-1
SLES for SAP 15 SP5 kernel-docs +1 5.14.21-150500.55.172.1 SUSE-SU-2026:2658-1
SLES for SAP 15 SP5 kernel-source +2 5.14.21-150500.55.172.2 SUSE-SU-2026:2658-1
SLES for SAP 15 SP4 kernel-default-base 5.14.21-150400.24.225.2.150400.24.114.2 SUSE-SU-2026:2638-1
SLES for SAP 15 SP4 kernel-docs +1 5.14.21-150400.24.225.1 SUSE-SU-2026:2638-1
SLES for SAP 15 SP4 kernel-source +2 5.14.21-150400.24.225.2 SUSE-SU-2026:2638-1
SLES 16.0 kernel-64kb +8 6.12.0-160000.34.1 SUSE-SU-2026:22087-1, SUSE-SU-2026:22076-1
SLES 16.0 kernel-default-base 6.12.0-160000.34.1.160000.2.15 SUSE-SU-2026:22087-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.34.1.160000.2.15 SUSE-SU-2026:22048-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.34.1 SUSE-SU-2026:22048-1, SUSE-SU-2026:22043-1
SLE Micro 6.1 kernel-default-base 6.4.0-47.1.21.24 SUSE-SU-2026:22137-1
SLE Micro 6.1 kernel-rt +1 6.4.0-48.1 SUSE-SU-2026:22458-1
SLE Micro 6.1 kernel-source +2 6.4.0-47.1 SUSE-SU-2026:22137-1
SLE Micro 6.0 kernel-default-base 6.4.0-47.1.21.24 SUSE-SU-2026:22108-1
SLE Micro 6.0 kernel-rt +1 6.4.0-48.1 SUSE-SU-2026:22433-1
SLE Micro 6.0 kernel-source +2 6.4.0-47.1 SUSE-SU-2026:22108-1
SLE Micro 5.5 kernel-default-base 5.14.21-150500.55.172.2.150500.6.81.2 SUSE-SU-2026:2658-1
SLE Micro 5.5 kernel-rt +1 5.14.21-150500.13.146.1 SUSE-SU-2026:2630-1
SLE Micro 5.5 kernel-source +1 5.14.21-150500.55.172.2 SUSE-SU-2026:2658-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.225.2.150400.24.114.2 SUSE-SU-2026:2638-1
SLE Micro 5.4 kernel-rt +1 5.14.21-150400.15.173.1 SUSE-SU-2026:2631-1
SLE Micro 5.4 kernel-source +1 5.14.21-150400.24.225.2 SUSE-SU-2026:2638-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.225.2.150400.24.114.2 SUSE-SU-2026:2638-1
SLE Micro 5.3 kernel-rt +1 5.14.21-150400.15.173.1 SUSE-SU-2026:2631-1
SLE Micro 5.3 kernel-source +1 5.14.21-150400.24.225.2 SUSE-SU-2026:2638-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.60.1 SUSE-SU-2026:2482-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_16 1-150700.1.5.2 SUSE-SU-2026:2591-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_16 1-150700.15.3.2 SUSE-SU-2026:2482-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.115.1 SUSE-SU-2026:2310-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_27 1-150600.13.3.1 SUSE-SU-2026:2310-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.172.2 SUSE-SU-2026:2658-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_42 1-150500.11.3.2 SUSE-SU-2026:2658-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.225.2 SUSE-SU-2026:2638-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_56 1-150400.9.3.2 SUSE-SU-2026:2638-1
SLE HPC 15 SP5 kernel-64kb +3 5.14.21-150500.55.172.2 SUSE-SU-2026:2658-1
SLE HPC 15 SP5 kernel-default-base 5.14.21-150500.55.172.2.150500.6.81.2 SUSE-SU-2026:2658-1
SLE HPC 15 SP5 kernel-docs +1 5.14.21-150500.55.172.1 SUSE-SU-2026:2658-1
SLE HPC 15 SP4 kernel-64kb +3 5.14.21-150400.24.225.2 SUSE-SU-2026:2638-1
SLE HPC 15 SP4 kernel-default-base 5.14.21-150400.24.225.2.150400.24.114.2 SUSE-SU-2026:2638-1
SLE HPC 15 SP4 kernel-docs +1 5.14.21-150400.24.225.1 SUSE-SU-2026:2638-1
SUSE Real Time Module 15 SP7 kernel-rt +1 6.4.0-150700.7.59.2 SUSE-SU-2026:2591-1
SUSE Real Time Module 15 SP7 kernel-syms-rt 6.4.0-150700.7.59.1 SUSE-SU-2026:2591-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed kernel-source 7.0.3-1.1 openSUSE-SU-2026:10703-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.18.25-55.108 +2 1:1.0-0.amzn2023 ALAS2023-2026-1894, ALAS2023-2026-1882, ALAS2023-2026-1693
Amazon Linux 2023 perf +11 1:6.1.175-219.357.amzn2023 ALAS2023-2026-1882
Amazon Linux 2023 perf6.12 +11 1:6.12.92-122.166.amzn2023 ALAS2023-2026-1894
Amazon Linux 2023 perf6.18 +11 1:6.18.25-55.108.amzn2023 ALAS2023-2026-1693

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 kernel 6.6.141.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 rv +29 6.12.0-211.34.1.el10_2 ELSA-2026-23329
Oracle Linux 9 rv +28 5.14.0-687.17.1.el9_8 ELSA-2026-24381
Oracle Linux 8 perf +19 4.18.0-553.132.1.el8_10 ELSA-2026-25121

Advisories 50

References