Bug 2396947 (CVE-2025-39838) - CVE-2025-39838 kernel: cifs: prevent NULL pointer dereference in UTF16 conversion
Summary: CVE-2025-39838 kernel: cifs: prevent NULL pointer dereference in UTF16 conver...
Keywords:
Status: NEW
Alias: CVE-2025-39838
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-19 16:03 UTC by OSIDB Bzimport
Modified: 2026-06-29 20:19 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-19 16:03:33 UTC
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
__cifs_sfu_make_node without checks, which passes it unchecked to
cifs_strndup_to_utf16, which in turn passes it to
cifs_local_to_utf16_bytes where '*from' is dereferenced, causing a crash.

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

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

Comment 1 Jon Moroney 2025-09-19 16:19:59 UTC Comment hidden (spam)

Note You need to log in before you can comment on or make changes to this bug.