9.8critical
ksmbd: Fix dangling pointer in krb_authenticate
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.83% (higher than 55% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: Se corrige el puntero colgante en krb_authenticate. krb_authenticate libera sess->user y no establece el puntero en NULL. Llama a ksmbd_krb5_authenticate para reinicializar sess->user, pero es posible que esta función no lo retorne. Si esto ocurre, smb2_sess_setup, que llama a krb_authenticate, accederá a la memoria liberada cuando utilice posteriormente sess->user.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-37778 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-37778 changed 2026-10-15 | Public domain |