CVE-2026-31612

ksmbd: validate EaNameLength in smb2_get_ea()

7.5 high EPSS 0.44%

Published 24 Apr 2026 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2026-31612

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31612 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.5 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.44%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 40.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 859f11e1bc81a4d32bb3ceeae54bcd296ac675d3
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 4b73376feecb3b61172fe5b4ff42bbbb8531669d
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 551dfb15b182abad4600eaf7b37e6eb7000d5b1b
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 3363a770b193f555f29d76ddf4ced3305c0ccf6d
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 243b206bcb5a7137e8bddd57b2eec81e1ebd3859
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before dfc6878d14acafffbe670bf2576620757a10a3d8
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 66751841212c2cc196577453c37f7774ff363f02
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 6.1.175 up to and including 6.1.*
unaffected from 6.6.136 up to and including 6.6.*
unaffected from 6.12.83 up to and including 6.12.*
unaffected from 6.18.24 up to and including 6.18.*
unaffected from 6.19.14 up to and including 6.19.*
unaffected from 7.0.1 up to and including 7.0.*
unaffected 7.1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31612 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31612

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-31612
trivy image --scanners vuln IMAGE | grep CVE-2026-31612

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-31612 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.