CVE-2026-31432

ksmbd: fix OOB write in QUERY_INFO for compound requests

8.8 high EPSS 0.67%

Published 22 Apr 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-31432

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31432 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

8.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.67%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 47.2% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 9f297df20d93411c0b4ddad7f88ba04a7cd36e77, before 533f84264e28c54a79257ea87d2f94a0fcc9a611
affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before 850452af77f55d185f9445e1f7a1db53c5e4aad4
affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before d48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09
affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before 075ea208c648cc2bcd616295b711d3637c61de45
affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before 515c2daab46021221bdf406bef19bc90a44ec617
affected from e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, before fda9522ed6afaec45cabc198d8492270c394c7bc
affected f2283680a80571ca82d710bc6ecd8f8beac67d63
affected from 6.1.71, before 6.1.191
affected from 5.15.145, before 5.16
Other versions: unaffected
Linux
affected 6.6
unaffected before 6.6
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.143 up to and including 6.6.*
unaffected from 6.12.81 up to and including 6.12.*
unaffected from 6.18.22 up to and including 6.18.*
unaffected from 6.19.12 up to and including 6.19.*
unaffected 7.0 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31432 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31432

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31432
trivy image --scanners vuln IMAGE | grep CVE-2026-31432

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31432 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.