# ksmbd: fix racy issue from session lookup and expire

CVE record · `CVE-2024-58087`

- **Identifiers:** `CVE-2024-58087`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **CNA:** Linux
- **Weakness (CWE):** [CWE-667](https://cwe.mitre.org/data/definitions/667.html)
- **Tags:** [CWE-667](https://agentprime.io/advisories/tag/cwe-667.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 12 Mar 2025
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 12 Mar 2025, 07:28 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: `0626e6641f6b467447c81dd7678a69c66f7746cf to before 2107ab40629aeabbec369cf34b8cf0f288c3eb1b` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before 37a0e2b362b3150317fb6e2139de67b1e29ae5ff` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before 450a844c045ff0895d41b05a1cbe8febd1acfcfd` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before a39e31e22a535d47b14656a7d6a893c7f6cf758c` (git)
  - affected: `0626e6641f6b467447c81dd7678a69c66f7746cf to before b95629435b84b9ecc0c765995204a4d8a913ed52` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.15`
  - unaffected: `before 5.15` (semver)
  - unaffected: `5.15.176 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.121 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.67 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.6 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13 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) (used for this record)
- 8.1 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0051, the 43rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 12 Mar 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/2107ab40629aeabbec369cf34b8cf0f288c3eb1b>
- <https://git.kernel.org/stable/c/37a0e2b362b3150317fb6e2139de67b1e29ae5ff>
- <https://git.kernel.org/stable/c/450a844c045ff0895d41b05a1cbe8febd1acfcfd>
- <https://git.kernel.org/stable/c/a39e31e22a535d47b14656a7d6a893c7f6cf758c>
- <https://git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52>
- <https://www.zerodayinitiative.com/advisories/ZDI-25-100/>

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

---

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