# ksmbd: validate response sizes in ipc_validate_msg()

CVE record · `CVE-2026-31707`

- **Identifiers:** `CVE-2026-31707`
- **State:** Confirmed
- **Severity:** CVSS 7.1 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 1 May 2026
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 1 May 2026, 13:56 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before 52518503a1a00bc33e9522c4eb05df023e3ae978` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before bf396208418371174869baba9434535cd3288e80` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before 7dd0c858e1909769a4c91842724315ee74f1a5f1` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before 299db777ea0cfa5c407e41b045c24a14c034c27b` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before 99c631d0366c1eab8fb188fe66425f4581ebdde4` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before d6a6aa81eac2c9bff66dc6e191179cb69a14426b` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.15`
  - unaffected: `before 5.15` (semver)
  - unaffected: `6.1.191 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.141 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.84 to 6.12.*, inclusive` (semver)
  - unaffected: `6.18.25 to 6.18.*, inclusive` (semver)
  - unaffected: `7.0.2 to 7.0.*, inclusive` (semver)
  - unaffected: `7.1 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The ksmbd SMB server in the Linux kernel, affected from 5.15 until fixed, can overflow size calculations when validating responses from its userspace daemon, so an unverified length may be used in memory copies. The source gives few details on how an attacker would supply such a response. Upgrade to 6.1.191, 6.6.141, 6.12.84, 6.18.25 or a later release in those stable series.

Written 12 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.1 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0013, the 2nd percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 1 May 2026, 14:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-31707)

## Sources

- [CVE List: CVE-2026-31707](https://www.cve.org/CVERecord?id=CVE-2026-31707)
- [NVD: CVE-2026-31707](https://nvd.nist.gov/vuln/detail/CVE-2026-31707)

### References from the CNA

- <https://git.kernel.org/stable/c/52518503a1a00bc33e9522c4eb05df023e3ae978>
- <https://git.kernel.org/stable/c/bf396208418371174869baba9434535cd3288e80>
- <https://git.kernel.org/stable/c/7dd0c858e1909769a4c91842724315ee74f1a5f1>
- <https://git.kernel.org/stable/c/299db777ea0cfa5c407e41b045c24a14c034c27b>
- <https://git.kernel.org/stable/c/99c631d0366c1eab8fb188fe66425f4581ebdde4>
- <https://git.kernel.org/stable/c/d6a6aa81eac2c9bff66dc6e191179cb69a14426b>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2026-31707>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2026-31707/>. Everything for agents: <https://agentprime.io/llms.txt>.
