{"id":"CVE-2025-38191","summary":"ksmbd: fix null pointer dereference in destroy_previous_session","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix null pointer dereference in destroy_previous_session\n\nIf client set -\u003ePreviousSessionId on kerberos session setup stage,\nNULL pointer dereference error will happen. Since sess-\u003euser is not\nset yet, It can pass the user argument as NULL to destroy_previous_session.\nsess-\u003euser will be set in ksmbd_krb5_authenticate(). So this patch move\ncalling destroy_previous_session() after ksmbd_krb5_authenticate().","modified":"2026-04-16T04:42:56.631381964Z","published":"2025-07-04T13:37:15.736Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38191.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/076f1adefb9837977af7ed233883842ddc446644"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0902625a24eea7fdc187faa5d97df244d159dd6e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1193486dffb7432a09f57f5d09049b4d4123538b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/281afc52e2961cd5dd8326ebc9c5bc40904c0468"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38191.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38191"},{"type":"ADVISORY","url":"https://www.zerodayinitiative.com/advisories/ZDI-25-610/"},{"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":"281afc52e2961cd5dd8326ebc9c5bc40904c0468"},{"fixed":"0902625a24eea7fdc187faa5d97df244d159dd6e"},{"fixed":"1193486dffb7432a09f57f5d09049b4d4123538b"},{"fixed":"076f1adefb9837977af7ed233883842ddc446644"},{"fixed":"7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38191.json"}}],"schema_version":"1.7.5"}