{"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-04-02T12:47:28.248616Z","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/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":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"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"}}],"schema_version":"1.7.5"}