# ksmbd: fix use-after-free in \_\_ksmbd_close_fd() via durable scavenger

CVE record · `CVE-2026-31718`

- **Identifiers:** `CVE-2026-31718`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 1 May 2026
- **Updated:** 5 Aug 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.

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `8df4bcdb0a4232192b2445256c39b787d58ef14d to before 0000a7780e0e446a28a273572f6ea8f7f582f694` (git)
  - affected: `c8efcc786146a951091588e5fa7e3c754850cb3c to before e33c65f011980b4ad4abfd93585ec2079856368f` (git)
  - affected: `c8efcc786146a951091588e5fa7e3c754850cb3c to before 3d6682726c2d3a46d31dae88b8166786b09b03ad` (git)
  - affected: `c8efcc786146a951091588e5fa7e3c754850cb3c to before b34fc42cfe922e551f7a27d3ac3bb016e41d7dd9` (git)
  - affected: `c8efcc786146a951091588e5fa7e3c754850cb3c to before 235e32320a470fcd3998fb3774f2290a0eb302a1` (git)
  - affected: `6.6.32 to before 6.6.140` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.9`
  - unaffected: `before 6.9` (semver)
  - unaffected: `6.6.140 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

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

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

- **CISA KEV:** Not listed.
- **EPSS:** 0.0036, the 29th 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-31718)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/0000a7780e0e446a28a273572f6ea8f7f582f694>
- <https://git.kernel.org/stable/c/e33c65f011980b4ad4abfd93585ec2079856368f>
- <https://git.kernel.org/stable/c/3d6682726c2d3a46d31dae88b8166786b09b03ad>
- <https://git.kernel.org/stable/c/b34fc42cfe922e551f7a27d3ac3bb016e41d7dd9>
- <https://git.kernel.org/stable/c/235e32320a470fcd3998fb3774f2290a0eb302a1>

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

---

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