CVE-2026-31612·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate EaNameLength in smb2_get_ea() smb2_get_ea() reads ea_req->EaNameLength from the client request and passes it directly to strncmp() as the comparison length without verifying that the length of the name really is the size of the input buffer received. Fix this up by properly checking the size of the name based on the value received and the overall size of the request, to prevent a later strncmp() call to use the length as a "trusted" size of the buffer. Without this check, uninitialized heap values might be slowly leaked to the client.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.1
- 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.43% — higher than 36% 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-31612 scores 7.5 on CVSS, so a successful attack would be serious — but at 0.43%, 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: 7.0
Until: 7.0.1
Fixed in: 7.0.1
How to fix this CVE
Update your Linux kernel to version 7.0.1 or later to patch the EaNameLength validation flaw in the ksmbd SMB server component. This vulnerability allows uninitialized heap memory to be leaked to remote clients connecting via SMB protocol. Prioritize kernel updates on systems running ksmbd (particularly NAS devices and file servers) to eliminate this information disclosure risk.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with `uname -r` and compare against 7.0.1—any version 7.0.0 or 7.0 requires patching
- Step 2: Verify ksmbd is loaded with `lsmod | grep ksmbd` and check if SMB shares are exported via `smbstatus` or `netstat -tulpn | grep 445`
- Step 3: Search system logs for SMB connection attempts and EA (Extended Attribute) read operations: `grep -i 'smb2_get_ea\|EaNameLength' /var/log/syslog /var/log/audit/audit.log 2>/dev/null`
- Step 4: After patching, confirm the new kernel is active with `uname -r` and verify it reports 7.0.1 or higher; check dmesg for ksmbd initialization: `dmesg | grep ksmbd`
FAQ
What is CVE-2026-31612?
This is a memory disclosure vulnerability in Linux kernel's ksmbd (SMB server) where the EaNameLength field from client requests is used without validation, allowing uninitialized heap memory to leak to remote SMB clients through Extended Attribute operations.
Is CVE-2026-31612 being actively exploited?
No, this vulnerability is not currently listed on CISA's Known Exploited Vulnerabilities catalog, and no public exploits are available, though the information disclosure risk warrants prompt patching.
What versions of Kernel are affected by CVE-2026-31612?
Linux kernel versions 7.0 and 7.0.1 are affected by this vulnerability; version 7.0.1 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-31612?
Run `uname -r` to check your kernel version—if it shows 7.0 or 7.0.0, you are vulnerable. Additionally, verify ksmbd is active with `lsmod | grep ksmbd`.
Does Defensia detect CVE-2026-31612?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-31612 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859
- https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d
- https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d
- https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b
- https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31612. Free for 1 server.
Get started free