VDB

CVE-2026-31432

CVE-2026-31432 PUBLISHED CVSS 8.8 HIGH

ksmbd: fix OOB write in QUERY_INFO for compound requests

Reported by linux · Published April 22, 2026

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.

EPSS 0.57% · 48.0th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxd48c64fb80ad78b3dd29fb7d79b6ec7bd72bfc09

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.57%
48.0th percentile

Affected products

VendorProductVersions
LinuxLinux9f297df20d93411c0b4ddad7f88ba04a7cd36e77, e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d, e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d
LinuxLinux6.6, 0, 6.1.191
linuxlinux_kernel6.1.71, 6.6, 6.6
LinuxLinux9f297df20d93411c0b4ddad7f88ba04a7cd36e77, *, *

Timeline

  • Apr 21, 2026 CVE Published
  • Apr 22, 2026 PoC Published
  • Apr 23, 2026 Security Advisory (80 in total, the first dated here)
  • Apr 27, 2026 CVE Updated
  • May 18, 2026 EPSS Score (30 in total, the first dated here)
  • Jul 16, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (79 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-31432
vulnetix vdb fixes CVE-2026-31432

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-31432/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›