{"schema_version":"1.9.0","id":"CVE-2025-38191","published":"2025-07-04T13:37:15.736Z","modified":"2026-08-12T03:51:17.695200009Z","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 ->PreviousSessionId on kerberos session setup stage,\nNULL pointer dereference error will happen. Since sess->user is not\nset yet, It can pass the user argument as NULL to destroy_previous_session.\nsess->user will be set in ksmbd_krb5_authenticate(). So this patch move\ncalling destroy_previous_session() after ksmbd_krb5_authenticate().","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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.142"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.95"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.35"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.15.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38191.json"}}],"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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38191.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}