{"id":"CVE-2025-37778","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-\u003euser and does not set the pointer\nto NULL. It calls ksmbd_krb5_authenticate to reinitialise\nsess-\u003euser 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-\u003euser.","modified":"2026-05-15T11:54:30.581201534Z","published":"2025-05-01T13:07:16.472Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/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"}],"affected":[{"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/osv-test-cve-osv-conversion/osv-output/CVE-2025-37778.json"}}],"schema_version":"1.7.5"}