CVE-2025-38562

ksmbd: fix null pointer dereference error in generate_encryptionkey

No CVSS score yet EPSS 24.7%

Published 19 Aug 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-38562

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38562 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 24.7%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 922f85e6e88fdea723a26854c3a6dcb4beb8d0b9
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 96a82e19434a2522525baab59c33332658bc7653
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before d79c8bebaa622ee223128be7c66d8aaeeb634a57
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 015ef163d65496ae3ba6192c96140a22743f0353
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 9b493ab6f35178afd8d619800df9071992f715de
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.148 up to and including 6.1.*
unaffected from 6.6.102 up to and including 6.6.*
unaffected from 6.12.42 up to and including 6.12.*
unaffected from 6.15.10 up to and including 6.15.*
unaffected from 6.16.1 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38562 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38562

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38562
trivy image --scanners vuln IMAGE | grep CVE-2025-38562

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38562 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.