CVE-2025-38562

published 19 Aug 2025 · updated 11 May 2026

ksmbd: fix null pointer dereference error in generate_encryptionkey

6.0MediumCVSS 5.5EPSS 25%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 25%. Fixed in Kernel 015ef163d65496ae3ba6192c96140a22743f0353, Kernel 2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e, Kernel 922f85e6e88fdea723a26854c3a6dcb4beb8d0b9 and 4 more.

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference error in generate_encryptionkey If client send two session setups with krb5 authenticate to ksmbd, null pointer dereference error in generate_encryptionkey could happen. sess->Preauth_HashValue is set to NULL if session is valid. So this patch skip generate encryption key if session is valid.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=0626e6641f6b467447c81dd7678a69c66f7746cf <015ef163d65496ae3ba6192c96140a22743f0353, >=0626e6641f6b467447c81dd7678a69c66f7746cf <2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e, >=0626e6641f6b467447c81dd7678a69c66f7746cf <922f85e6e88fdea723a26854c3a6dcb4beb8d0b9, >=0626e6641f6b467447c81dd7678a69c66f7746cf <96a82e19434a2522525baab59c33332658bc7653, >=0626e6641f6b467447c81dd7678a69c66f7746cf <9b493ab6f35178afd8d619800df9071992f715de, >=0626e6641f6b467447c81dd7678a69c66f7746cf <9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb, >=0626e6641f6b467447c81dd7678a69c66f7746cf <d79c8bebaa622ee223128be7c66d8aaeeb634a57015ef163d65496ae3ba6192c96140a22743f0353, 2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e, 922f85e6e88fdea723a26854c3a6dcb4beb8d0b9, 96a82e19434a2522525baab59c33332658bc7653, 9b493ab6f35178afd8d619800df9071992f715de, 9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb, d79c8bebaa622ee223128be7c66d8aaeeb634a57

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-38562 severity on Zeptric[![CVE-2025-38562](https://zeptric.io/badge/cve/CVE-2025-38562.svg)](https://zeptric.io/cve/CVE-2025-38562)