Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-31433

HIGH 8.8EPSS 51%

ksmbd: fix potencial OOB in get_file_all_info() for compound requests

Mitigation

  • Upgrade Linux to 6.1.168 or later.

Who should check

  • Anyone running Linux >= f2283680a80571ca82d710bc6ecd8f8beac67d63, < 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7; >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 4cca3eff2099b18672934a39cee70aed835d652c; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 7aec5a769d2356cbf344d85bcfd36de592ac96a5; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < b0cd9725fe2bcc9f37d096b132318a9060373f5d; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 9d7032851d6f5adbe2739601ca456c0ad3b422f0; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < beef2634f81f1c086208191f7228bce1d366493d; >= 5.15.145, < 5.15.203; >= 6.1.71, < 6.1.168
  • Anyone running Linux 6.6

Vulnerability facts

Affected
Linux >= f2283680a80571ca82d710bc6ecd8f8beac67d63, < 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7; >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 4cca3eff2099b18672934a39cee70aed835d652c; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 7aec5a769d2356cbf344d85bcfd36de592ac96a5; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < b0cd9725fe2bcc9f37d096b132318a9060373f5d; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 9d7032851d6f5adbe2739601ca456c0ad3b422f0; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < beef2634f81f1c086208191f7228bce1d366493d; >= 5.15.145, < 5.15.203; >= 6.1.71, < 6.1.168; Linux 6.6
Fixed in
Linux 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7, Linux 4cca3eff2099b18672934a39cee70aed835d652c, Linux 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe, Linux 7aec5a769d2356cbf344d85bcfd36de592ac96a5, Linux 9d7032851d6f5adbe2739601ca456c0ad3b422f0, Linux 5.15.203, Linux 6.1.168
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.74% chance of exploitation in 30 days (percentile 51, 2026-11-26)
CWE
CWE-125
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= f2283680a80571ca82d710bc6ecd8f8beac67d63, < 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7; >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 4cca3eff2099b18672934a39cee70aed835d652c; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 7aec5a769d2356cbf344d85bcfd36de592ac96a5; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < b0cd9725fe2bcc9f37d096b132318a9060373f5d; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 9d7032851d6f5adbe2739601ca456c0ad3b422f0; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < beef2634f81f1c086208191f7228bce1d366493d; >= 5.15.145, < 5.15.203; >= 6.1.71, < 6.1.168—cvelist
Linux6.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-31433. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31433.md
Affected: Linux >= f2283680a80571ca82d710bc6ecd8f8beac67d63, < 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7; >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 4cca3eff2099b18672934a39cee70aed835d652c; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe; >= e2b76ab8b5c9327ab2dae6d…
Fixed in: Linux 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7, Linux 4cca3eff2099b18672934a39cee70aed835d652c, Linux 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe, Linux 7aec5a769d2356cbf344d85bcfd36de592ac96a5, Linux 9d7032851d6f5adbe2739601ca456c0ad3b422f0, Linux 5.15.203, Linux 6.1.168

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-31433 being exploited?

There is no confirmed exploitation: CVE-2026-31433 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-31433?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2026-31433?

Linux >= f2283680a80571ca82d710bc6ecd8f8beac67d63, < 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7; >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 4cca3eff2099b18672934a39cee70aed835d652c; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 7aec5a769d2356cbf344d85bcfd36de592ac96a5; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < b0cd9725fe2bcc9f37d096b132318a9060373f5d; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 9d7032851d6f5adbe2739601ca456c0ad3b422f0; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < beef2634f81f1c086208191f7228bce1d366493d; >= 5.15.145, < 5.15.203; >= 6.1.71, < 6.1.168; Linux 6.6.

Is there a fix for CVE-2026-31433?

Yes. Fixed in Linux 3a852f9d1c981fb14f6bf4e24999e0ea8088a7d7, Linux 4cca3eff2099b18672934a39cee70aed835d652c, Linux 358cdaa1f7fbf2712cb4c5f6b59cb9a5c673c5fe, Linux 7aec5a769d2356cbf344d85bcfd36de592ac96a5, Linux 9d7032851d6f5adbe2739601ca456c0ad3b422f0, Linux 5.15.203, Linux 6.1.168. Upgrade Linux to 6.1.168 or later.

How do I check if I'm affected by CVE-2026-31433?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors