CVE-2025-39838

Source
https://nvd.nist.gov/vuln/detail/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
2025-11-28T02:34:08.921826Z
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 cifslocaltoutf16_bytes 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
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39838.json"
}
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
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
65b98a7e65e7a8f3894d8760cd194eaf20504c99
Fixed
1cfa5dd05847137f0fb3ce74ced80c0b4858d716
Fixed
1f797f062b5cf13a1c2bcc23285361baaa7c9260
Fixed
3c26a8d30ed6b53a52a023ec537dc50a6d34a67a
Fixed
70bccd9855dae56942f2b18a08ba137bb54093a0

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.151
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.105
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.46
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.16.6