ksmbd: fix null pointer dereference error in generate_encryptionkey

Summary

CVECVE-2025-38562
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-08-19 17:15:32 UTC
Updated2026-04-18 09:16:10 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-476

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 922f85e6e88fdea723a26854c3a6dcb4beb8d0b9 git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 96a82e19434a2522525baab59c33332658bc7653 git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf d79c8bebaa622ee223128be7c66d8aaeeb634a57 git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 015ef163d65496ae3ba6192c96140a22743f0353 git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb git Not specified
CNA Linux Linux affected 0626e6641f6b467447c81dd7678a69c66f7746cf 9b493ab6f35178afd8d619800df9071992f715de git Not specified
CNA Linux Linux affected 5.15 Not specified
CNA Linux Linux unaffected 5.15 semver Not specified
CNA Linux Linux unaffected 5.15.203 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.148 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.102 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.42 6.12.* semver Not specified
CNA Linux Linux unaffected 6.15.10 6.15.* semver Not specified
CNA Linux Linux unaffected 6.16.1 6.16.* semver Not specified
CNA Linux Linux unaffected 6.17 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/015ef163d65496ae3ba6192c96140a22743f0353 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2025/10/msg00008.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
git.kernel.org/stable/c/d79c8bebaa622ee223128be7c66d8aaeeb634a57 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/96a82e19434a2522525baab59c33332658bc7653 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/9b493ab6f35178afd8d619800df9071992f715de 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org Patch
git.kernel.org/stable/c/922f85e6e88fdea723a26854c3a6dcb4beb8d0b9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
www.zerodayinitiative.com/advisories/ZDI-25-917 416baaa9-dc9f-4396-8d5f-8c081fb06d67 www.zerodayinitiative.com Mailing List, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report