CVE-2026-31478·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len() After this commit (e2b76ab8b5c9 "ksmbd: add support for read compound"), response buffer management was changed to use dynamic iov array. In the new design, smb2_calc_max_out_buf_len() expects the second argument (hdr2_len) to be the offset of ->Buffer field in the response structure, not a hardcoded magic number. Fix the remaining call sites to use the correct offsetof() value.
- Severity
- critical
- Software
- Kernel
- Fixed in
- 6.19.11
- 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.50% — higher than 43% 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-31478 scores 9.8 on CVSS, so a successful attack would be serious — but at 0.50%, 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: 6.19
Until: 6.19.11
Fixed in: 6.19.11
How to fix this CVE
Update your Linux kernel to version 6.19.11 or later to address a critical buffer management vulnerability in ksmbd's SMB2 response handling. This vulnerability affects kernel versions 6.19 through 6.19.10 and could allow remote attackers to corrupt memory or execute arbitrary code. Apply the kernel update immediately and reboot your system to activate the patched version.
sudo dnf update kernel kernel-devel kernel-headersDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version using 'uname -r' and compare against 6.19.11 or later
- Step 2: Verify ksmbd is enabled on your system by checking 'cat /proc/config.gz | gunzip | grep CONFIG_SMB_SERVER' for 'CONFIG_SMB_SERVER=y' or 'm'
- Step 3: Review kernel logs for SMB2 response handling errors using 'sudo journalctl -u kernel | grep -i smb2' or 'dmesg | grep -i ksmbd'
- Step 4: After applying the update, confirm the new kernel is running with 'uname -r' and verify it matches 6.19.11 or a newer stable release
FAQ
What is CVE-2026-31478?
This is a critical vulnerability in the Linux kernel's ksmbd SMB server implementation where incorrect buffer offset calculations in response handling could allow memory corruption and potentially remote code execution on systems with SMB2 server functionality enabled.
Is CVE-2026-31478 being actively exploited?
No, there is currently no evidence of active exploitation or publicly available exploit code for this vulnerability, though the critical CVSS score of 9.8 warrants immediate patching.
What versions of Kernel are affected by CVE-2026-31478?
Linux kernel versions 6.19 through 6.19.10 are vulnerable; the fix is available in kernel 6.19.11 and later stable releases.
How do I check if my server is vulnerable to CVE-2026-31478?
Run 'uname -r' to get your kernel version; if it shows 6.19.0 through 6.19.10, your system is vulnerable. Additionally, confirm SMB server support is active with 'cat /proc/config.gz | gunzip | grep CONFIG_SMB_SERVER'.
Does Defensia detect CVE-2026-31478?
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-31478 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0e55f63dd08f09651d39e1b709a91705a8a0ddcb
- https://git.kernel.org/stable/c/4cb537ae4f37d7d0f617815ed4bed7173fb50861
- https://git.kernel.org/stable/c/6aef1765d6807e0f027cd87f6ac973eb0879a46d
- https://git.kernel.org/stable/c/70b4c414889492c522b6e4331562360f49be2361
- https://git.kernel.org/stable/c/80824c7e527b70cf9039534e60aff592e8f209d1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31478. Free for 1 server.
Get started free