# CVE-2025-37924: ksmbd: fix use-after-free in kerberos authentication

- 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): 24.5%, higher than 97% of CVEs (2026-12-01)
- Published: 2025-05-20T15:21:52.681Z
- Modified: 2026-10-15T22:18:21.743Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

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

ksmbd: fix use-after-free in kerberos authentication

Setting sess->user = NULL was introduced to fix the dangling pointer
created by ksmbd_free_user. However, it is possible another thread could
be operating on the session and make use of sess->user after it has been
passed to ksmbd_free_user but before sess->user is set to NULL.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before e34a33d5d7e87399af0a138bb32f6a3e95dd83d2; from 0626e6641f6b467447c81dd7678a69c66f7746cf before b447463562238428503cfba1c913261047772f90; from 0626e6641f6b467447c81dd7678a69c66f7746cf before e18c616718018dfc440e4a2d2b94e28fe91b1861; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 28c756738af44a404a91b77830d017bb0c525890; from 0626e6641f6b467447c81dd7678a69c66f7746cf before e86e9134e1d1c90a960dd57f59ce574d27b9a124; 5.15 (not affected: before 5.15; from 6.1.138 up to 6.1.*; from 6.6.90 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.1.138; from 6.2 before 6.6.90; from 6.7 before 6.12.28; from 6.13 before 6.14.6; 6.15
- 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`
- 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/e34a33d5d7e87399af0a138bb32f6a3e95dd83d2> (patch)
- <https://git.kernel.org/stable/c/b447463562238428503cfba1c913261047772f90> (patch)
- <https://git.kernel.org/stable/c/e18c616718018dfc440e4a2d2b94e28fe91b1861> (patch)
- <https://git.kernel.org/stable/c/28c756738af44a404a91b77830d017bb0c525890> (patch)
- <https://git.kernel.org/stable/c/e86e9134e1d1c90a960dd57f59ce574d27b9a124> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html> (mailing-list, third-party-advisory)

## Sources

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

---

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