CVE-2025-39838
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
19/09/2025
Last modified:
23/01/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



