CVE-2026-31433 json
ksmbd: fix potencial OOB in get_file_all_info() for compound requests
published 2026-04-22 6 mo ago modified 2026-08-05 3 mo ago also EUVD-2026-24641
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0
- linux Debian 12 6.1.170-1
- linux Debian 13 6.12.85-1
- linux Debian 14 6.19.11-1
debian advisories DEBIAN-CVE-2026-31433
- linux Ubuntu 22.04 LTS 5.15.0-186.196
- linux Ubuntu 24.04 LTS 6.8.0-136.136
- linux-aws Ubuntu 22.04 LTS 5.15.0-1112.119
- linux-aws Ubuntu 24.04 LTS 6.8.0-1061.64
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1112.122
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1064.72
- linux-gke Ubuntu 22.04 LTS 5.15.0-1108.114
- linux-gke Ubuntu 24.04 LTS 6.8.0-1059.67
ubuntu advisories UBUNTU-CVE-2026-31433
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 commit
- git.kernel.org/stable/c/4cca3eff2099b18672934a39cee70aed835d652c commit
- git.kernel.org/stable/c/358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe commit
- git.kernel.org/stable/c/7aec5a769d2356cbf344d85bcfd36de592ac96a5 commit
- git.kernel.org/stable/c/b0cd9725fe2bcc9f37d096b132318a9060373f5d commit
- git.kernel.org/stable/c/9d7032851d6f5adbe2739601ca456c0ad3b422f0 commit
- git.kernel.org/stable/c/beef2634f81f1c086208191f7228bce1d366493d commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31433 updated
kernel: ksmbd: fix potencial OOB in get_file_all_info() for compound requests
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7
patch
-
git.kernel.org
/stable/c/4cca3eff2099b18672934a39cee70aed835d652c
patch
-
git.kernel.org
/stable/c/358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe
patch
-
git.kernel.org
/stable/c/7aec5a769d2356cbf344d85bcfd36de592ac96a5
patch
-
git.kernel.org
/stable/c/b0cd9725fe2bcc9f37d096b132318a9060373f5d
patch
-
git.kernel.org
/stable/c/9d7032851d6f5adbe2739601ca456c0ad3b422f0
patch
-
git.kernel.org
/stable/c/beef2634f81f1c086208191f7228bce1d366493d
patch
Sources
- CVE List CVE-2026-31433
- NVD CVE-2026-31433
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.