{"id":"CVE-2025-38562","summary":"ksmbd: fix null pointer dereference error in generate_encryptionkey","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix null pointer dereference error in generate_encryptionkey\n\nIf client send two session setups with krb5 authenticate to ksmbd,\nnull pointer dereference error in generate_encryptionkey could happen.\nsess-\u003ePreauth_HashValue is set to NULL if session is valid.\nSo this patch skip generate encryption key if session is valid.","modified":"2026-03-20T12:42:55.440456Z","published":"2025-08-19T17:02:39.450Z","related":["MGASA-2025-0234","MGASA-2025-0235"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38562.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/015ef163d65496ae3ba6192c96140a22743f0353"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96a82e19434a2522525baab59c33332658bc7653"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b493ab6f35178afd8d619800df9071992f715de"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d79c8bebaa622ee223128be7c66d8aaeeb634a57"},{"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-38562.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38562"},{"type":"ADVISORY","url":"https://www.zerodayinitiative.com/advisories/ZDI-25-917/"},{"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":"96a82e19434a2522525baab59c33332658bc7653"},{"fixed":"d79c8bebaa622ee223128be7c66d8aaeeb634a57"},{"fixed":"2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e"},{"fixed":"015ef163d65496ae3ba6192c96140a22743f0353"},{"fixed":"9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb"},{"fixed":"9b493ab6f35178afd8d619800df9071992f715de"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38562.json"}}],"schema_version":"1.7.5"}