CVE-2026-31612: ksmbd: validate EaNameLength in smb2_get_ea()
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: validate EaNameLength in smb2getea()
smb2getea() reads eareq->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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31612?
CVE-2026-31612 is classified with a moderate severity due to potential information disclosure risks.
How do I fix CVE-2026-31612?
To fix CVE-2026-31612, update your ksmbd component in the Linux kernel to the latest patched version.
What versions of Linux kernel are affected by CVE-2026-31612?
CVE-2026-31612 affects various versions of the Linux kernel, specifically between 5.15 to 6.6.136, 6.7 to 6.12.83, 6.13 to 6.18.24, 6.19 to 7.0.1.
What specific component is impacted by CVE-2026-31612?
CVE-2026-31612 specifically impacts the ksmbd component in the Linux kernel regarding the smb2_get_ea() function.
Is exploiting CVE-2026-31612 straightforward for an attacker?
Exploitation of CVE-2026-31612 may require specific conditions and knowledge of how the ksmbd service handles requests.