CVE-2026-31433
published high CVSS 3.1 · 8.8ksmbd: fix potencial OOB in get_file_all_info() for compound requests
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf2283680a80571ca82d710bc6ecd8f8beac67d63 to < 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 · 9f297df20d93411c0b4ddad7f88ba04a7cd36e77 to < 4cca3eff2099b18672934a39cee70aed835d652c · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 7aec5a769d2356cbf344d85bcfd36de592ac96a5 · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < b0cd9725fe2bcc9f37d096b132318a9060373f5d · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 9d7032851d6f5adbe2739601ca456c0ad3b422f0 · e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < beef2634f81f1c086208191f7228bce1d366493d · 5.15.145 to < 5.15.203 · 6.1.71 to < 6.1.168 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 5.15.203 through 5.15.* (unaffected · semver) · 6.1.168 through 6.1.* (unaffected · semver) · 6.6.131 through 6.6.* (unaffected · semver) · 6.12.80 through 6.12.* (unaffected · semver) · 6.18.21 through 6.18.* (unaffected · semver) · 6.19.11 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| 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.170-1 | DSA-6243-1 |
| Ubuntu | bionic | linux | Advisory build | 4.15.0-260.272 | LSN-0122-1 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.170-1~deb11u1 | DLA-4561-1 |
| Debian | trixie | linux | Advisory build | 6.12.85-1 | DSA-6238-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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-1207.222 | LSN-0122-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-245.265~18.04.1 | LSN-0122-1 |
| Ubuntu | bionic | linux-oracle | Advisory build | 4.15.0-1160.171 | LSN-0122-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-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1112 | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1112 | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1112 | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1117 | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-azure-fde-5.15-cloud-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-azure-fde-5.15-headers-5.15.0-1117 | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-azure-fde-5.15-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1064-nvidia-tegra | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1064-nvidia-tegra-rt | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1106-ibm | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1107-intel-iotg | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1109-oracle | Advisory build | 5.15.0-1109.115~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1112-aws | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1112-gcp | Advisory build | 5.15.0-1112.122~20.04.1 | USN-8668-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1117-azure | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1117-azure-fde | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-184-lowlatency | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-184-lowlatency-64k | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-186-generic | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-186-generic-64k | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-186-generic-lpae | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1107-intel-iotg | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1112-aws | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1117-azure | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1117-azure-fde | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-184-lowlatency | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-186-generic | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1112.122~20.04.1 | USN-8668-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1112 | Advisory build | 5.15.0-1112.122~20.04.1 | USN-8668-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1112 | Advisory build | 5.15.0-1112.122~20.04.1 | USN-8668-1 |
| Ubuntu | focal | linux-headers-5.15.0-1064-nvidia-tegra | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-headers-5.15.0-1064-nvidia-tegra-rt | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-headers-5.15.0-1106-ibm | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-headers-5.15.0-1107-intel-iotg | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-headers-5.15.0-1109-oracle | Advisory build | 5.15.0-1109.115~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-headers-5.15.0-1112-aws | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-headers-5.15.0-1112-gcp | Advisory build | 5.15.0-1112.122~20.04.1 | USN-8668-1 |
| Ubuntu | focal | linux-headers-5.15.0-1117-azure | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-headers-5.15.0-1117-azure-fde | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-headers-5.15.0-184-lowlatency | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-headers-5.15.0-184-lowlatency-64k | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-headers-5.15.0-186-generic | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-headers-5.15.0-186-generic-64k | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-headers-5.15.0-186-generic-lpae | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-186 | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-186 | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-186 | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1106 | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1106 | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-image-5.15.0-186-generic | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-image-5.15.0-186-generic-lpae | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1064-nvidia-tegra | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1064-nvidia-tegra-rt | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1106-ibm | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1107-intel-iotg | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1109-oracle | Advisory build | 5.15.0-1109.115~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1112-aws | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1112-gcp | Advisory build | 5.15.0-1112.122~20.04.1 | USN-8668-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1117-azure | Advisory build | 5.15.0-1117.126~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1117-azure-fde | Advisory build | 5.15.0-1117.126~20.04.2 | USN-8620-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-184-lowlatency | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-184-lowlatency-64k | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-186-generic | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-186-generic-64k | Advisory build | 5.15.0-186.196~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1107 | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1107 | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1107 | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-184 | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-184 | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-184 | Advisory build | 5.15.0-184.194~20.04.1 | USN-8575-1 |
| Ubuntu | focal | linux-modules-5.15.0-1064-nvidia-tegra | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-modules-5.15.0-1064-nvidia-tegra-rt | Advisory build | 5.15.0-1064.66~20.04.1 | USN-8576-1 |
| Ubuntu | focal | linux-modules-5.15.0-1106-ibm | Advisory build | 5.15.0-1106.110~20.04.1 | USN-8597-1 |
| Ubuntu | focal | linux-modules-5.15.0-1107-intel-iotg | Advisory build | 5.15.0-1107.113~20.04.1 | USN-8620-3 |
| Ubuntu | focal | linux-modules-5.15.0-1109-oracle | Advisory build | 5.15.0-1109.115~20.04.1 | USN-8620-1 |
| Ubuntu | focal | linux-modules-5.15.0-1112-aws | Advisory build | 5.15.0-1112.119~20.04.1 | USN-8575-2 |
| Ubuntu | focal | linux-modules-5.15.0-1112-gcp | Advisory build | 5.15.0-1112.122~20.04.1 | USN-8668-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 potencial OOB in get_file_all_info() for compound requests When a compound request consists of QUERY_DIRECTORY + QUERY_INFO (FILE_ALL_INFORMATION) and the first command consumes nearly the entire max_trans_size, get_file_all_info() would blindly call smbConvertToUTF16() with PATH_MAX, causing out-of-bounds write beyond the response buffer. In get_file_all_info(), there was a missing validation check for the client-provided OutputBufferLength before copying the filename into FileName field of the smb2_file_all_info structure. If the filename length exceeds the available buffer space, it could lead to potential buffer overflows or memory corruption during smbConvertToUTF16 conversion. This calculating the actual free buffer size using smb2_calc_max_out_buf_len() and returning -EINVAL if the buffer is insufficient and updating smbConvertToUTF16 to use the actual filename length (clamped by PATH_MAX) to ensure a safe copy operation.
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.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - ksmbd is the in-kernel SMB server listening on TCP port 445, directly reachable over the network by any SMB client. AC:L - The attacker can reliably construct a compound request (QUERY_DIRECTORY + QUERY_INFO) where the first command consumes most of the buffer, then trigger the OOB write in the second command with no race conditions or special prerequisites. PR:L - The vulnerability requires an authenticated SMB session and tree connection; smb2_check_user_session() and smb2_get_ksmbd_tcon() are enforced before QUERY_INFO is processed, so the attacker needs valid SMB credentials. UI:N - No user interaction is required; the attacker sends the malicious compound SMB request directly over the network. S:U - The vulnerability stays within the kernel security scope; there is no crossing of a security boundary like VM escape or sandbox escape. C:H - The out-of-bounds heap write of up to ~8KB of attacker-influenced data into kernel heap can be leveraged to corrupt adjacent objects and create read primitives for arbitrary kernel memory disclosure. I:H - The OOB heap write corrupts adjacent kernel heap objects with partially attacker-controlled data (UTF-16 filename), which can be exploited via heap shaping for arbitrary write primitives and code execution. A:H - The out-of-bounds write corrupts kernel heap memory, which will reliably cause kernel crashes or panics.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f2283680a80571ca82d710bc6ecd8f8beac67d63 to < 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 (affected · git)9f297df20d93411c0b4ddad7f88ba04a7cd36e77 to < 4cca3eff2099b18672934a39cee70aed835d652c (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 7aec5a769d2356cbf344d85bcfd36de592ac96a5 (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < b0cd9725fe2bcc9f37d096b132318a9060373f5d (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < 9d7032851d6f5adbe2739601ca456c0ad3b422f0 (affected · git)e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d to < beef2634f81f1c086208191f7228bce1d366493d (affected · git)5.15.145 to < 5.15.203 (affected · semver)6.1.71 to < 6.1.168 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)5.15.203 through 5.15.* (unaffected · semver)6.1.168 through 6.1.* (unaffected · semver)6.6.131 through 6.6.* (unaffected · semver)6.12.80 through 6.12.* (unaffected · semver)6.18.21 through 6.18.* (unaffected · semver)6.19.11 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe
- https://git.kernel.org/stable/c/3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7
- https://git.kernel.org/stable/c/4cca3eff2099b18672934a39cee70aed835d652c
- https://git.kernel.org/stable/c/7aec5a769d2356cbf344d85bcfd36de592ac96a5
- https://git.kernel.org/stable/c/9d7032851d6f5adbe2739601ca456c0ad3b422f0
- https://git.kernel.org/stable/c/b0cd9725fe2bcc9f37d096b132318a9060373f5d
- https://git.kernel.org/stable/c/beef2634f81f1c086208191f7228bce1d366493d
Provider assertions
1Linux · cna
ksmbd: fix potencial OOB in get_file_all_info() for compound requests
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 81558bc686aeba0ba4e8109b8b8bfad4258af216af2d715c7b025aadf244a8ce
- Ingested
- 23 Sep 2026, 09:09:24 UTC
- Source record
- Official CVE record