CVE-2026-31432
ksmbd: fix OOB write in QUERY_INFO for compound requests
Mitigation
- Upgrade Linux to 5.16 or later.
Who should check
- Anyone running Linux >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 533f84264e28c54a79257ea87d2f94a0fcc9a611; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 850452af77f55d185f9445e1f7a1db53c5e4aad4; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 075ea208c648cc2bcd616295b711d3637c61de45; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 515c2daab46021221bdf406bef19bc90a44ec617; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < fda9522ed6afaec45cabc198d8492270c394c7bc; f2283680a80571ca82d710bc6ecd8f8beac67d63; >= 6.1.71, < 6.1.191; >= 5.15.145, < 5.16
- Anyone running Linux 6.6
Vulnerability facts
- Affected
- Linux >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 533f84264e28c54a79257ea87d2f94a0fcc9a611; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 850452af77f55d185f9445e1f7a1db53c5e4aad4; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 075ea208c648cc2bcd616295b711d3637c61de45; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 515c2daab46021221bdf406bef19bc90a44ec617; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < fda9522ed6afaec45cabc198d8492270c394c7bc; f2283680a80571ca82d710bc6ecd8f8beac67d63; >= 6.1.71, < 6.1.191; >= 5.15.145, < 5.16; Linux 6.6
- Fixed in
- Linux 533f84264e28c54a79257ea87d2f94a0fcc9a611, Linux 850452af77f55d185f9445e1f7a1db53c5e4aad4, Linux 075ea208c648cc2bcd616295b711d3637c61de45, Linux 515c2daab46021221bdf406bef19bc90a44ec617, Linux 6.1.191, Linux 5.16
- 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.67% chance of exploitation in 30 days (percentile 47, 2026-11-26)
- CWE
- CWE-787
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix OOB write in QUERY_INFO for compound requests When a compound request such as READ + QUERY_INFO(Security) is received, and the first command (READ) consumes most of the response buffer, ksmbd could write beyond the allocated buffer while building a security descriptor. The root cause was that smb2_get_info_sec() checked buffer space using ppntsd_size from xattr, while build_sec_desc() often synthesized a significantly larger descriptor from POSIX ACLs. This patch introduces smb_acl_sec_desc_scratch_len() to accurately compute the final descriptor size beforehand, performs proper buffer checking with smb2_calc_max_out_buf_len(), and uses exact-sized allocation + iov pinning.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 533f84264e28c54a79257ea87d2f94a0fcc9a611; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 850452af77f55d185f9445e1f7a1db53c5e4aad4; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 075ea208c648cc2bcd616295b711d3637c61de45; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 515c2daab46021221bdf406bef19bc90a44ec617; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < fda9522ed6afaec45cabc198d8492270c394c7bc; f2283680a80571ca82d710bc6ecd8f8beac67d63; >= 6.1.71, < 6.1.191; >= 5.15.145, < 5.16 | — | cvelist |
| Linux | 6.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-31432. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-31432.md Affected: Linux >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 533f84264e28c54a79257ea87d2f94a0fcc9a611; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 850452af77f55d185f9445e1f7a1db53c5e4aad4; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09; >= e2b76ab8b5c9327ab2dae6d… Fixed in: Linux 533f84264e28c54a79257ea87d2f94a0fcc9a611, Linux 850452af77f55d185f9445e1f7a1db53c5e4aad4, Linux 075ea208c648cc2bcd616295b711d3637c61de45, Linux 515c2daab46021221bdf406bef19bc90a44ec617, Linux 6.1.191, Linux 5.16 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
Patches
FAQ
Is CVE-2026-31432 being exploited?
There is no confirmed exploitation: CVE-2026-31432 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-31432?
High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-31432?
Linux >= 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, < 533f84264e28c54a79257ea87d2f94a0fcc9a611; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 850452af77f55d185f9445e1f7a1db53c5e4aad4; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 075ea208c648cc2bcd616295b711d3637c61de45; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < 515c2daab46021221bdf406bef19bc90a44ec617; >= e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, < fda9522ed6afaec45cabc198d8492270c394c7bc; f2283680a80571ca82d710bc6ecd8f8beac67d63; >= 6.1.71, < 6.1.191; >= 5.15.145, < 5.16; Linux 6.6.
Is there a fix for CVE-2026-31432?
Yes. Fixed in Linux 533f84264e28c54a79257ea87d2f94a0fcc9a611, Linux 850452af77f55d185f9445e1f7a1db53c5e4aad4, Linux 075ea208c648cc2bcd616295b711d3637c61de45, Linux 515c2daab46021221bdf406bef19bc90a44ec617, Linux 6.1.191, Linux 5.16. Upgrade Linux to 5.16 or later.
How do I check if I'm affected by CVE-2026-31432?
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.