CVE-2026-31709·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: validate the whole DACL before rewriting it in cifsacl build_sec_desc() and id_mode_to_cifs_acl() derive a DACL pointer from a server-supplied dacloffset and then use the incoming ACL to rebuild the chmod/chown security descriptor. The original fix only checked that the struct smb_acl header fits before reading dacl_ptr->size or dacl_ptr->num_aces. That avoids the immediate header-field OOB read, but the rewrite helpers still walk ACEs based on pdacl->num_aces with no structural validation of the incoming DACL body. A malicious server can return a truncated DACL that still contains a header, claims one or more ACEs, and then drive replace_sids_and_copy_aces() or set_chmod_dacl() past the validated extent while they compare or copy attacker-controlled ACEs. Factor the DACL structural checks into validate_dacl(), extend them to validate each ACE against the DACL bounds, and use the shared validator before the chmod/chown rebuild paths. parse_dacl() reuses the same validator so the read-side parser and write-side rewrite paths agree on what constitutes a well-formed incoming DACL.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.2
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.35% — higher than 28% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31709 scores 8.8 on CVSS, so a successful attack would be serious — but at 0.35%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 5.12
Until: 7.0.2
Fixed in: 7.0.2
How to fix this CVE
Update your Linux kernel to version 7.0.2 or later to patch a critical DACL validation flaw in SMB client code. This vulnerability allows malicious SMB servers to bypass security descriptor checks by sending truncated but structurally valid DACL headers. Apply the kernel update immediately through your distribution's package manager and reboot to activate the patched kernel.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r
- Step 2: Verify if kernel versions 5.12 through 7.0.1 are running (vulnerable range) by comparing output against the affected versions list
- Step 3: Search for DACL-related errors or SMB connection failures in kernel logs with: sudo dmesg | grep -i 'dacl\|smb.*acl' or journalctl -u kernel | grep -i 'dacl'
- Step 4: After patching, confirm the new kernel version with: uname -r and verify it is 7.0.2 or higher, then check dmesg for any ACL validation messages
FAQ
What is CVE-2026-31709?
This vulnerability affects Linux kernel SMB client code where insufficient validation of DACL (Discretionary Access Control List) structures allows a malicious SMB server to trigger out-of-bounds memory access by providing truncated but technically valid ACL headers. The kernel fails to validate individual ACE (Access Control Entry) structures against actual DACL bounds before processing chmod/chown operations.
Is CVE-2026-31709 being actively exploited?
No, CVE-2026-31709 is not currently listed on the CISA KEV catalog and no public exploits are known. However, the high CVSS score (8.8) and the nature of the vulnerability make prompt patching essential for systems connecting to untrusted SMB servers.
What versions of Kernel are affected by CVE-2026-31709?
Linux kernel versions 5.12 through 7.0.1 are vulnerable. Version 7.0.2 and later contain the necessary DACL validation fixes.
How do I check if my server is vulnerable to CVE-2026-31709?
Run: uname -r If the output shows a kernel version between 5.12 and 7.0.1 inclusive, your system is vulnerable. Compare your version number against the affected range to confirm exposure.
Does Defensia detect CVE-2026-31709?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31709 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0a8cf165566ba55a39fd0f4de172119dd646d39a
- https://git.kernel.org/stable/c/8e47d297e7cf9a6029a0d38e7b22faba7d7aaf12
- https://git.kernel.org/stable/c/b78db9bddc84136f6a0bb49e8883cf200dfb87a8
- https://git.kernel.org/stable/c/b8603d9ae6c9087662b098619996bc4a8064319d
- https://git.kernel.org/stable/c/c2abdebf72000a64603ced84d36ccbd164f11391
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31709. Free for 1 server.
Get started free