# CVE-2025-21955: ksmbd: prevent connection release during oplock break notification

- 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.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2025-04-01T15:46:55.724Z
- Modified: 2026-10-30T13:17:54.560Z
- Assigned by: Linux

## Description

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

ksmbd: prevent connection release during oplock break notification

ksmbd_work could be freed when after connection release.
Increment r_count of ksmbd_conn to indicate that requests
are not finished yet and to not release the connection.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8e6508c7ecb1802909f294827eff38f301d0c937; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 09aeab68033161cb54f194da93e51a11aee6144b; from 0626e6641f6b467447c81dd7678a69c66f7746cf before a4261bbc33fbf99b99c80aa3a2c5097611802980; from 0626e6641f6b467447c81dd7678a69c66f7746cf before f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3aa660c059240e0c795217182cf7df32909dd917; 5.15 (not affected: before 5.15; from 6.1.191 up to 6.1.*; from 6.6.84 up to 6.6.*; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.15 before 6.6.84; from 6.7 before 6.12.20; from 6.13 before 6.13.8; 6.14

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

## References

- <https://git.kernel.org/stable/c/8e6508c7ecb1802909f294827eff38f301d0c937>
- <https://git.kernel.org/stable/c/09aeab68033161cb54f194da93e51a11aee6144b> (patch)
- <https://git.kernel.org/stable/c/a4261bbc33fbf99b99c80aa3a2c5097611802980> (patch)
- <https://git.kernel.org/stable/c/f17d1c63a76b0fe8e9c78023a86507a3a6d62cfa> (patch)
- <https://git.kernel.org/stable/c/3aa660c059240e0c795217182cf7df32909dd917> (patch)

## Sources

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

---

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