CVE-2026-31432: Linux ksmbd compound QUERY_INFO security descriptor out-of-bounds write
- Vendor
- Linux
CVE-2026-31432 is an out-of-bounds write vulnerability in the Linux kernel's ksmbd SMB server when processing compound requests containing QUERY_INFO(Security). An earlier operation, such as READ, can consume most of the response buffer. The smb2_get_info_sec() function checks available space using ppntsd_size from an extended attribute, although build_sec_desc() can synthesize a substantially larger security descriptor from POSIX ACLs. This size mismatch allows security descriptor construction to write beyond the allocated response buffer and corrupt adjacent kernel memory. Exploitation is remotely reachable and can be unauthenticated when an accessible guest share is configured.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes kernel-memory corruption and can crash the system, disrupting all services on the affected host. Laboratory testing demonstrated attacker-derived response bytes corrupting adjacent kernel objects, including struct file, and affecting filp_flush and dnotify_flush. Broader confidentiality and integrity compromise is potentially possible, but a completed remote code execution exploit has not been demonstrated in the available information. CVSS v3.1 assigns a High severity score of 8.8, with high confidentiality, integrity, and availability impacts.
Mitigation
If you can’t patch tonight, do this now.
Until a corrected kernel can be deployed, disable ksmbd where it is unnecessary or restrict SMB access to trusted clients using network controls. Disabling guest access removes the unauthenticated exploitation path but does not protect against attackers with valid share access. These measures reduce exposure rather than correct the underlying buffer-sizing flaw.
Remediation
Patch, then assume compromise.
Install the distribution-supported kernel update addressing CVE-2026-31432 and reboot into the corrected kernel. The fix introduces smb_acl_sec_desc_scratch_len() to calculate the final descriptor size before construction, validates available output space with smb2_calc_max_out_buf_len(), and uses exact-sized allocation with iov pinning. Example corrected Ubuntu versions include linux 6.8.0-136.136 for Ubuntu 24.04 LTS and linux-hwe-6.8 6.8.0-136.136~22.04.1 for Ubuntu 22.04 LTS. Other kernel flavors require their corresponding fixed packages; these version thresholds must not be applied across distributions or kernel streams. Prefer supported vendor updates over manually cherry-picking the patch.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-31432 exploited in the wild?
- As of Dec 3, 2026, Mallory has no reports of CVE-2026-31432 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-31432?
- As of Dec 3, 2026, Mallory has found no public exploit for CVE-2026-31432.
- Is there a patch for CVE-2026-31432?
- Install the distribution-supported kernel update addressing CVE-2026-31432 and reboot into the corrected kernel. The fix introduces smb_acl_sec_desc_scratch_len() to calculate the final descriptor size before construction, validates available output space with smb2_calc_max_out_buf_len(), and uses exact-sized allocation with iov pinning.
- What products are affected by CVE-2026-31432?
- Linux Kernel.
- How severe is CVE-2026-31432?
- CVE-2026-31432 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.57% (49th percentile) as of Dec 3, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.