CVE-2026-31705
published critical CVSS 3.1 · 9.8ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf2283680a80571ca82d710bc6ecd8f8beac67d63 to < 1616f77677a30d13baac9fa166999ac1e85f7c61 · 9f297df20d93411c0b4ddad7f88ba04a7cd36e77 to < ddbbc8b2a09dd2cfed90871313e3691ae1db08a2 · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < ffbce350c6fd1e99116ea57383b9031717e36d3b · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 98f3de6ef4efbd899348d333f0902dc4ff14380c · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 790304c02bf9bd7b8171feda4294d6e62d32ae8f · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 922d48fe8c19f388ffa2f709f33acaae4e408de2 · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 30010c952077a1c89ecdd71fc4d574c75a8f5617 · 5.15.145 to < 5.15.226 · 6.1.71 to < 6.1.175 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.175 through 6.1.* (unaffected · semver) · 6.6.136 through 6.6.* (unaffected · semver) · 6.12.84 through 6.12.* (unaffected · semver) · 6.18.25 through 6.18.* (unaffected · semver) · 7.0.2 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 evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.176-1 | DLA-4665-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| Ubuntu | bionic | linux | Advisory build | 4.15.0-254.266 | LSN-0121-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.176-1~deb11u1 | DLA-4671-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.0.7-1.1 | OPENSUSE-SU-2026:10793-1 |
| Ubuntu | bionic | linux | Advisory build | 4.15.0-260.272 | LSN-0122-1 |
| Ubuntu | bionic | linux-aws | Advisory build | 4.15.0-1195.208 | LSN-0121-1 |
| Ubuntu | bionic | linux-aws | Advisory build | 4.15.0-1197.210 | LSN-0122-1 |
| Ubuntu | bionic | linux-azure-4.15 | Advisory build | 4.15.0-1205.220 | LSN-0121-1 |
| Ubuntu | bionic | linux-azure-4.15 | Advisory build | 4.15.0-1207.222 | LSN-0122-1 |
| Ubuntu | bionic | linux-gcp-4.15 | Advisory build | 4.15.0-1188.205 | LSN-0121-1 |
| Ubuntu | bionic | linux-gcp-4.15 | Advisory build | 4.15.0-1190.207 | LSN-0122-1 |
| Ubuntu | bionic | linux-hwe-5.4 | Advisory build | 5.4.0-234.254~18.04.1 | LSN-0121-1 |
| Ubuntu | bionic | linux-hwe-5.4 | Advisory build | 5.4.0-245.265~18.04.1 | LSN-0122-1 |
| Ubuntu | bionic | linux-oracle | Advisory build | 4.15.0-1158.169 | LSN-0121-1 |
| Ubuntu | bionic | linux-oracle | Advisory build | 4.15.0-1160.171 | LSN-0122-1 |
| Ubuntu | focal | linux | Advisory build | 5.4.0-234.254 | LSN-0121-1 |
| Ubuntu | focal | linux | Advisory build | 5.4.0-245.265 | LSN-0122-1 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1114 | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1114 | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1114 | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1119 | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1119 | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1119 | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-azure-fde-5.15-cloud-tools-5.15.0-1118 | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-azure-fde-5.15-headers-5.15.0-1118 | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-azure-fde-5.15-tools-5.15.0-1118 | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1065-nvidia-tegra | Advisory build | 5.15.0-1065.67~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1065-nvidia-tegra-rt | Advisory build | 5.15.0-1065.67~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1107-ibm | Advisory build | 5.15.0-1107.111~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1108-intel-iotg | Advisory build | 5.15.0-1108.114~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1110-oracle | Advisory build | 5.15.0-1110.116~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1114-aws | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1114-gcp | Advisory build | 5.15.0-1114.124~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1118-azure-fde | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1119-azure | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-190-generic | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-190-generic-64k | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-190-generic-lpae | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-190-lowlatency | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-190-lowlatency-64k | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1108-intel-iotg | Advisory build | 5.15.0-1108.114~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1114-aws | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1118-azure-fde | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1119-azure | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-190-generic | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-190-lowlatency | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1114.124~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1114 | Advisory build | 5.15.0-1114.124~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1114 | Advisory build | 5.15.0-1114.124~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-headers-5.15.0-1065-nvidia-tegra | Advisory build | 5.15.0-1065.67~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-headers-5.15.0-1065-nvidia-tegra-rt | Advisory build | 5.15.0-1065.67~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-headers-5.15.0-1107-ibm | Advisory build | 5.15.0-1107.111~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-headers-5.15.0-1108-intel-iotg | Advisory build | 5.15.0-1108.114~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-headers-5.15.0-1110-oracle | Advisory build | 5.15.0-1110.116~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-headers-5.15.0-1114-aws | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-headers-5.15.0-1114-gcp | Advisory build | 5.15.0-1114.124~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-headers-5.15.0-1118-azure-fde | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-headers-5.15.0-1119-azure | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-headers-5.15.0-190-generic | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-headers-5.15.0-190-generic-64k | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-headers-5.15.0-190-generic-lpae | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-headers-5.15.0-190-lowlatency | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-headers-5.15.0-190-lowlatency-64k | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-190 | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-190 | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-190 | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1107.111~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1107 | Advisory build | 5.15.0-1107.111~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1107.111~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1107 | Advisory build | 5.15.0-1107.111~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-image-5.15.0-190-generic | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-image-5.15.0-190-generic-lpae | Advisory build | 5.15.0-190.200~20.04.1 | USN-8661-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1065-nvidia-tegra | Advisory build | 5.15.0-1065.67~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1065-nvidia-tegra-rt | Advisory build | 5.15.0-1065.67~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1107-ibm | Advisory build | 5.15.0-1107.111~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1108-intel-iotg | Advisory build | 5.15.0-1108.114~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1110-oracle | Advisory build | 5.15.0-1110.116~20.04.1 | USN-8631-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1114-aws | Advisory build | 5.15.0-1114.121~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1114-gcp | Advisory build | 5.15.0-1114.124~20.04.1 | USN-8661-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1118-azure-fde | Advisory build | 5.15.0-1118.127~20.04.1 | USN-8631-4 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1119-azure | Advisory build | 5.15.0-1119.128~20.04.1 | USN-8661-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment smb2_get_ea() applies 4-byte alignment padding via memset() after writing each EA entry. The bounds check on buf_free_len is performed before the value memcpy, but the alignment memset fires unconditionally afterward with no check on remaining space. When the EA value exactly fills the remaining buffer (buf_free_len == 0 after value subtraction), the alignment memset writes 1-3 NUL bytes past the buf_free_len boundary. In compound requests where the response buffer is shared across commands, the first command (e.g., READ) can consume most of the buffer, leaving a tight remainder for the QUERY_INFO EA response. The alignment memset then overwrites past the physical kvmalloc allocation into adjacent kernel heap memory. Add a bounds check before the alignment memset to ensure buf_free_len can accommodate the padding bytes. This is the same bug pattern fixed by commit beef2634f81f ("ksmbd: fix potencial OOB in get_file_all_info() for compound requests") and commit fda9522ed6af ("ksmbd: fix OOB write in QUERY_INFO for compound requests"), both of which added bounds checks before unconditional writes in QUERY_INFO response handlers.
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
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - ksmbd processes SMB2 requests over TCP, typically port 445, and the vulnerable `SMB2_QUERY_INFO` EA path is reachable through network packets from a remote SMB client. AC:L - The attacker can craft the compound response-buffer exhaustion and EA length/alignment conditions through SMB requests and controlled xattr sizes; there is no race or external condition beyond attacker control. PR:N - Although `SMB2_QUERY_INFO` is after session and tree setup, ksmbd supports guest/anonymous sessions and guest-accessible shares, so a reasonable deployment can expose this path without authenticated credentials. UI:N - No victim action is required after the server is running and exposing the share; the attacker sends SMB requests directly. S:U - The corruption occurs inside the kernel SMB server and impacts the same kernel/host security authority, without crossing a VM, IOMMU, or sandbox boundary. C:H - This is kernel heap memory corruption from an out-of-bounds write; in the highest defensible case it can be leveraged toward kernel code execution or primitives that expose arbitrary kernel data. I:H - The bug is an out-of-bounds write of attacker-reached data into adjacent kernel heap memory, which is high integrity impact under the kernel scoring guidance. A:H - The out-of-bounds heap write can corrupt kernel memory and crash or panic the system, and it can be triggered remotely and repeatedly through SMB.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f2283680a80571ca82d710bc6ecd8f8beac67d63 to < 1616f77677a30d13baac9fa166999ac1e85f7c61 (affected · git)9f297df20d93411c0b4ddad7f88ba04a7cd36e77 to < ddbbc8b2a09dd2cfed90871313e3691ae1db08a2 (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < ffbce350c6fd1e99116ea57383b9031717e36d3b (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 98f3de6ef4efbd899348d333f0902dc4ff14380c (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 790304c02bf9bd7b8171feda4294d6e62d32ae8f (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 922d48fe8c19f388ffa2f709f33acaae4e408de2 (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 30010c952077a1c89ecdd71fc4d574c75a8f5617 (affected · git)5.15.145 to < 5.15.226 (affected · semver)6.1.71 to < 6.1.175 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.175 through 6.1.* (unaffected · semver)6.6.136 through 6.6.* (unaffected · semver)6.12.84 through 6.12.* (unaffected · semver)6.18.25 through 6.18.* (unaffected · semver)7.0.2 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
0No weakness assertions.
References
8- https://cert-portal.siemens.com/productcert/html/ssa-784472.html
- https://git.kernel.org/stable/c/1616f77677a30d13baac9fa166999ac1e85f7c61
- https://git.kernel.org/stable/c/30010c952077a1c89ecdd71fc4d574c75a8f5617
- https://git.kernel.org/stable/c/790304c02bf9bd7b8171feda4294d6e62d32ae8f
- https://git.kernel.org/stable/c/922d48fe8c19f388ffa2f709f33acaae4e408de2
- https://git.kernel.org/stable/c/98f3de6ef4efbd899348d333f0902dc4ff14380c
- https://git.kernel.org/stable/c/ddbbc8b2a09dd2cfed90871313e3691ae1db08a2
- https://git.kernel.org/stable/c/ffbce350c6fd1e99116ea57383b9031717e36d3b
Provider assertions
2Linux · cna
ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment
siemens-SADP · adp
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fe03ce54d50832f5d45b66bb8da18f4bbb481db666872e119c94817d52cbbeea
- Ingested
- 23 Nov 2026, 14:24:59 UTC
- Source record
- Official CVE record