# CVE-2026-31612: ksmbd: validate EaNameLength in smb2\_get\_ea()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.60% (percentile 43, 2026-11-28)
- **Published:** 2026-04-24T14:42:32.760Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 859f11e1bc81a4d32bb3ceeae54bcd296ac675d3; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 4b73376feecb3b61172fe5b4ff42bbbb8531669d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 551dfb15b182abad4600eaf7b37e6eb7000d5b1b; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3363a770b193f555f29d76ddf4ced3305c0ccf6d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 243b206bcb5a7137e8bddd57b2eec81e1ebd3859; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< dfc6878d14acafffbe670bf2576620757a10a3d8; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 66751841212c2cc196577453c37f7774ff363f02
- Anyone running Linux 5.15

## 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.

## Affected and fixed versions

- Linux: \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 859f11e1bc81a4d32bb3ceeae54bcd296ac675d3; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 4b73376feecb3b61172fe5b4ff42bbbb8531669d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 551dfb15b182abad4600eaf7b37e6eb7000d5b1b; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3363a770b193f555f29d76ddf4ced3305c0ccf6d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 243b206bcb5a7137e8bddd57b2eec81e1ebd3859; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< dfc6878d14acafffbe670bf2576620757a10a3d8; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 66751841212c2cc196577453c37f7774ff363f02 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 66751841212c2cc196577453c37f7774ff363f02 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31612. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31612.md
Affected: Linux >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 859f11e1bc81a4d32bb3ceeae54bcd296ac675d3; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 4b73376feecb3b61172fe5b4ff42bbbb8531669d; >= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, < 551dfb15b182abad4600eaf7b37e6eb7000d5b1b; >= e2f34481b24db2fd634b5ed…
Fixed in: Linux 859f11e1bc81a4d32bb3ceeae54bcd296ac675d3, Linux 4b73376feecb3b61172fe5b4ff42bbbb8531669d, Linux 551dfb15b182abad4600eaf7b37e6eb7000d5b1b, Linux 3363a770b193f555f29d76ddf4ced3305c0ccf6d, Linux 243b206bcb5a7137e8bddd57b2eec81e1ebd3859, Linux 66751841212c2cc196577453c37f7774ff363f02

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31612 being exploited?

There is no confirmed exploitation: CVE-2026-31612 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-31612?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-31612?

Linux \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 859f11e1bc81a4d32bb3ceeae54bcd296ac675d3; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 4b73376feecb3b61172fe5b4ff42bbbb8531669d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 551dfb15b182abad4600eaf7b37e6eb7000d5b1b; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 3363a770b193f555f29d76ddf4ced3305c0ccf6d; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 243b206bcb5a7137e8bddd57b2eec81e1ebd3859; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< dfc6878d14acafffbe670bf2576620757a10a3d8; \>= e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, \< 66751841212c2cc196577453c37f7774ff363f02; Linux 5.15.

### Is there a fix for CVE-2026-31612?

Yes. Fixed in Linux 859f11e1bc81a4d32bb3ceeae54bcd296ac675d3, Linux 4b73376feecb3b61172fe5b4ff42bbbb8531669d, Linux 551dfb15b182abad4600eaf7b37e6eb7000d5b1b, Linux 3363a770b193f555f29d76ddf4ced3305c0ccf6d, Linux 243b206bcb5a7137e8bddd57b2eec81e1ebd3859, Linux 66751841212c2cc196577453c37f7774ff363f02. Upgrade Linux to 66751841212c2cc196577453c37f7774ff363f02 or later.

### How do I check if I'm affected by CVE-2026-31612?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4b73376feecb3b61172fe5b4ff42bbbb8531669d>
- patch: <https://git.kernel.org/stable/c/551dfb15b182abad4600eaf7b37e6eb7000d5b1b>
- patch: <https://git.kernel.org/stable/c/3363a770b193f555f29d76ddf4ced3305c0ccf6d>
- patch: <https://git.kernel.org/stable/c/243b206bcb5a7137e8bddd57b2eec81e1ebd3859>
- patch: <https://git.kernel.org/stable/c/dfc6878d14acafffbe670bf2576620757a10a3d8>
- patch: <https://git.kernel.org/stable/c/66751841212c2cc196577453c37f7774ff363f02>
- other: <https://git.kernel.org/stable/c/859f11e1bc81a4d32bb3ceeae54bcd296ac675d3>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31612>

HTML: <https://flawdb.com/CVE-2026-31612> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31612>
