CVE-2025-38562

Source
https://cve.org/CVERecord?id=CVE-2025-38562
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38562.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38562
Downstream
Published
2025-08-19T17:02:39.450Z
Modified
2026-05-07T04:16:50.384244Z
Summary
ksmbd: fix null pointer dereference error in generate_encryptionkey
Details

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 generateencryptionkey could happen. sess->PreauthHashValue is set to NULL if session is valid. So this patch skip generate encryption key if session is valid.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38562.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / 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
922f85e6e88fdea723a26854c3a6dcb4beb8d0b9
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"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.203
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.148
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.102
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.42
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.10
Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.16.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38562.json"