CVE-2026-31433
ksmbd: fix potencial OOB in get_file_all_info() for compound requests
Check your servers for CVE-2026-31433
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31433 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.9% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f2283680a80571ca82d710bc6ecd8f8beac67d63, before 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 affected from 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, before 4cca3eff2099b18672934a39cee70aed835d652c affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before 7aec5a769d2356cbf344d85bcfd36de592ac96a5 affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before b0cd9725fe2bcc9f37d096b132318a9060373f5d affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before 9d7032851d6f5adbe2739601ca456c0ad3b422f0 affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before beef2634f81f1c086208191f7228bce1d366493d affected from 5.15.145, before 5.15.203 affected from 6.1.71, before 6.1.168
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 5.15.203 up to and including 5.15.* unaffected from 6.1.168 up to and including 6.1.* unaffected from 6.6.131 up to and including 6.6.* unaffected from 6.12.80 up to and including 6.12.* unaffected from 6.18.21 up to and including 6.18.* unaffected from 6.19.11 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31433 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31433
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31433
trivy image --scanners vuln IMAGE | grep CVE-2026-31433
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7 git.kernel.org
- https://git.kernel.org/stable/c/4cca3eff2099b18672934a39cee70aed835d652c git.kernel.org
- https://git.kernel.org/stable/c/358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe git.kernel.org
- https://git.kernel.org/stable/c/7aec5a769d2356cbf344d85bcfd36de592ac96a5 git.kernel.org
- https://git.kernel.org/stable/c/b0cd9725fe2bcc9f37d096b132318a9060373f5d git.kernel.org
- https://git.kernel.org/stable/c/9d7032851d6f5adbe2739601ca456c0ad3b422f0 git.kernel.org
- https://git.kernel.org/stable/c/beef2634f81f1c086208191f7228bce1d366493d git.kernel.org
Source: the record CVE-2026-31433 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse