# CVE-2024-58087: ksmbd: fix racy issue from session lookup and expire

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2025-03-12T07:28:09.114Z
- Modified: 2026-08-05T11:47:38.424Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix racy issue from session lookup and expire

Increment the session reference count within the lock for lookup to avoid
racy issue with session expire.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 2107ab40629aeabbec369cf34b8cf0f288c3eb1b; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 37a0e2b362b3150317fb6e2139de67b1e29ae5ff; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 450a844c045ff0895d41b05a1cbe8febd1acfcfd; from 0626e6641f6b467447c81dd7678a69c66f7746cf before a39e31e22a535d47b14656a7d6a893c7f6cf758c; from 0626e6641f6b467447c81dd7678a69c66f7746cf before b95629435b84b9ecc0c765995204a4d8a913ed52; 5.15 (not affected: before 5.15; from 5.15.176 up to 5.15.*; from 6.1.121 up to 6.1.*; from 6.6.67 up to 6.6.*; from 6.12.6 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.15.145 before 5.15.176; from 6.1.29 before 6.1.121; from 6.2.16 before 6.3; from 6.3.2 before 6.4; from 6.7 before 6.12.6; 6.13

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/2107ab40629aeabbec369cf34b8cf0f288c3eb1b> (patch)
- <https://git.kernel.org/stable/c/37a0e2b362b3150317fb6e2139de67b1e29ae5ff> (patch)
- <https://git.kernel.org/stable/c/450a844c045ff0895d41b05a1cbe8febd1acfcfd> (patch)
- <https://git.kernel.org/stable/c/a39e31e22a535d47b14656a7d6a893c7f6cf758c> (patch)
- <https://git.kernel.org/stable/c/b95629435b84b9ecc0c765995204a4d8a913ed52> (patch)
- <https://www.zerodayinitiative.com/advisories/ZDI-25-100/> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2024-58087](https://www.cve.org/CVERecord?id=CVE-2024-58087), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-58087](https://nvd.nist.gov/vuln/detail/CVE-2024-58087), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-58087 · Whole record: https://cve.day/CVE-2024-58087.json · Rebuilt by cve.day 2026-11-25T22:58:52.273Z
