CVE-2026-31432: ksmbd: fix OOB write in QUERY_INFO for compound requests

Published Apr 22, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix OOB write in QUERYINFO for compound requests

When a compound request such as READ + QUERYINFO(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 smb2getinfosec() checked buffer space using ppntsdsize from xattr, while buildsecdesc() often synthesized a significantly larger descriptor from POSIX ACLs.

This patch introduces smbaclsecdescscratchlen() to accurately compute the final descriptor size beforehand, performs proper buffer checking with smb2calcmaxoutbuflen(), and uses exact-sized allocation + iov pinning.

Affected Software

12 affected components
Linux ksmbd (Linux kernel)
Linux Linux kernel>=5.15.145<5.16
Linux Linux kernel>=6.1.71<6.2
Linux Linux kernel>=6.6<6.12.81
Linux Linux kernel>=6.13<6.18.22
Linux Linux kernel>=6.19<6.19.12
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6

Event History

Apr 22, 2026
CVE Published
via MITRE·08:15 AM
Data Sourced
via MITRE·08:15 AM
DescriptionSeverity
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-31432?

CVE-2026-31432 has been classified with moderate severity due to potential out-of-bounds write vulnerabilities.

2

How do I fix CVE-2026-31432?

To fix CVE-2026-31432, update the Linux kernel to the latest version that addresses the out-of-bounds write issue in ksmbd.

3

Which systems are affected by CVE-2026-31432?

CVE-2026-31432 affects systems running ksmbd in the Linux kernel when handling compound requests.

4

Can CVE-2026-31432 be exploited remotely?

Yes, CVE-2026-31432 could potentially be exploited remotely if an attacker crafts specific compound requests.

5

What should I do if I am vulnerable to CVE-2026-31432?

If vulnerable to CVE-2026-31432, it is important to patch your system as soon as a fix is available from your Linux distribution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203