# CVE-2025-37776: ksmbd: fix use-after-free in smb_break_all_levII_oplock()

- 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.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2025-05-01T13:07:14.998Z
- Modified: 2026-08-05T11:57:27.462Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

ksmbd: fix use-after-free in smb_break_all_levII_oplock()

There is a room in smb_break_all_levII_oplock that can cause racy issues
when unlocking in the middle of the loop. This patch use read lock
to protect whole loop.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before 296cb5457cc6f4a754c4ae29855f8a253d52bcc6; from 0626e6641f6b467447c81dd7678a69c66f7746cf before d54ab1520d43e95f9b2e22d7a05fc9614192e5a5; from 0626e6641f6b467447c81dd7678a69c66f7746cf before d73686367ad68534257cd88a36ca3c52cb8b81d8; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 18b4fac5ef17f77fed9417d22210ceafd6525fc7; 5.15 (not affected: before 5.15; from 6.6.88 up to 6.6.*; from 6.12.25 up to 6.12.*; from 6.14.4 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 5.15 before 6.6.88; from 6.7 before 6.12.25; from 6.13 before 6.14.4; 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.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/296cb5457cc6f4a754c4ae29855f8a253d52bcc6> (patch)
- <https://git.kernel.org/stable/c/d54ab1520d43e95f9b2e22d7a05fc9614192e5a5> (patch)
- <https://git.kernel.org/stable/c/d73686367ad68534257cd88a36ca3c52cb8b81d8> (patch)
- <https://git.kernel.org/stable/c/18b4fac5ef17f77fed9417d22210ceafd6525fc7> (patch)

## Sources

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

---

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