CVE-2026-31612
Last modified
CVE-2026-31612 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 0.41% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.15, < 6.6.136 |
| Linux | Linux Kernel | >= 6.7, < 6.12.83 |
| Linux | Linux Kernel | >= 6.13, < 6.18.24 |
| Linux | Linux Kernel | >= 6.19, < 6.19.14 |
| Linux | Linux Kernel | >= 7.0, < 7.0.1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-31612?
How severe is CVE-2026-31612?
How do I fix CVE-2026-31612?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31606In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31607In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-31608In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-31609In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-31610In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31611In the Linux kernel, the following vulnerability has been re…8.6
- CVE-2026-31613In the Linux kernel, the following vulnerability has been re…8.1
- CVE-2026-31614In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-31615In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31616In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31617In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31618In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2026-31612?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
