CVE-2025-39838
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
19/09/2025
Last modified:
12/05/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
cifs: prevent NULL pointer dereference in UTF16 conversion<br />
<br />
There can be a NULL pointer dereference bug here. NULL is passed to<br />
__cifs_sfu_make_node without checks, which passes it unchecked to<br />
cifs_strndup_to_utf16, which in turn passes it to<br />
cifs_local_to_utf16_bytes where &#39;*from&#39; is dereferenced, causing a crash.<br />
<br />
This patch adds a check for NULL &#39;src&#39; in cifs_strndup_to_utf16 and<br />
returns NULL early to prevent dereferencing NULL pointer.<br />
<br />
Found by Linux Verification Center (linuxtesting.org) with SVACE
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.12 (including) | 6.12.46 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.16.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1f797f062b5cf13a1c2bcc23285361baaa7c9260
- https://git.kernel.org/stable/c/3c26a8d30ed6b53a52a023ec537dc50a6d34a67a
- https://git.kernel.org/stable/c/70bccd9855dae56942f2b18a08ba137bb54093a0
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html



