CVE-2026-31432

ksmbd: fix OOB write in QUERY_INFO for compound requests

HIGH
8.8
CVSS Score
Published: April 22, 2026 at 08:15 AM UTC
Updated: August 5, 2026 at 12:45 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.5%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.15.145v ≥ 6.1.715.15.145 ≤ v < 5.166.1.71 ≤ v < 6.26.13 ≤ v < 6.18.226.19 ≤ v < 6.19.126.6 ≤ v < 6.12.816.6 ≤ v < 6.18.226.6 ≤ v < 6.19.126.6 ≤ v < 6.6.1436.6 ≤ v < 7.05.15.1456.1.717.0 rc17.0 rc27.0 rc37.0 rc47.0 rc57.0 rc69f297df20d93411c0b4ddad7f88ba04a7cd36e77e2b76ab8b5c9327ab2dae6da05d0752eb2f4771df2283680a80571ca82d710bc6ecd8f8beac67d63
Vendor states this is fixed in 075ea208c648cc2bcd616295b711d3637c61de45 (fixed)
Vendor states this is fixed in 515c2daab46021221bdf406bef19bc90a44ec617 (fixed)
Vendor states this is fixed in 850452af77f55d185f9445e1f7a1db53c5e4aad4 (fixed)
Vendor states this is fixed in d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09 (fixed)
Vendor states this is fixed in fda9522ed6afaec45cabc198d8492270c394c7bc (fixed)
Affected range stops below 5.16, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.12.81 (unaffected)
Vendor states this is fixed in 6.18.22 (unaffected)
Vendor states this is fixed in 6.19.12 (unaffected)
Affected range stops below 6.2, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.6 (unaffected)
Vendor states this is fixed in 6.6.143 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

8.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card