{"schema_version":"1.9.0","id":"CVE-2025-37778","published":"2025-05-01T13:07:16.472Z","modified":"2026-08-12T03:51:46.866103711Z","summary":"ksmbd: Fix dangling pointer in krb_authenticate","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: Fix dangling pointer in krb_authenticate\n\nkrb_authenticate frees sess->user and does not set the pointer\nto NULL. It calls ksmbd_krb5_authenticate to reinitialise\nsess->user but that function may return without doing so. If\nthat happens then smb2_sess_setup, which calls krb_authenticate,\nwill be accessing free'd memory when it later uses sess->user.","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"b61f04d5d73c53d183019bafe22fb700a739bac5"},{"fixed":"d5b554bc8d554ed6ddf443d3db2fad9f665cec10"},{"fixed":"1db2451de23e98bc864c6a6e52aa0d82c91cb325"},{"fixed":"6e30c0e10210c714f3d4453dc258d4abcc70364e"},{"fixed":"e83e39a5f6a01a81411a4558a59a10f87aa88dd6"},{"fixed":"1e440d5b25b7efccb3defe542a73c51005799a5f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37778.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.203"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.135"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.88"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.25"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.14.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37778.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1db2451de23e98bc864c6a6e52aa0d82c91cb325"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1e440d5b25b7efccb3defe542a73c51005799a5f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6e30c0e10210c714f3d4453dc258d4abcc70364e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b61f04d5d73c53d183019bafe22fb700a739bac5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d5b554bc8d554ed6ddf443d3db2fad9f665cec10"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e83e39a5f6a01a81411a4558a59a10f87aa88dd6"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37778.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37778"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37778.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}