CVE-2026-31612: ksmbd: validate EaNameLength in smb2_get_ea()

Published Apr 24, 2026
·
Updated

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

7 affected componentsFixes available
The Linux Foundation ksmbd (Linux kernel)
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
Microsoft azl3 kernel 6.6.134.1-2

Event History

Apr 24, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityAffected Software
Apr 26, 2026
Data Sourced
via Microsoft·08:06 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:06 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-31612?

CVE-2026-31612 is classified with a moderate severity due to potential information disclosure risks.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203