# ksmbd: validate num_aces and harden ACE walk in smb_inherit_dacl()

CVE record · `CVE-2026-31706`

- **Identifiers:** `CVE-2026-31706`
- **State:** Confirmed
- **Severity:** CVSS 8.8 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: `e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 4d37830c2c834987de329d58fb9a319067400361` (git)
  - affected: `e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before ad7d18df7423c522ed9dc7e33bd5d54c66b1bc37` (git)
  - affected: `e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 063a7409b0de46d7c770b65bb0338e6fdb3b1f0a` (git)
  - affected: `e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 3e5360b422dd741cb315654a191fa73869a37414` (git)
  - affected: `e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 59c32abaaec9cdd6164811c7e864e72f7554b82d` (git)
  - affected: `e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to before 3e4e2ea2a781018ed5d75f969e3e5606beb66e48` (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.160 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 Linux kernel ksmbd server is affected from 5.15 until fixed in 6.1.191, 6.6.160, 6.12.84 and 6.18.25 or later stable releases. An authenticated client can trigger an oversized, uninitialized heap allocation when a parent directory's stored security descriptor has been tampered with. Upgrade to a fixed kernel for your release series; the source gives few details on the full impact.

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

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

- **CISA KEV:** Not listed.
- **EPSS:** 0.0049, the 43rd 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-31706)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/4d37830c2c834987de329d58fb9a319067400361>
- <https://git.kernel.org/stable/c/ad7d18df7423c522ed9dc7e33bd5d54c66b1bc37>
- <https://git.kernel.org/stable/c/063a7409b0de46d7c770b65bb0338e6fdb3b1f0a>
- <https://git.kernel.org/stable/c/3e5360b422dd741cb315654a191fa73869a37414>
- <https://git.kernel.org/stable/c/59c32abaaec9cdd6164811c7e864e72f7554b82d>
- <https://git.kernel.org/stable/c/3e4e2ea2a781018ed5d75f969e3e5606beb66e48>

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-31706>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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