CVE-2026-31612 json
ksmbd: validate EaNameLength in smb2_get_ea()
published 2026-04-24 6 mo ago modified 2026-10-15 25 d ago also EUVD-2026-25505
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 37%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 6.1.175, 6.6.136, 6.12.83, 6.18.24, 6.19.14, 7.0.1, 7.1
- linux Debian 12 6.1.176-1
- linux Debian 13 6.12.85-1
- linux Debian 14 6.19.14-1
debian advisories DEBIAN-CVE-2026-31612
- linux Ubuntu 24.04 LTS 6.8.0-136.136
- linux Ubuntu 26.04 LTS 7.0.0-27.27
- linux-aws Ubuntu 24.04 LTS 6.8.0-1061.64
- linux-aws Ubuntu 26.04 LTS 7.0.0-1008.8
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1064.72
- linux-gcp Ubuntu 26.04 LTS 7.0.0-1007.7
- linux-gke Ubuntu 24.04 LTS 6.8.0-1059.67
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1061.62
ubuntu advisories UBUNTU-CVE-2026-31612
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source openSUSE Tumbleweed 7.0.3-1.1
opensuse advisories openSUSE-SU-2026:10703-1
- git.kernel.org/stable/c/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3 commit
- git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d commit
- git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b commit
- git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d commit
- git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859 commit
- git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8 commit
- git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-31612 updated
kernel: ksmbd: validate EaNameLength in smb2_get_ea()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-295-16 updated cvss 7.5
Siemens SIMATIC S7-1500 TM MFP
-
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystemaffected: mitigation, no fix available
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
Exploit prediction
0.43% chance of exploitation in the next 30 days, higher than 37% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected products
- Linux Linux
- Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Classification
- Technology feeds
References
- git.kernel.org /stable/c/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3
-
git.kernel.org
/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d
patch
-
git.kernel.org
/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b
patch
-
git.kernel.org
/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d
patch
-
git.kernel.org
/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859
patch
-
git.kernel.org
/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8
patch
-
git.kernel.org
/stable/c/66751841212c2cc196577453c37f7774ff363f02
patch
- cert-portal.siemens.com /productcert/html/ssa-784472.html
Sources
- CVE List CVE-2026-31612
- NVD CVE-2026-31612
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.