# CVE-2025-37778: ksmbd: Fix dangling pointer in krb_authenticate

- 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.83%, higher than 55% of CVEs (2026-11-30)
- Published: 2025-05-01T13:07:16.472Z
- Modified: 2026-10-15T22:18:17.730Z
- 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 dangling pointer in krb_authenticate

krb_authenticate frees sess->user and does not set the pointer
to NULL. It calls ksmbd_krb5_authenticate to reinitialise
sess->user but that function may return without doing so. If
that happens then smb2_sess_setup, which calls krb_authenticate,
will be accessing free'd memory when it later uses sess->user.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before b61f04d5d73c53d183019bafe22fb700a739bac5; from 0626e6641f6b467447c81dd7678a69c66f7746cf before d5b554bc8d554ed6ddf443d3db2fad9f665cec10; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 1db2451de23e98bc864c6a6e52aa0d82c91cb325; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6e30c0e10210c714f3d4453dc258d4abcc70364e; from 0626e6641f6b467447c81dd7678a69c66f7746cf before e83e39a5f6a01a81411a4558a59a10f87aa88dd6; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 1e440d5b25b7efccb3defe542a73c51005799a5f; 5.15 (not affected: before 5.15; from 5.15.203 up to 5.15.*; from 6.1.135 up to 6.1.*; 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.1.135; from 6.2 before 6.6.88; from 6.7 before 6.12.25; from 6.13 before 6.14.4; 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/b61f04d5d73c53d183019bafe22fb700a739bac5>
- <https://git.kernel.org/stable/c/d5b554bc8d554ed6ddf443d3db2fad9f665cec10> (patch)
- <https://git.kernel.org/stable/c/1db2451de23e98bc864c6a6e52aa0d82c91cb325> (patch)
- <https://git.kernel.org/stable/c/6e30c0e10210c714f3d4453dc258d4abcc70364e> (patch)
- <https://git.kernel.org/stable/c/e83e39a5f6a01a81411a4558a59a10f87aa88dd6> (patch)
- <https://git.kernel.org/stable/c/1e440d5b25b7efccb3defe542a73c51005799a5f> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list, third-party-advisory)

## Sources

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

---

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