CVE-2025-38562 json
ksmbd: fix null pointer dereference error in generate_encryptionkey
published 2025-08-19 14 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-26503
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 13.0%
- EPSS 13.0% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.15.203, 6.1.148, 6.6.102, 6.12.42, 6.15.10, 6.16.1, 6.17
- linux Debian 12 6.1.148-1
- linux Debian 13 6.12.43-1
- linux Debian 14 6.16.3-1
debian advisories DEBIAN-CVE-2025-38562
- linux Ubuntu 22.04 LTS 5.15.0-186.196
- linux Ubuntu 24.04 LTS 6.8.0-100.100
- linux-aws Ubuntu 22.04 LTS 5.15.0-1112.119
- linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1112.122
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
- linux-gke Ubuntu 22.04 LTS 5.15.0-1108.114
- linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48
ubuntu advisories UBUNTU-CVE-2025-38562
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/922f85e6e88fdea723a26854c3a6dcb4beb8d0b9 commit
- git.kernel.org/stable/c/96a82e19434a2522525baab59c33332658bc7653 commit
- git.kernel.org/stable/c/d79c8bebaa622ee223128be7c66d8aaeeb634a57 commit
- git.kernel.org/stable/c/2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e commit
- git.kernel.org/stable/c/015ef163d65496ae3ba6192c96140a22743f0353 commit
- git.kernel.org/stable/c/9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb commit
- git.kernel.org/stable/c/9b493ab6f35178afd8d619800df9071992f715de commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-38562 updated
kernel: ksmbd: fix null pointer dereference error in generate_encryptionkey
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
13.00% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
- git.kernel.org /stable/c/922f85e6e88fdea723a26854c3a6dcb4beb8d0b9
-
git.kernel.org
/stable/c/96a82e19434a2522525baab59c33332658bc7653
patch
-
git.kernel.org
/stable/c/d79c8bebaa622ee223128be7c66d8aaeeb634a57
patch
-
git.kernel.org
/stable/c/2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e
patch
-
git.kernel.org
/stable/c/015ef163d65496ae3ba6192c96140a22743f0353
patch
-
git.kernel.org
/stable/c/9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb
patch
-
git.kernel.org
/stable/c/9b493ab6f35178afd8d619800df9071992f715de
patch
-
zerodayinitiative.com
/advisories/ZDI-25-917/
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2025/10/msg00008.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2025-38562
- NVD CVE-2025-38562
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.