# CVE-2025-38561: ksmbd: fix Preauh_HashValue race condition

- 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.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2025-08-19T17:02:38.719Z
- Modified: 2026-08-05T12:02:55.275Z
- Weaknesses: CWE-362
- 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 Preauh_HashValue race condition

If client send multiple session setup requests to ksmbd,
Preauh_HashValue race condition could happen.
There is no need to free sess->Preauh_HashValue at session setup phase.
It can be freed together with session at connection termination phase.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before fbf5c0845ed15122a770bca9be1d9b60b470d3aa; from 0626e6641f6b467447c81dd7678a69c66f7746cf before b69fd87076daa66f3d186bd421a7b0ee0cb45829; from 0626e6641f6b467447c81dd7678a69c66f7746cf before edeecc7871e8fc0878d53ce286c75040a0e38f6c; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6613887da1d18dd2ecfd6c6148a873c4d903ebdc; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6; 5.15 (not affected: before 5.15; from 6.1.148 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.15 before 6.1.148; from 6.2 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1
- debian debian_linux: 11.0

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

## References

- <https://git.kernel.org/stable/c/fbf5c0845ed15122a770bca9be1d9b60b470d3aa> (patch)
- <https://git.kernel.org/stable/c/b69fd87076daa66f3d186bd421a7b0ee0cb45829> (patch)
- <https://git.kernel.org/stable/c/edeecc7871e8fc0878d53ce286c75040a0e38f6c> (patch)
- <https://git.kernel.org/stable/c/7d7c0c5304c88bcbd7a85e9bcd61d27e998ba5fc> (patch)
- <https://git.kernel.org/stable/c/6613887da1d18dd2ecfd6c6148a873c4d903ebdc> (patch)
- <https://git.kernel.org/stable/c/44a3059c4c8cc635a1fb2afd692d0730ca1ba4b6> (patch)
- <https://www.zerodayinitiative.com/advisories/ZDI-25-916/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)

## Sources

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

---

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