# CVE-2025-68817: ksmbd: fix use-after-free in ksmbd_tree_connect_put under concurrency

- 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.44%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-01-13T15:29:21.210Z
- Modified: 2026-08-05T12:11:44.783Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

ksmbd: fix use-after-free in ksmbd_tree_connect_put under concurrency

Under high concurrency, A tree-connection object (tcon) is freed on
a disconnect path while another path still holds a reference and later
executes *_put()/write on it.

(As written by CVE List.)

## Affected

- Linux Linux: from dd45db4d9bbc8f122a9b4db5ce94ae29fcf03d3c before 446beed646b2e426dd53d27358365f8678e1dd01; from 7b58ee8d0b91359554cf219cd4f33872ea2afd66 before d092de8a26c952379ded8e6b0bda31d89befac1a; from 33b235a6e6ebe0f05f3586a71e8d281d00f71e2e before d64977495e44855f2b28d8ce56107c963a7a50e4; from 33b235a6e6ebe0f05f3586a71e8d281d00f71e2e before 21a3d01fc6db5129f81edb0ab7cb94fd758bcbea; from 33b235a6e6ebe0f05f3586a71e8d281d00f71e2e before 063cbbc6f595ea36ad146e1b7d2af820894beb21; from 33b235a6e6ebe0f05f3586a71e8d281d00f71e2e before b39a1833cc4a2755b02603eec3a71a85e9dff926; from 5.15.145 before 5.15.199; from 6.1.71 before 6.1.160; 6.6 (not affected: before 6.6; from 5.15.199 up to 5.15.*; from 6.1.160 up to 6.1.*; from 6.6.120 up to 6.6.*; from 6.12.64 up to 6.12.*; from 6.18.3 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 5.15.145 before 5.15.199; from 6.1.71 before 6.1.160; from 6.6.1 before 6.6.120; from 6.7 before 6.12.64; from 6.13 before 6.18.3; 6.6

## 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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/446beed646b2e426dd53d27358365f8678e1dd01> (patch)
- <https://git.kernel.org/stable/c/d092de8a26c952379ded8e6b0bda31d89befac1a> (patch)
- <https://git.kernel.org/stable/c/d64977495e44855f2b28d8ce56107c963a7a50e4> (patch)
- <https://git.kernel.org/stable/c/21a3d01fc6db5129f81edb0ab7cb94fd758bcbea> (patch)
- <https://git.kernel.org/stable/c/063cbbc6f595ea36ad146e1b7d2af820894beb21> (patch)
- <https://git.kernel.org/stable/c/b39a1833cc4a2755b02603eec3a71a85e9dff926> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-68817 · Whole record: https://cve.day/CVE-2025-68817.json · Rebuilt by cve.day 2026-11-25T22:59:10.545Z
