CVE-2025-39838

Source
https://cve.org/CVERecord?id=CVE-2025-39838
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39838.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-39838
Downstream
Related
Published
2025-09-19T15:26:13.506Z
Modified
2026-03-12T02:15:24.666085Z
Summary
cifs: prevent NULL pointer dereference in UTF16 conversion
Details

In the Linux kernel, the following vulnerability has been resolved:

cifs: prevent NULL pointer dereference in UTF16 conversion

There can be a NULL pointer dereference bug here. NULL is passed to __cifssfumakenode without checks, which passes it unchecked to cifsstrnduptoutf16, which in turn passes it to cifslocaltoutf16bytes where '*from' is dereferenced, causing a crash.

This patch adds a check for NULL 'src' in cifsstrndupto_utf16 and returns NULL early to prevent dereferencing NULL pointer.

Found by Linux Verification Center (linuxtesting.org) with SVACE

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39838.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
41d3f256c6a5e41eb32b87168399c0facd512dc0
Fixed
1f797f062b5cf13a1c2bcc23285361baaa7c9260
Fixed
3c26a8d30ed6b53a52a023ec537dc50a6d34a67a
Fixed
70bccd9855dae56942f2b18a08ba137bb54093a0

Database specific

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