# CVE-2025-37926: ksmbd: fix use-after-free in ksmbd_session_rpc_open

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/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.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2025-05-20T15:21:53.359Z
- Modified: 2026-08-05T11:58:26.156Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

ksmbd: fix use-after-free in ksmbd_session_rpc_open

A UAF issue can occur due to a race condition between
ksmbd_session_rpc_open() and __session_rpc_close().
Add rpc_lock to the session to protect it.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before a4348710a7267705b75692dc1a000920481d1d92; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 1067361a1cc6ad9cdf7acfc47f90012b72ad1502; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8fb3b6c85b7e3127161623586b62abcc366caa20; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6323fec65fe54b365961fed260dd579191e46121; from 0626e6641f6b467447c81dd7678a69c66f7746cf before a1f46c99d9ea411f9bf30025b912d881d36fc709; 5.15 (not affected: before 5.15; from 6.1.162 up to 6.1.*; from 6.6.122 up to 6.6.*; from 6.12.28 up to 6.12.*; from 6.14.6 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.15 before 6.12.28; from 6.13 before 6.14.6; 6.15

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/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/a4348710a7267705b75692dc1a000920481d1d92> (patch)
- <https://git.kernel.org/stable/c/1067361a1cc6ad9cdf7acfc47f90012b72ad1502> (patch)
- <https://git.kernel.org/stable/c/8fb3b6c85b7e3127161623586b62abcc366caa20> (patch)
- <https://git.kernel.org/stable/c/6323fec65fe54b365961fed260dd579191e46121> (patch)
- <https://git.kernel.org/stable/c/a1f46c99d9ea411f9bf30025b912d881d36fc709> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-37926 · Whole record: https://cve.day/CVE-2025-37926.json · Rebuilt by cve.day 2026-11-25T22:58:58.290Z
