# CVE-2026-31432: ksmbd: fix OOB write in QUERY\_INFO for compound requests

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-04-22T08:15:10.873Z
- **Modified:** 2026-11-11T23:10:00.263Z

## 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

## 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

- 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)

## Mitigation

- Upgrade Linux to 5.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09>
- patch: <https://git.kernel.org/stable/c/075ea208c648cc2bcd616295b711d3637c61de45>
- patch: <https://git.kernel.org/stable/c/515c2daab46021221bdf406bef19bc90a44ec617>
- patch: <https://git.kernel.org/stable/c/fda9522ed6afaec45cabc198d8492270c394c7bc>
- other: <https://git.kernel.org/stable/c/533f84264e28c54a79257ea87d2f94a0fcc9a611>
- other: <https://git.kernel.org/stable/c/850452af77f55d185f9445e1f7a1db53c5e4aad4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31432>

HTML: <https://flawdb.com/CVE-2026-31432> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31432>
