CVE-2025-37778
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_kernelfrom 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.15NVD
debian debian_linux11.0NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

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

SourceRecordLicence
CVE ListCVE-2025-37778 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-37778 changed 2026-10-15Public domain